Lines Matching refs:PhysAddr
10 mm::{MemoryManagementArch, PhysAddr, VirtAddr},
22 pub fn new(paddr: PhysAddr) -> Self { in new()
39 pub fn phys_address(&self) -> PhysAddr { in phys_address() argument
40 return PhysAddr::new(self.number * MMArch::PAGE_SIZE); in phys_address()
311 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)>; in allocate() argument
314 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() argument
316 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() argument
320 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() argument
329 unsafe fn allocate(&mut self, count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate() argument
332 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() argument
335 unsafe fn allocate_one(&mut self) -> Option<PhysAddr> { in allocate_one() argument
338 unsafe fn free_one(&mut self, address: PhysAddr) { in free_one() argument
349 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames() argument