class TrbFifo

Defined at line 16 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

Public Methods

zx::result<> Init (zx::bti & bti, bool cached)

Defined at line 18 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

void Release ()

Defined at line 63 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

zx::result<dwc3_trb_t> ReadOne ()

Defined at line 68 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

dwc3_trb_t * current_read ()

Defined at line 78 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

uint32_t current_read_size ()

Returns the requested transfer size recorded for the TRB at |read_|.

Defined at line 81 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

dwc3_trb_t * AdvanceWrite (uint32_t trb_size)

Advances the write pointer, recording |trb_size| for the allocated TRB

slot so completed bytes can be computed after hardware overwrites the TRB

status field with the residual byte count.

Defined at line 89 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

void AdvanceRead ()

Defined at line 94 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

void SkipTrbs (size_t count)

Retires `count` active TRBs from the ring after hardware DMA on those descriptors has ended,

clearing TRB_HWO, flushing the descriptor write to memory, and advancing `read_`.

Defined at line 104 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h

size_t MaxAvailableSlots ()

Defined at line 114 of file ../../src/devices/usb/drivers/dwc3/dwc3-trb-fifo.h