Searched refs:phys (Results 1 – 12 of 12) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | early_ioremap.rs | 44 mut phys: PhysAddr, in map_not_aligned() 50 let offset = phys.data() - page_align_down(phys.data()); in map_not_aligned() 52 phys -= offset; in map_not_aligned() 54 let (map_vaddr, _) = Self::map(phys, size, read_only)?; in map_not_aligned() 77 phys: PhysAddr, in map() 81 if !phys.check_aligned(MMArch::PAGE_SIZE) { in map() 118 unsafe { pseudo_map_phys_ro(vaddr, phys, page_count) } in map() 120 unsafe { pseudo_map_phys(vaddr, phys, page_count) } in map() 133 slot_guard[slot_idx].phys = phys; in map() 206 phys: PhysAddr, field [all …]
|
H A D | page.rs | 467 phys: PhysAddr, field 475 pub unsafe fn new(base: VirtAddr, phys: PhysAddr, level: usize) -> Self { in new() 478 phys, in new() 503 pub fn phys(&self) -> PhysAddr { in phys() method 504 self.phys in phys() 522 return Arch::phys_2_virt(self.phys).unwrap(); in virt() 618 let phys = allocator.allocate_one()?; in clone() localVariable 619 let frame = MMArch::phys_2_virt(phys).unwrap(); in clone() 621 let new_table = PageTable::new(self.base, phys, self.level); in clone() 634 let phys = allocator.allocate_one()?; in clone() localVariable [all …]
|
H A D | mod.rs | 587 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt() 588 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt()
|
H A D | fault.rs | 614 let phys = page_guard.phys_address(); in filemap_map_pages() localVariable 619 .map_phys(address, phys, vma_guard.flags()) in filemap_map_pages()
|
H A D | ucontext.rs | 842 PhysPageFrame::new(self.utable.table().phys()), in drop() 1542 phys: PhysPageFrame, in physmap() 1550 let mut cur_phy = phys; in physmap() 1579 cur_phy = phys; in physmap()
|
/DragonOS/kernel/src/ipc/ |
H A D | syscall.rs | 315 let mut phys = PhysPageFrame::new(kernel_shm.start_paddr()); in shmat() localVariable 333 phys, in shmat() 380 phys.phys_address(), in shmat() 389 .get_unwrap(&phys.phys_address()) in shmat() 393 phys = phys.next(); in shmat()
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 216 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt() 219 if phys >= KERNEL_BEGIN_PA && phys < KERNEL_END_PA { in phys_2_virt() 220 let r = KERNEL_BEGIN_VA + (phys - KERNEL_BEGIN_PA); in phys_2_virt() 224 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt()
|
H A D | init.rs | 89 new_page_table = mapper.table().phys(); in riscv_mm_init()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 298 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt() 299 if let Some(vaddr) = phys.data().checked_add(Self::PHYS_OFFSET) { in phys_2_virt() 484 new_page_table = mapper.table().phys(); in allocator_init()
|
H A D | fault.rs | 81 } else if mapper.table().phys().data() & MMArch::ENTRY_FLAG_USER != 0 in show_fault_oops()
|
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 271 .phys(); in arch_init()
|
/DragonOS/kernel/src/arch/x86_64/kvm/vmx/ |
H A D | vcpu.rs | 401 let ept_root_hpa = mapper.table().phys(); in kvm_mmu_load()
|