Home
last modified time | relevance | path

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

/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() argument
145 unsafe fn dma_dealloc(paddr: PhysAddr, vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc() argument
161 unsafe fn mmio_phys_to_virt(paddr: PhysAddr, _size: usize) -> NonNull<u8> { in mmio_phys_to_virt() argument
165 unsafe fn share(buffer: NonNull<[u8]>, _direction: BufferDirection) -> PhysAddr { in share() argument
171 unsafe fn unshare(_paddr: PhysAddr, _buffer: NonNull<[u8]>, _direction: BufferDirection) { in unshare() argument
177 fn virt_to_phys(vaddr: NonNull<u8>) -> PhysAddr { in virt_to_phys() argument
/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() argument
55 unsafe fn dma_dealloc(_paddr: PhysAddr, vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc() argument
68 unsafe fn mmio_phys_to_virt(paddr: PhysAddr, size: usize) -> NonNull<u8> { in mmio_phys_to_virt() argument
88 unsafe fn share(buffer: NonNull<[u8]>, direction: BufferDirection) -> PhysAddr { in share() argument
104 unsafe fn unshare(paddr: PhysAddr, buffer: NonNull<[u8]>, direction: BufferDirection) { in unshare() argument