Lines Matching refs:last

103 				     struct descriptor *last);
142 struct descriptor *last; member
767 unsigned int i, next_i, last = ctx->last_buffer_index; in ar_search_last_active_buffer() local
774 while (i != last && res_count == 0) { in ar_search_last_active_buffer()
792 if (MAX_AR_PACKET_SIZE > PAGE_SIZE && i != last) { in ar_search_last_active_buffer()
1099 struct descriptor *d, *last; in context_tasklet() local
1106 last = ctx->last; in context_tasklet()
1107 while (last->branch_address != 0) { in context_tasklet()
1109 address = le32_to_cpu(last->branch_address); in context_tasklet()
1121 last = find_branch_descriptor(d, z); in context_tasklet()
1123 if (!ctx->callback(ctx, d, last)) in context_tasklet()
1135 ctx->last = last; in context_tasklet()
1203 ctx->last = ctx->buffer_tail->buffer; in context_init()
1258 le32_to_cpu(ctx->last->branch_address)); in context_run()
1337 struct descriptor *d, *last; in at_context_queue_packet() local
1431 last = &d[2]; in at_context_queue_packet()
1434 last = &d[0]; in at_context_queue_packet()
1438 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in at_context_queue_packet()
1474 struct descriptor *last) in handle_at_packet() argument
1481 if (last->transfer_status == 0 && !context->flushing) in handle_at_packet()
1495 evt = le16_to_cpu(last->transfer_status) & 0x1f; in handle_at_packet()
1496 packet->timestamp = le16_to_cpu(last->res_count); in handle_at_packet()
2827 struct descriptor *last) in handle_ir_packet_per_buffer() argument
2834 for (pd = d; pd <= last; pd++) in handle_ir_packet_per_buffer()
2837 if (pd > last) in handle_ir_packet_per_buffer()
2851 copy_iso_headers(ctx, (u32 *) (last + 1)); in handle_ir_packet_per_buffer()
2853 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_ir_packet_per_buffer()
2862 struct descriptor *last) in handle_ir_buffer_fill() argument
2869 req_count = le16_to_cpu(last->req_count); in handle_ir_buffer_fill()
2870 res_count = le16_to_cpu(READ_ONCE(last->res_count)); in handle_ir_buffer_fill()
2872 buffer_dma = le32_to_cpu(last->data_address); in handle_ir_buffer_fill()
2888 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) { in handle_ir_buffer_fill()
2950 struct descriptor *last) in handle_it_packet() argument
2957 for (pd = d; pd <= last; pd++) in handle_it_packet()
2960 if (pd > last) in handle_it_packet()
2973 ctx->last_timestamp = le16_to_cpu(last->res_count); in handle_it_packet()
2979 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_it_packet()
3103 if (ctx->context.last->branch_address == 0) in ohci_start_iso()
3261 struct descriptor *d, *last, *pd; in queue_iso_transmit() local
3349 last = z == 2 ? d : d + z - 1; in queue_iso_transmit()
3350 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in queue_iso_transmit()