Home
last modified time | relevance | path

Searched refs:BufferDirection (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Virtualization/vmbase/src/virtio/
Dhal.rs24 use virtio_drivers::{BufferDirection, Hal, PhysAddr, PAGE_SIZE};
45 fn dma_alloc(pages: usize, _direction: BufferDirection) -> (PhysAddr, NonNull<u8>) { in dma_alloc()
88 unsafe fn share(buffer: NonNull<[u8]>, direction: BufferDirection) -> PhysAddr { in share()
94 if direction != BufferDirection::DeviceToDriver { in share()
104 unsafe fn unshare(paddr: PhysAddr, buffer: NonNull<[u8]>, direction: BufferDirection) { in unshare() argument
107 if direction != BufferDirection::DriverToDevice { in unshare()
/packages/modules/Virtualization/vmbase/example/src/
Dpci.rs28 BufferDirection, Error, Hal, PhysAddr, PAGE_SIZE,
132 fn dma_alloc(pages: usize, _direction: BufferDirection) -> (PhysAddr, NonNull<u8>) { in dma_alloc()
165 unsafe fn share(buffer: NonNull<[u8]>, _direction: BufferDirection) -> PhysAddr { in share()
171 unsafe fn unshare(_paddr: PhysAddr, _buffer: NonNull<[u8]>, _direction: BufferDirection) { in unshare() argument