Lines Matching refs:last

116 				     struct descriptor *last);
155 struct descriptor *last; member
733 unsigned int i, next_i, last = ctx->last_buffer_index; in ar_search_last_active_buffer() local
740 while (i != last && res_count == 0) { in ar_search_last_active_buffer()
759 if (MAX_AR_PACKET_SIZE > PAGE_SIZE && i != last) { in ar_search_last_active_buffer()
1070 struct descriptor *d, *last; in context_tasklet() local
1077 last = ctx->last; in context_tasklet()
1078 while (last->branch_address != 0) { in context_tasklet()
1080 address = le32_to_cpu(last->branch_address); in context_tasklet()
1092 last = find_branch_descriptor(d, z); in context_tasklet()
1094 if (!ctx->callback(ctx, d, last)) in context_tasklet()
1106 ctx->last = last; in context_tasklet()
1169 ctx->last = ctx->buffer_tail->buffer; in context_init()
1224 le32_to_cpu(ctx->last->branch_address)); in context_run()
1303 struct descriptor *d, *last; in at_context_queue_packet() local
1397 last = &d[2]; in at_context_queue_packet()
1400 last = &d[0]; in at_context_queue_packet()
1404 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in at_context_queue_packet()
1440 struct descriptor *last) in handle_at_packet() argument
1447 if (last->transfer_status == 0 && !context->flushing) in handle_at_packet()
1461 evt = le16_to_cpu(last->transfer_status) & 0x1f; in handle_at_packet()
1462 packet->timestamp = le16_to_cpu(last->res_count); in handle_at_packet()
2771 struct descriptor *last) in handle_ir_packet_per_buffer() argument
2778 for (pd = d; pd <= last; pd++) in handle_ir_packet_per_buffer()
2781 if (pd > last) in handle_ir_packet_per_buffer()
2795 copy_iso_headers(ctx, (u32 *) (last + 1)); in handle_ir_packet_per_buffer()
2797 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_ir_packet_per_buffer()
2806 struct descriptor *last) in handle_ir_buffer_fill() argument
2813 req_count = le16_to_cpu(last->req_count); in handle_ir_buffer_fill()
2814 res_count = le16_to_cpu(ACCESS_ONCE(last->res_count)); in handle_ir_buffer_fill()
2816 buffer_dma = le32_to_cpu(last->data_address); in handle_ir_buffer_fill()
2832 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) { in handle_ir_buffer_fill()
2894 struct descriptor *last) in handle_it_packet() argument
2901 for (pd = d; pd <= last; pd++) in handle_it_packet()
2904 if (pd > last) in handle_it_packet()
2917 ctx->last_timestamp = le16_to_cpu(last->res_count); in handle_it_packet()
2923 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) in handle_it_packet()
3048 if (ctx->context.last->branch_address == 0) in ohci_start_iso()
3206 struct descriptor *d, *last, *pd; in queue_iso_transmit() local
3294 last = z == 2 ? d : d + z - 1; in queue_iso_transmit()
3295 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST | in queue_iso_transmit()