Searched refs:PAGE_SHIFT (Results 1 – 5 of 5) sorted by relevance
94 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()
299 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()
322 const PAGE_SHIFT: usize; constant355 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);
86 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()
84 const PAGE_SHIFT: usize = 12; constant