Searched refs:page_align_down (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | bump.rs | 2 libs::align::{page_align_down, page_align_up}, 24 let offset_end = page_align_down(kernel_code_start - 16384); in arch_remain_areas()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | mod.rs | 11 libs::align::{page_align_down, page_align_up, AlignedBox}, 190 let offset = physical_address - page_align_down(physical_address); in map_physical_region() 198 .map_phys(PhysAddr::new(page_align_down(physical_address)), size_fix) in map_physical_region() 220 VirtAddr::new(page_align_down( in unmap_physical_region()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 8 libs::align::page_align_down, 111 let offset = paddr.data() - page_align_down(paddr.data()); in do_efi_memmap_init() 118 PhysAddr::new(page_align_down(paddr.data())), in do_efi_memmap_init()
|
H A D | init.rs | 13 libs::align::{page_align_down, page_align_up}, 79 let base = page_align_down(data_from_fdt.mmap_base.unwrap() as usize); in efi_init() 263 - PhysPageFrame::new(PhysAddr::new(page_align_down(md.phys_start as usize))).ppn()) in reserve_memory_regions() 265 let phys_start = page_align_down(md.phys_start as usize); in reserve_memory_regions()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | fdt.rs | 216 libs::align::page_align_down, in early_init_dt_add_memory() 229 base = page_align_down(base); in early_init_dt_add_memory() 232 size = page_align_down(size); in early_init_dt_add_memory() 330 use crate::libs::align::{page_align_down, page_align_up}; in early_reserve_fdt_itself() 333 let rsvd_start = PhysAddr::new(page_align_down(fdt_paddr.data())); in early_reserve_fdt_itself()
|
/DragonOS/kernel/src/mm/ |
H A D | early_ioremap.rs | 6 align::{page_align_down, page_align_up}, 50 let offset = phys.data() - page_align_down(phys.data()); in map_not_aligned()
|
H A D | memblock.rs | 7 align::{page_align_down, page_align_up}, 368 let rsvd_base = PhysAddr::new(page_align_down(base.data())); in set_or_clear_flags()
|
H A D | mmio_buddy.rs | 1 use crate::libs::align::{page_align_down, page_align_up}; 741 let paddr_base = PhysAddr::new(page_align_down(paddr.data())); in map_any_phys()
|
H A D | fault.rs | 79 address: VirtAddr::new(crate::libs::align::page_align_down(address.data())), in new() 103 VirtAddr::new(crate::libs::align::page_align_down(self.address.data())) in address_aligned_down()
|
/DragonOS/kernel/src/libs/ |
H A D | align.rs | 138 pub const fn page_align_down(addr: usize) -> usize { in page_align_down() function
|