Searched refs:phy_addr (Results 1 – 2 of 2) sorted by relevance
36 let (phy_addr, allocated_frame_count) = LockedFrameAllocator in alloc_in_buddy()40 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr).ok_or(AllocError)? }; in alloc_in_buddy()58 let phy_addr = MMArch::virt_2_phys(VirtAddr::new(ptr as usize)).unwrap(); in free_in_buddy() localVariable59 LockedFrameAllocator.free(phy_addr, page_frame_count); in free_in_buddy()
234 let (phy_addr, page_count) = in do_mmap()238 let mut cur_phys = PhysPageFrame::new(phy_addr); in do_mmap()246 let virt_addr = unsafe { MMArch::phys_2_virt(phy_addr) }.ok_or(SystemError::EFAULT)?; in do_mmap()248 let mmap_page = RingPage::new_init(virt_addr.data(), len, phy_addr); in do_mmap()265 let phy_addr = data.mmap_page.phys_addr; in drop() localVariable268 let mut cur_phys = PhysPageFrame::new(phy_addr); in drop()