Lines Matching refs:packet_index
86 s->packet_index = 0; in amdtp_stream_init()
376 p.interrupt = IS_ALIGNED(s->packet_index + 1, INTERRUPT_INTERVAL); in queue_packet()
382 s->buffer.packets[s->packet_index].offset); in queue_packet()
388 if (++s->packet_index >= QUEUE_LENGTH) in queue_packet()
389 s->packet_index = 0; in queue_packet()
415 buffer = s->buffer.packets[s->packet_index].buffer; in handle_out_packet()
555 if (s->packet_index < 0) in out_stream_callback()
570 s->packet_index = -1; in out_stream_callback()
589 if (s->packet_index < 0) in in_stream_callback()
599 buffer = s->buffer.packets[s->packet_index].buffer; in in_stream_callback()
608 s->packet_index = -1; in in_stream_callback()
615 s->packet_index = -1; in in_stream_callback()
623 s->packet_index = -1; in in_stream_callback()
630 if (s->packet_index < 0) { in in_stream_callback()
635 s->sync_slave->packet_index = -1; in in_stream_callback()
753 s->packet_index = 0; in amdtp_stream_start()
761 } while (s->packet_index > 0); in amdtp_stream_start()