Home
last modified time | relevance | path

Searched refs:page_align_up (Results 1 – 17 of 17) sorted by relevance

/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/
Dbump.rs2 libs::align::{page_align_down, page_align_up},
23 let offset_start = page_align_up(core::cmp::max(load_base + 16384, 0x200000)); in arch_remain_areas()
Dmod.rs15 use crate::libs::align::page_align_up;
410 unsafe { MMArch::virt_2_phys(VirtAddr::new(page_align_up(virt_offset))) }.unwrap(); in allocator_init()
533 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
/DragonOS-0.1.9/kernel/src/mm/allocator/
Dkernel_allocator.rs6 libs::align::page_align_up,
30 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in alloc_in_buddy()
52 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in free_in_buddy()
/DragonOS-0.1.9/kernel/src/mm/
Dc_adapter.rs12 libs::{align::page_align_up, spinlock::SpinLock},
31 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_pseudo_map_phys()
40 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in rs_map_phys()
Dkernel_mapper.rs10 libs::align::page_align_up,
114 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in map_phys_with_size()
Dsyscall.rs9 libs::align::{check_aligned, page_align_up},
175 .set_brk(VirtAddr::new(page_align_up(new_addr.data()))) in brk()
291 let old_len = page_align_up(old_len); in mremap()
292 let new_len = page_align_up(new_len); in mremap()
Dearly_ioremap.rs6 align::{page_align_down, page_align_up},
89 let slot_count = PageFrameCount::from_bytes(page_align_up(size)) in map()
Ducontext.rs23 align::page_align_up,
264 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in map_anonymous()
274 let len = page_align_up(len); in map_anonymous()
631 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk()
1393 bytes = page_align_up(bytes); in initial_extend()
1427 bytes = page_align_up(bytes); in extend()
Dmemblock.rs6 align::{page_align_down, page_align_up},
363 size = page_align_up((size as usize) + base.data() - rsvd_base.data()); in set_or_clear_flags()
/DragonOS-0.1.9/kernel/src/driver/firmware/efi/
Dinit.rs9 libs::align::{page_align_down, page_align_up},
83 page_align_up(info.size as usize), in efi_init()
224 let page_count = (PhysPageFrame::new(PhysAddr::new(page_align_up( in reserve_memory_regions()
/DragonOS-0.1.9/kernel/src/driver/acpi/
Dmod.rs10 libs::align::{page_align_down, page_align_up, AlignedBox},
185 let size_fix = page_align_up(size + offset); in map_physical_region()
/DragonOS-0.1.9/kernel/src/driver/video/
Dmod.rs8 align::page_align_up,
99 page_align_up(frame_buffer_info_guard.buf_size()) / MMArch::PAGE_SIZE, in init_frame_buffer()
/DragonOS-0.1.9/kernel/src/libs/
Dalign.rs129 pub const fn page_align_up(addr: usize) -> usize { in page_align_up() function
Delf.rs22 libs::align::page_align_up,
282 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
308 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
/DragonOS-0.1.9/kernel/src/driver/open_firmware/
Dfdt.rs304 use crate::libs::align::{page_align_down, page_align_up}; in early_reserve_fdt_itself()
308 let rsvd_size = page_align_up(fdt_paddr.data() - rsvd_start.data() + fdt.total_size()); in early_reserve_fdt_itself()
/DragonOS-0.1.9/kernel/src/syscall/
Dmod.rs34 libs::align::page_align_up,
605 let len = page_align_up(args[1]); in handle()
631 let len = page_align_up(args[1]); in handle()
641 let len = page_align_up(args[1]); in handle()
/DragonOS-0.1.9/kernel/src/driver/video/fbdev/
Dvesafb.rs45 align::page_align_up,
892 PageFrameCount::new(page_align_up(boottime_screen_info.lfb_size) / MMArch::PAGE_SIZE); in vesafb_early_init()