Lines Matching refs:PhysAddr
16 memblock::mem_block_manager, MemoryManagementArch, PhysAddr, VirtAddr,
57 let r = uefi_init(PhysAddr::new(data_from_fdt.systable.unwrap() as usize)); in efi_init()
84 PhysAddr::new(base), in efi_init()
93 PhysAddr::new(info.paddr as usize), in efi_init()
109 let start = PhysAddr::new(md.phys_start as usize); in efi_find_mirror()
130 fn uefi_init(system_table: PhysAddr) -> Result<(), SystemError> { in uefi_init()
224 fn efi_vaddr_2_paddr(efi_vaddr: usize) -> PhysAddr { in efi_vaddr_2_paddr() argument
242 return PhysAddr::new((md.phys_start + (efi_vaddr - md.virt_start)) as usize); in efi_vaddr_2_paddr()
246 return PhysAddr::new(efi_vaddr as usize); in efi_vaddr_2_paddr()
254 .remove_block(PhysAddr::new(0), PhysAddr::MAX.data()) in reserve_memory_regions()
259 let page_count = (PhysPageFrame::new(PhysAddr::new(page_align_up( in reserve_memory_regions()
263 - PhysPageFrame::new(PhysAddr::new(page_align_down(md.phys_start as usize))).ppn()) in reserve_memory_regions()
278 .mark_nomap(PhysAddr::new(phys_start), size) in reserve_memory_regions()
285 .reserve_block(PhysAddr::new(phys_start), size) in reserve_memory_regions()