Lines Matching refs:packet_index
93 s->packet_index = 0; in amdtp_stream_init()
406 p.interrupt = IS_ALIGNED(s->packet_index + 1, INTERRUPT_INTERVAL); in queue_packet()
414 s->buffer.packets[s->packet_index].offset); in queue_packet()
420 if (++s->packet_index >= QUEUE_LENGTH) in queue_packet()
421 s->packet_index = 0; in queue_packet()
447 buffer = s->buffer.packets[s->packet_index].buffer; in handle_out_packet()
493 buffer = s->buffer.packets[s->packet_index].buffer; in handle_out_packet_without_header()
528 buffer = s->buffer.packets[s->packet_index].buffer; in handle_in_packet()
640 buffer = s->buffer.packets[s->packet_index].buffer; in handle_in_packet_without_header()
692 if (s->packet_index < 0) in out_stream_callback()
703 s->packet_index = -1; in out_stream_callback()
724 if (s->packet_index < 0) in in_stream_callback()
757 s->packet_index = -1; in in_stream_callback()
888 s->packet_index = 0; in amdtp_stream_start()
896 } while (s->packet_index > 0); in amdtp_stream_start()