Searched refs:virt_2_phys (Results 1 – 7 of 7) sorted by relevance
12 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()
1 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()
39 #define virt_2_phys(addr) ((unsigned long)(addr)-PAGE_OFFSET) macro
64 pub fn virt_2_phys(addr: usize) -> usize { in virt_2_phys() function444 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys() method
91 return MMArch::virt_2_phys(vaddr).unwrap().data(); in share()
51 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy()
325 unsafe { MMArch::virt_2_phys(VirtAddr::new(page_align_up(virt_offset))) }.unwrap(); in allocator_init()