Lines Matching refs:phys
25 phys: PhysAddr, field
33 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new()
36 phys, in new()
61 pub fn phys(&self) -> PhysAddr { in phys() method
62 self.phys in phys()
80 return Arch::phys_2_virt(self.phys).unwrap(); in virt()
513 return unsafe { self.table().phys() == Arch::table(self.table_kind) }; in is_current()
551 let phys: PhysAddr = self.frame_allocator.allocate_one()?; in map() localVariable
553 return self.map_phys(virt, phys, flags); in map()
560 phys: PhysAddr, in map_phys()
564 if !(virt.check_aligned(Arch::PAGE_SIZE) && phys.check_aligned(Arch::PAGE_SIZE)) { in map_phys()
568 phys in map_phys()
577 let entry = PageEntry::new(phys.data() | flags.data()); in map_phys()
632 phys: PhysAddr, in map_linearly()
635 let virt: VirtAddr = Arch::phys_2_virt(phys)?; in map_linearly()
636 return self.map_phys(virt, phys, flags).map(|flush| (virt, flush)); in map_linearly()
788 allocator.free_one(subtable.phys()); in unmap_phys_inner()