template <typename T>

class Fifo

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

Protected Members

unique_ptr buffer_
T * first_
T * write_
T * read_
T * last_

Public Methods

zx::result<> Init (zx::bti & bti)

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

void Clear ()

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

void Release ()

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

size_t TotalSlots ()

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

size_t WriteOffset ()

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

size_t ReadOffset ()

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

bool IsEmpty ()

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

size_t AvailableSlots ()

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

size_t GetActiveCount ()

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

std::vector<T> Read (size_t count)

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

std::vector<T> Read (T *& ptr, size_t count)

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

zx_paddr_t Write (T *& ptr, size_t count)

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

T * Advance (T *& ptr, size_t count)

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

const T * Advance (const T *& ptr, size_t count)

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

Protected Methods

zx_paddr_t GetPhys (T * ptr)

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

Friends

template <bool manage_lifetimetypename gtest_base>
class TestFixture