Home
last modified time | relevance | path

Searched refs:PAGE_SHIFT (Results 1 – 5 of 5) sorted by relevance

/DragonOS-0.1.8/kernel/src/mm/allocator/
Dbump.rs94 let area_base = (area.base.data() + MMA::PAGE_SHIFT) & !(MMA::PAGE_SHIFT); in usage()
96 let area_end = (area.base.data() + area.size) & !(MMA::PAGE_SHIFT); in usage()
98 total += (area_end - area_base) >> MMA::PAGE_SHIFT; in usage()
101 used += (area_end - area_base) >> MMA::PAGE_SHIFT; in usage()
106 used += (self.offset - area_base) >> MMA::PAGE_SHIFT; in usage()
Dbuddy.rs299 self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8); in pop_front()
342 unsafe { self.buddy_free(page_list_addr, MMArch::PAGE_SHIFT as u8) }; in pop_front()
/DragonOS-0.1.8/kernel/src/mm/
Dmod.rs322 const PAGE_SHIFT: usize; constant
355 const PAGE_SIZE: usize = 1 << Self::PAGE_SHIFT;
360 const PAGE_ADDRESS_SHIFT: usize = Self::PAGE_LEVELS * Self::PAGE_ENTRY_SHIFT + Self::PAGE_SHIFT;
366 const PAGE_ENTRY_SIZE: usize = 1 << (Self::PAGE_SHIFT - Self::PAGE_ENTRY_SHIFT);
Dpage.rs86 let shift = self.level * Arch::PAGE_ENTRY_SHIFT + Arch::PAGE_SHIFT; in entry_base()
141 let shift = self.level * Arch::PAGE_ENTRY_SHIFT + Arch::PAGE_SHIFT; in index_of()
/DragonOS-0.1.8/kernel/src/arch/x86_64/mm/
Dmod.rs84 const PAGE_SHIFT: usize = 12; constant