Home
last modified time | relevance | path

Searched refs:check_aligned (Results 1 – 13 of 13) sorted by relevance

/DragonOS/kernel/src/mm/
H A Dno_init.rs76 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 Dsyscall.rs11 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 Dearly_ioremap.rs81 if !phys.check_aligned(MMArch::PAGE_SIZE) { in map()
H A Ducontext.rs523 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 Dmmio_buddy.rs532 assert!(vaddr.check_aligned(MMArch::PAGE_SIZE)); in release_mmio()
637 vaddr.check_aligned(size), in from_raw()
H A Dmod.rs185 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 Dpage.rs1209 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 Dalign.rs164 pub fn check_aligned(value: usize, align: usize) -> bool { in check_aligned() function
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs228 if PhysAddr::new(base).check_aligned(MMArch::PAGE_SIZE) == false { in early_init_dt_add_memory()
/DragonOS/kernel/src/mm/allocator/
H A Dbuddy.rs299 if !entry.check_aligned(1 << spec_order) { in pop_front()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs592 .check_aligned(allocated_frame_count.data() * MMArch::PAGE_SIZE)); in test_buddy()
/DragonOS/kernel/src/driver/pci/
H A Dpci.rs59 pub fn check_aligned(&self, align: usize) -> bool { in check_aligned() method
/DragonOS/kernel/src/process/
H A Dmod.rs1422 if base.is_null() || !base.check_aligned(Self::ALIGN) { in from_existed()