Lines Matching refs:last

104 				     struct descriptor *last);
143 struct descriptor *last;
146 * The last descriptor block in the DMA program. It contains the branch
766 * We search for the buffer that contains the last AR packet DMA data written
772 unsigned int i, next_i, last = ctx->last_buffer_index;
778 /* A buffer that is not yet completely filled must be the last one. */
779 while (i != last && res_count == 0) {
797 if (MAX_AR_PACKET_SIZE > PAGE_SIZE && i != last) {
993 * all packets up to the buffer end here. If the last packet
1103 struct descriptor *d, *last;
1110 last = ctx->last;
1111 while (last->branch_address != 0) {
1113 address = le32_to_cpu(last->branch_address);
1125 last = find_branch_descriptor(d, z);
1127 if (!ctx->callback(ctx, d, last))
1139 ctx->last = last;
1207 ctx->last = ctx->buffer_tail->buffer;
1262 le32_to_cpu(ctx->last->branch_address));
1341 struct descriptor *d, *last;
1435 last = &d[2];
1438 last = &d[0];
1442 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST |
1478 struct descriptor *last)
1485 if (last->transfer_status == 0 && !context->flushing)
1499 evt = le16_to_cpu(last->transfer_status) & 0x1f;
1500 packet->timestamp = le16_to_cpu(last->res_count);
2089 * do that last.
2821 struct descriptor *last)
2828 for (pd = d; pd <= last; pd++)
2831 if (pd > last)
2845 copy_iso_headers(ctx, (u32 *) (last + 1));
2847 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS))
2853 /* d == last because each descriptor block is only a single descriptor. */
2856 struct descriptor *last)
2863 req_count = le16_to_cpu(last->req_count);
2864 res_count = le16_to_cpu(READ_ONCE(last->res_count));
2866 buffer_dma = le32_to_cpu(last->data_address);
2882 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS)) {
2944 struct descriptor *last)
2951 for (pd = d; pd <= last; pd++)
2954 if (pd > last)
2967 ctx->last_timestamp = le16_to_cpu(last->res_count);
2973 if (last->control & cpu_to_le16(DESCRIPTOR_IRQ_ALWAYS))
3097 if (ctx->context.last->branch_address == 0)
3255 struct descriptor *d, *last, *pd;
3343 last = z == 2 ? d : d + z - 1;
3344 last->control |= cpu_to_le16(DESCRIPTOR_OUTPUT_LAST |