Lines Matching refs:new
20 pub fn new(paddr: PhysAddr) -> Self { in new() method
28 return PhysAddr::new(self.number * MMArch::PAGE_SIZE); in phys_address()
43 return PhysPageFrameIter::new(start, end); in iter_range()
56 pub fn new(start: PhysPageFrame, end: PhysPageFrame) -> Self { in new() method
84 pub fn new(vaddr: VirtAddr) -> Self { in new() method
92 return VirtAddr::new(self.number * MMArch::PAGE_SIZE); in virt_address()
130 pub fn new(start: VirtPageFrame, end: VirtPageFrame) -> Self { in new() method
158 pub const fn new(count: usize) -> Self { in new() method
267 pub fn new(used: PageFrameCount, total: PageFrameCount) -> Self { in new() method
293 return self.allocate(PageFrameCount::new(1)).map(|(addr, _)| addr); in allocate_one()
297 return self.free(address, PageFrameCount::new(1)); in free_one()