Lines Matching refs:packets
635 s->buffer.packets[s->packet_index].offset); in queue_packet()
892 unsigned int packets, in generate_device_pkt_descs() argument
903 for (i = 0; i < packets; ++i) { in generate_device_pkt_descs()
955 desc->ctx_payload = s->buffer.packets[packet_index].buffer; in generate_device_pkt_descs()
983 …tic void generate_pkt_descs(struct amdtp_stream *s, const __be32 *ctx_header, unsigned int packets) in generate_pkt_descs() argument
993 for (i = 0; i < packets; ++i) { in generate_pkt_descs()
1015 desc->ctx_payload = s->buffer.packets[index].buffer; in generate_pkt_descs()
1036 unsigned int packets) in process_ctx_payloads() argument
1042 pcm_frames = s->process_ctx_payloads(s, descs, packets, pcm); in process_ctx_payloads()
1056 unsigned int packets; in process_rx_packets() local
1064 packets = header_length / sizeof(*ctx_header); in process_rx_packets()
1066 pool_seq_descs(s, packets); in process_rx_packets()
1068 generate_pkt_descs(s, ctx_header, packets); in process_rx_packets()
1070 process_ctx_payloads(s, s->pkt_descs, packets); in process_rx_packets()
1087 for (i = 0; i < packets; ++i) { in process_rx_packets()
1122 unsigned int packets; in skip_rx_packets() local
1129 packets = header_length / sizeof(*ctx_header); in skip_rx_packets()
1131 cycle = compute_ohci_it_cycle(ctx_header[packets - 1], s->queue_size); in skip_rx_packets()
1134 for (i = 0; i < packets; ++i) { in skip_rx_packets()
1139 bool sched_irq = (s == d->irq_target && i == packets - 1); in skip_rx_packets()
1158 unsigned int packets; in process_rx_packets_intermediately() local
1164 packets = header_length / sizeof(*ctx_header); in process_rx_packets_intermediately()
1167 while (offset < packets) { in process_rx_packets_intermediately()
1187 if (offset < packets) { in process_rx_packets_intermediately()
1207 unsigned int packets; in process_tx_packets() local
1216 packets = header_length / s->ctx_data.tx.ctx_header_size; in process_tx_packets()
1219 err = generate_device_pkt_descs(s, s->pkt_descs, ctx_header, packets, &desc_count); in process_tx_packets()
1234 for (i = 0; i < packets; ++i) { in process_tx_packets()
1249 unsigned int packets; in drop_tx_packets() local
1256 packets = header_length / s->ctx_data.tx.ctx_header_size; in drop_tx_packets()
1258 ctx_header += (packets - 1) * s->ctx_data.tx.ctx_header_size / sizeof(*ctx_header); in drop_tx_packets()
1262 for (i = 0; i < packets; ++i) { in drop_tx_packets()
1278 unsigned int packets; in process_tx_packets_intermediately() local
1284 packets = header_length / s->ctx_data.tx.ctx_header_size; in process_tx_packets_intermediately()
1288 while (offset < packets) { in process_tx_packets_intermediately()
1311 if (offset < packets) { in process_tx_packets_intermediately()