Home
last modified time | relevance | path

Searched refs:virt_2_phys (Results 1 – 12 of 12) sorted by relevance

/DragonOS/kernel/src/driver/disk/ahci/
H A Dmod.rs95 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()
H A Dahcidisk.rs150 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()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dbump.rs19 let kernel_code_start = MMA::virt_2_phys(VirtAddr::new(info.kernel_code_start)) in arch_remain_areas()
H A Dmod.rs306 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method
458 let phy_offset = unsafe { MMArch::virt_2_phys(virt_offset) }.unwrap(); in allocator_init()
/DragonOS/kernel/src/mm/
H A Dmm.h27 #define virt_2_phys(addr) ((unsigned long)(addr)-PAGE_OFFSET) macro
H A Dno_init.rs113 let paddr = MMA::virt_2_phys(vaddr)?; in allocate()
H A Dmod.rs605 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method
/DragonOS/kernel/src/driver/virtio/
H A Dvirtio_impl.rs95 return MMArch::virt_2_phys(vaddr).unwrap().data(); in share()
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/
H A Dvcpu.rs108 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()
/DragonOS/kernel/src/mm/allocator/
H A Dkernel_allocator.rs58 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy()
/DragonOS/kernel/src/driver/acpi/
H A Dmod.rs133 MMArch::virt_2_phys(VirtAddr::new( in rsdp_paddr()
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs231 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method