Lines Matching refs:packet_index
87 s->packet_index = 0; in amdtp_stream_init()
605 p.interrupt = IS_ALIGNED(s->packet_index + 1, INTERRUPT_INTERVAL); in queue_packet()
611 s->buffer.packets[s->packet_index].offset); in queue_packet()
617 if (++s->packet_index >= QUEUE_LENGTH) in queue_packet()
618 s->packet_index = 0; in queue_packet()
642 if (s->packet_index < 0) in handle_out_packet()
651 buffer = s->buffer.packets[s->packet_index].buffer; in handle_out_packet()
671 s->packet_index = -1; in handle_out_packet()
781 s->packet_index = -1; in handle_in_packet()
818 if (s->packet_index < 0) in in_stream_callback()
821 buffer = s->buffer.packets[s->packet_index].buffer; in in_stream_callback()
836 if (s->packet_index < 0) { in in_stream_callback()
839 s->sync_slave->packet_index = -1; in in_stream_callback()
957 s->packet_index = 0; in amdtp_stream_start()
965 } while (s->packet_index > 0); in amdtp_stream_start()