Home
last modified time | relevance | path

Searched refs:page_align_down (Results 1 – 10 of 10) sorted by relevance

/DragonOS/kernel/src/arch/x86_64/mm/
H A Dbump.rs2 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 Dmod.rs11 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 Dmemmap.rs8 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 Dinit.rs13 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 Dfdt.rs216 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 Dearly_ioremap.rs6 align::{page_align_down, page_align_up},
50 let offset = phys.data() - page_align_down(phys.data()); in map_not_aligned()
H A Dmemblock.rs7 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 Dmmio_buddy.rs1 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 Dfault.rs79 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 Dalign.rs138 pub const fn page_align_down(addr: usize) -> usize { in page_align_down() function