Lines Matching refs:PhysAddr
8 mm::{MemoryManagementArch, PhysAddr, VirtAddr},
20 pub fn new(paddr: PhysAddr) -> Self { in new()
27 pub fn phys_address(&self) -> PhysAddr { in phys_address() argument
28 return PhysAddr::new(self.number * MMArch::PAGE_SIZE); in phys_address()
287 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate() argument
290 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() argument
292 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() argument
296 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() argument
305 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument
308 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() argument
311 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() argument
314 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() argument
325 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames() argument