Home
last modified time | relevance | path

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

/DragonOS-0.1.7/kernel/src/driver/virtio/
Dvirtio_impl.rs9 use virtio_drivers::{BufferDirection, Hal, PhysAddr, PAGE_SIZE};
15 fn dma_alloc(pages: usize, _direction: BufferDirection) -> (PhysAddr, NonNull<u8>) { in dma_alloc() argument
22 page.addr_phys as PhysAddr, in dma_alloc()
23 NonNull::new((page.addr_phys as PhysAddr + PAGE_OFFSET as usize) as _).unwrap(), in dma_alloc()
30 unsafe fn dma_dealloc(paddr: PhysAddr, _vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc() argument
43 unsafe fn mmio_phys_to_virt(_paddr: PhysAddr, _size: usize) -> NonNull<u8> { in mmio_phys_to_virt() argument
49 unsafe fn share(buffer: NonNull<[u8]>, _direction: BufferDirection) -> PhysAddr { in share() argument
56 unsafe fn unshare(_paddr: PhysAddr, _buffer: NonNull<[u8]>, _direction: BufferDirection) { in unshare() argument
Dtransport_pci.rs18 Error, Hal, PhysAddr,
265 descriptors: PhysAddr, in queue_set() argument
266 driver_area: PhysAddr, in queue_set() argument
267 device_area: PhysAddr, in queue_set() argument