Lines Matching defs:frame

474  * @sof_mask: Bit mask used to detect start of frame PDF
475 * @eof_mask: Bit mask used to detect end of frame PDF
505 /* Configure the ring to be in frame mode */
514 * %RING_DESC_CRC_ERROR: In frame mode CRC check failed for the frame (Rx only)
531 * @buffer_phy: DMA mapped address of the frame
532 * @callback: Callback called when the frame is finished (optional)
534 * @size: Size of the frame in bytes (%0 means %4096)
535 * @flags: Flags for the frame (see &enum ring_desc_flags)
536 * @eof: End of frame protocol defined field
537 * @sof: Start of frame protocol defined field
561 int __tb_ring_enqueue(struct tb_ring *ring, struct ring_frame *frame);
564 * tb_ring_rx() - enqueue a frame on an RX ring
565 * @ring: Ring to enqueue the frame
566 * @frame: Frame to enqueue
568 * @frame->buffer, @frame->buffer_phy have to be set. The buffer must
571 * @frame->callback will be invoked with @frame->size, @frame->flags,
572 * @frame->eof, @frame->sof set once the frame has been received.
575 * @frame->callback will be called with canceled set to true.
579 static inline int tb_ring_rx(struct tb_ring *ring, struct ring_frame *frame)
582 return __tb_ring_enqueue(ring, frame);
586 * tb_ring_tx() - enqueue a frame on an TX ring
587 * @ring: Ring the enqueue the frame
588 * @frame: Frame to enqueue
590 * @frame->buffer, @frame->buffer_phy, @frame->size, @frame->eof and
591 * @frame->sof have to be set.
593 * @frame->callback will be invoked with once the frame has been transmitted.
595 * If ring_stop() is called after the packet has been enqueued @frame->callback
600 static inline int tb_ring_tx(struct tb_ring *ring, struct ring_frame *frame)
603 return __tb_ring_enqueue(ring, frame);