Lines Matching refs:packet_index
99 s->packet_index = 0; in amdtp_stream_init()
443 params->interrupt = IS_ALIGNED(s->packet_index + 1, INTERRUPT_INTERVAL); in queue_packet()
448 s->buffer.packets[s->packet_index].offset); in queue_packet()
454 if (++s->packet_index >= QUEUE_LENGTH) in queue_packet()
455 s->packet_index = 0; in queue_packet()
692 unsigned int index = (s->packet_index + i) % QUEUE_LENGTH; in generate_device_pkt_descs()
733 unsigned int index = (s->packet_index + i) % QUEUE_LENGTH; in generate_ideal_pkt_descs()
757 s->packet_index = -1; in cancel_stream()
785 if (s->packet_index < 0) in out_stream_callback()
828 if (s->packet_index < 0) in in_stream_callback()
991 s->packet_index = 0; in amdtp_stream_start()
1003 } while (s->packet_index > 0); in amdtp_stream_start()