Lines Matching refs:paddr
173 let paddr: usize; in table() localVariable
175 asm!("mov {}, cr3", out(reg) paddr, options(nomem, nostack, preserves_flags)); in table()
177 return PhysAddr::new(paddr); in table()
368 let paddr = area.base.add(i * MMArch::PAGE_SIZE); in allocator_init() localVariable
369 let vaddr = unsafe { MMArch::phys_2_virt(paddr) }.unwrap(); in allocator_init()
373 .map_phys(vaddr, paddr, flags) in allocator_init()
463 let (paddr, allocated_frame_count) = in test_buddy()
466 assert!(paddr.data() % MMArch::PAGE_SIZE == 0); in test_buddy()
468 assert!(MMArch::phys_2_virt(paddr) in test_buddy()
474 v.push((paddr, allocated_frame_count)); in test_buddy()
475 assert!(addr_set.insert(paddr), "duplicate address: {:?}", paddr); in test_buddy()
478 let vaddr = unsafe { MMArch::phys_2_virt(paddr).unwrap() }; in test_buddy()
499 let (paddr, allocated_frame_count) = v.remove(random_index); in test_buddy()
500 assert!(addr_set.remove(&paddr)); in test_buddy()
501 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy()
515 for (paddr, allocated_frame_count) in v { in test_buddy()
516 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy()
517 assert!(addr_set.remove(&paddr)); in test_buddy()
595 let paddr = PhysAddr::new(i * MMArch::PAGE_SIZE); in remap_at_low_address() localVariable
600 .map_phys(vaddr, paddr, flags) in remap_at_low_address()