Lines Matching refs:vaddr
138 let vaddr = unsafe { alloc_zeroed(layout) }; in dma_alloc() localVariable
139 let vaddr = in dma_alloc() localVariable
140 if let Some(vaddr) = NonNull::new(vaddr) { vaddr } else { handle_alloc_error(layout) }; in dma_alloc()
141 let paddr = virt_to_phys(vaddr); in dma_alloc()
142 (paddr, vaddr) in dma_alloc()
145 unsafe fn dma_dealloc(paddr: PhysAddr, vaddr: NonNull<u8>, pages: usize) -> i32 { in dma_dealloc()
151 dealloc(vaddr.as_ptr(), layout); in dma_dealloc()
166 let vaddr = buffer.cast(); in share() localVariable
168 virt_to_phys(vaddr) in share()
177 fn virt_to_phys(vaddr: NonNull<u8>) -> PhysAddr { in virt_to_phys()
178 vaddr.as_ptr() as _ in virt_to_phys()