Searched refs:page_align_up (Results 1 – 17 of 17) sorted by relevance
/DragonOS-0.1.9/kernel/src/arch/x86_64/mm/ |
D | bump.rs | 2 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()
|
D | mod.rs | 15 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/ |
D | kernel_allocator.rs | 6 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/ |
D | c_adapter.rs | 12 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()
|
D | kernel_mapper.rs | 10 libs::align::page_align_up, 114 let count = PageFrameCount::new(page_align_up(size) / MMArch::PAGE_SIZE); in map_phys_with_size()
|
D | syscall.rs | 9 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()
|
D | early_ioremap.rs | 6 align::{page_align_down, page_align_up}, 89 let slot_count = PageFrameCount::from_bytes(page_align_up(size)) in map()
|
D | ucontext.rs | 23 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()
|
D | memblock.rs | 6 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/ |
D | init.rs | 9 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/ |
D | mod.rs | 10 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/ |
D | mod.rs | 8 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/ |
D | align.rs | 129 pub const fn page_align_up(addr: usize) -> usize { in page_align_up() function
|
D | elf.rs | 22 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/ |
D | fdt.rs | 304 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/ |
D | mod.rs | 34 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/ |
D | vesafb.rs | 45 align::page_align_up, 892 PageFrameCount::new(page_align_up(boottime_screen_info.lfb_size) / MMArch::PAGE_SIZE); in vesafb_early_init()
|