Lines Matching refs:packet_index
111 s->packet_index = 0; in amdtp_stream_init()
662 s->buffer.packets[s->packet_index].offset); in queue_packet()
668 if (++s->packet_index >= s->queue_size) in queue_packet()
669 s->packet_index = 0; in queue_packet()
726 data_block_counter, s->packet_index, index, curr_cycle_time); in build_it_pkt_header()
832 unsigned int *syt, unsigned int packet_index, unsigned int index, in parse_ir_ctx_header() argument
878 *data_block_counter, packet_index, index, curr_cycle_time); in parse_ir_ctx_header()
940 unsigned int packet_index = s->packet_index; in generate_tx_packet_descs() local
993 packet_index, i, curr_cycle_time); in generate_tx_packet_descs()
1001 desc->ctx_payload = s->buffer.packets[packet_index].buffer; in generate_tx_packet_descs()
1010 packet_index = (packet_index + 1) % queue_size; in generate_tx_packet_descs()
1043 unsigned int index = (s->packet_index + i) % s->queue_size; in generate_rx_packet_descs()
1079 s->packet_index = -1; in cancel_stream()
1186 if (s->packet_index < 0) in process_rx_packets()
1252 if (s->packet_index < 0) in skip_rx_packets()
1287 if (s->packet_index < 0) in process_rx_packets_intermediately()
1342 if (s->packet_index < 0) in process_tx_packets()
1387 if (s->packet_index < 0) in drop_tx_packets()
1415 if (s->packet_index < 0) in process_tx_packets_intermediately()
1467 if (s->packet_index < 0) in drop_tx_packets_initially()
1816 s->packet_index = 0; in amdtp_stream_start()
1829 sched_irq = !((s->packet_index + 1) % in amdtp_stream_start()
1837 } while (s->packet_index > 0); in amdtp_stream_start()