Searched refs:check_aligned (Results 1 – 13 of 13) sorted by relevance
/DragonOS/kernel/src/mm/ |
H A D | no_init.rs | 76 assert!(vaddr.check_aligned(MMArch::PAGE_SIZE)); in allocate_page() 119 assert!(address.check_aligned(MMA::PAGE_SIZE)); in free() 165 assert!(vaddr.check_aligned(MMArch::PAGE_SIZE)); in pseudo_map_phys_with_flags() 166 assert!(paddr.check_aligned(MMArch::PAGE_SIZE)); in pseudo_map_phys_with_flags() 194 assert!(vaddr.check_aligned(MMArch::PAGE_SIZE)); in pseudo_unmap_phys()
|
H A D | syscall.rs | 11 libs::align::{check_aligned, page_align_up}, 390 if !old_vaddr.check_aligned(MMArch::PAGE_SIZE) { in mremap() 451 assert!(start_vaddr.check_aligned(MMArch::PAGE_SIZE)); in munmap() 452 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in munmap() 485 assert!(start_vaddr.check_aligned(MMArch::PAGE_SIZE)); in mprotect() 486 assert!(check_aligned(len, MMArch::PAGE_SIZE)); in mprotect() 520 if !start_vaddr.check_aligned(MMArch::PAGE_SIZE) || !check_aligned(len, MMArch::PAGE_SIZE) { in madvise() 552 if !start.check_aligned(MMArch::PAGE_SIZE) || !check_aligned(len, MMArch::PAGE_SIZE) { in msync()
|
H A D | early_ioremap.rs | 81 if !phys.check_aligned(MMArch::PAGE_SIZE) { in map()
|
H A D | ucontext.rs | 523 if !new_vaddr.check_aligned(MMArch::PAGE_SIZE) { in mremap() 755 assert!(new_brk.check_aligned(MMArch::PAGE_SIZE)); in set_brk() 968 if requested.end() >= MMArch::USER_END_VADDR || !vaddr.check_aligned(MMArch::PAGE_SIZE) { in find_free_at() 1208 assert!(region.start().check_aligned(MMArch::PAGE_SIZE)); in extract() 1209 assert!(region.end().check_aligned(MMArch::PAGE_SIZE)); in extract() 1728 assert!(stack_bottom.check_aligned(MMArch::PAGE_SIZE)); in new()
|
H A D | mmio_buddy.rs | 532 assert!(vaddr.check_aligned(MMArch::PAGE_SIZE)); in release_mmio() 637 vaddr.check_aligned(size), in from_raw()
|
H A D | mod.rs | 185 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() method 308 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() method
|
H A D | page.rs | 1209 if !(virt.check_aligned(Arch::PAGE_SIZE) && phys.check_aligned(Arch::PAGE_SIZE)) { in map_phys() 1266 if !(virt.check_aligned(Arch::PAGE_SIZE)) { in map_huge_page() 1514 if !virt.check_aligned(Arch::PAGE_SIZE) { in unmap_phys()
|
/DragonOS/kernel/src/libs/ |
H A D | align.rs | 164 pub fn check_aligned(value: usize, align: usize) -> bool { in check_aligned() function
|
/DragonOS/kernel/src/driver/open_firmware/ |
H A D | fdt.rs | 228 if PhysAddr::new(base).check_aligned(MMArch::PAGE_SIZE) == false { in early_init_dt_add_memory()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | buddy.rs | 299 if !entry.check_aligned(1 << spec_order) { in pop_front()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 592 .check_aligned(allocated_frame_count.data() * MMArch::PAGE_SIZE)); in test_buddy()
|
/DragonOS/kernel/src/driver/pci/ |
H A D | pci.rs | 59 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() method
|
/DragonOS/kernel/src/process/ |
H A D | mod.rs | 1422 if base.is_null() || !base.check_aligned(Self::ALIGN) { in from_existed()
|