/DragonOS/kernel/src/arch/riscv64/driver/ |
H A D | of.rs | 6 libs::align::page_align_up, 18 let map_size = page_align_up(fdt_size + offset); in map_fdt()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A 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()
|
H A D | mod.rs | 16 use crate::libs::align::page_align_up; 456 let virt_offset = VirtAddr::new(page_align_up(BOOTSTRAP_MM_INFO.unwrap().start_brk)); in allocator_init() 581 core::cmp::min(page_align_up(random_size as usize), TOTAL_SIZE - allocated); in test_buddy()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | kernel_allocator.rs | 6 libs::align::page_align_up, 34 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in alloc_in_buddy() 56 let count = (page_align_up(layout.size()) / MMArch::PAGE_SIZE).next_power_of_two(); in free_in_buddy()
|
/DragonOS/kernel/src/mm/ |
H A 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()
|
H A 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()
|
H A D | syscall.rs | 11 libs::align::{check_aligned, page_align_up}, 267 .set_brk(VirtAddr::new(page_align_up(new_addr.data()))) in brk() 395 let old_len = page_align_up(old_len); in mremap() 396 let new_len = page_align_up(new_len); in mremap()
|
H A D | ucontext.rs | 25 align::page_align_up, 219 bytes = page_align_up(bytes); in extend_stack() 267 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in map_anonymous() 277 let len = page_align_up(len); in map_anonymous() 345 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in file_mapping() 355 let len = page_align_up(len); in file_mapping() 797 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk() 1793 bytes = page_align_up(bytes); in initial_extend() 1828 bytes = page_align_up(bytes); in extend()
|
H A D | memblock.rs | 7 align::{page_align_down, page_align_up}, 369 size = page_align_up(size + base.data() - rsvd_base.data()); in set_or_clear_flags()
|
H A D | mmio_buddy.rs | 1 use crate::libs::align::{page_align_down, page_align_up}; 746 self.map_phys(paddr_base, page_align_up(length + offset))?; in map_any_phys()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | init.rs | 13 libs::align::{page_align_down, page_align_up}, 94 page_align_up(info.size as usize), in efi_init() 259 let page_count = (PhysPageFrame::new(PhysAddr::new(page_align_up( in reserve_memory_regions()
|
/DragonOS/kernel/src/driver/video/ |
H A D | mod.rs | 7 align::page_align_up, 89 let mmio_guard = mmio_pool().create_mmio(page_align_up(buf_size)).unwrap(); in init_frame_buffer() 106 .map_phys_with_flags(paddr, page_align_up(buf_size), page_flags) in init_frame_buffer()
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | transport_mmio.rs | 16 libs::align::page_align_up, 41 let size = page_align_up(size + page_offset); in new()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 5 align::page_align_up, 161 let page_count = PageFrameCount::from_bytes(page_align_up(size)).unwrap(); in add() 231 acc + PageFrameCount::from_bytes(page_align_up(kernel_shm.shm_size)) in shm_info() 318 let count = PageFrameCount::from_bytes(page_align_up(kernel_shm.shm_size)).unwrap(); in ipc_rmid() 442 let page_count = PageFrameCount::from_bytes(page_align_up(self.shm_size)).unwrap(); in map_count()
|
H A D | syscall.rs | 19 libs::align::page_align_up, 314 let size = page_align_up(kernel_shm.size()); in shmat()
|
/DragonOS/kernel/src/driver/acpi/ |
H A D | mod.rs | 11 libs::align::{page_align_down, page_align_up, AlignedBox}, 191 let size_fix = page_align_up(size + offset); in map_physical_region()
|
/DragonOS/kernel/src/syscall/ |
H A D | mod.rs | 36 libs::align::page_align_up, 601 let len = page_align_up(args[1]); in handle() 627 let len = page_align_up(args[1]); in handle() 637 let len = page_align_up(args[1]); in handle() 904 let len = page_align_up(args[1]); in handle() 1169 let start = page_align_up(args[0]); in handle() 1170 let len = page_align_up(args[1]); in handle()
|
/DragonOS/kernel/src/libs/ |
H A D | align.rs | 133 pub const fn page_align_up(addr: usize) -> usize { in page_align_up() function
|
H A D | elf.rs | 22 libs::align::page_align_up, 281 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment() 307 PageFrameCount::from_bytes(page_align_up(map_size)).unwrap(), in load_elf_segment()
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | fdt.rs | 331 use crate::libs::align::{page_align_down, page_align_up}; in early_reserve_fdt_itself() 335 let rsvd_size = page_align_up(fdt_paddr.data() - rsvd_start.data() + fdt.total_size()); in early_reserve_fdt_itself()
|