Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dmod.rs12 use crate::mm::virt_2_phys;
109 let fb = virt_2_phys(ahci_port_base_vaddr + (32 << 10) + (j << 8)); in ahci_rust_init()
110 let clb = virt_2_phys(ahci_port_base_vaddr + (j << 10)); in ahci_rust_init()
114 virt_2_phys( in ahci_rust_init()
Dahcidisk.rs1 use super::{_port, hba::HbaCmdTable, virt_2_phys};
136 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
145 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
298 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
307 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in write_at()
/DragonOS-0.1.8/kernel/src/mm/
Dmm.h39 #define virt_2_phys(addr) ((unsigned long)(addr)-PAGE_OFFSET) macro
Dmod.rs64 pub fn virt_2_phys(addr: usize) -> usize { in virt_2_phys() function
444 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method
/DragonOS-0.1.8/kernel/src/driver/virtio/
Dvirtio_impl.rs91 return MMArch::virt_2_phys(vaddr).unwrap().data(); in share()
/DragonOS-0.1.8/kernel/src/mm/allocator/
Dkernel_allocator.rs51 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs325 unsafe { MMArch::virt_2_phys(VirtAddr::new(page_align_up(virt_offset))) }.unwrap(); in allocator_init()