Lines Matching defs:frame

241 	struct ring_frame *frame, *n;
243 list_for_each_entry_safe(frame, n, &ring->queue, list) {
246 list_move_tail(&frame->list, &ring->in_flight);
248 descriptor->phys = frame->buffer_phy;
252 descriptor->length = frame->size;
253 descriptor->eof = frame->eof;
254 descriptor->sof = frame->sof;
270 * Otherwise we collect all completed frame from the ring buffer, write new
271 * frame to the ring buffer and invoke the callbacks for the completed frames.
276 struct ring_frame *frame;
295 frame = list_first_entry(&ring->in_flight, typeof(*frame),
297 list_move_tail(&frame->list, &done);
299 frame->size = ring->descriptors[ring->tail].length;
300 frame->eof = ring->descriptors[ring->tail].eof;
301 frame->sof = ring->descriptors[ring->tail].sof;
302 frame->flags = ring->descriptors[ring->tail].flags;
312 frame = list_first_entry(&done, typeof(*frame), list);
314 * The callback may reenqueue or delete frame.
317 list_del_init(&frame->list);
318 if (frame->callback)
319 frame->callback(ring, frame, canceled);
323 int __tb_ring_enqueue(struct tb_ring *ring, struct ring_frame *frame)
330 list_add_tail(&frame->list, &ring->queue);
341 * tb_ring_poll() - Poll one completed frame from the ring
345 * has been called. It will read one completed frame from the ring and
351 struct ring_frame *frame = NULL;
361 frame = list_first_entry(&ring->in_flight, typeof(*frame),
363 list_del_init(&frame->list);
366 frame->size = ring->descriptors[ring->tail].length;
367 frame->eof = ring->descriptors[ring->tail].eof;
368 frame->sof = ring->descriptors[ring->tail].sof;
369 frame->flags = ring->descriptors[ring->tail].flags;
377 return frame;
657 * @sof_mask: Mask of PDF values that start a frame
658 * @eof_mask: Mask of PDF values that end a frame
661 * in each Rx frame.
761 * with frame->canceled set to true (on the callback thread). This method