Searched refs:virt_2_phys (Results 1 – 12 of 12) sorted by relevance
95 MMArch::virt_2_phys(VirtAddr::new( in ahci_init()102 MMArch::virt_2_phys(VirtAddr::new(ahci_port_base_vaddr + (j << 10))) in ahci_init()108 MMArch::virt_2_phys(VirtAddr::new( in ahci_init()
150 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in read_at()162 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in read_at()314 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in write_at()326 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in write_at()
19 let kernel_code_start = MMA::virt_2_phys(VirtAddr::new(info.kernel_code_start)) in arch_remain_areas()
306 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method458 let phy_offset = unsafe { MMArch::virt_2_phys(virt_offset) }.unwrap(); in allocator_init()
27 #define virt_2_phys(addr) ((unsigned long)(addr)-PAGE_OFFSET) macro
113 let paddr = MMA::virt_2_phys(vaddr)?; in allocate()
605 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method
95 return MMArch::virt_2_phys(vaddr).unwrap().data(); in share()
108 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()112 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()116 unsafe { MMArch::virt_2_phys(vaddr).unwrap().data() as u64 } in alloc()
58 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy()
133 MMArch::virt_2_phys(VirtAddr::new( in rsdp_paddr()
231 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method