Lines Matching defs:PageFrameCount
154 pub struct PageFrameCount(usize); struct
156 impl PageFrameCount { impl
183 impl Add for PageFrameCount { implementation
191 impl AddAssign for PageFrameCount { implementation
197 impl Sub for PageFrameCount { implementation
205 impl SubAssign for PageFrameCount { implementation
211 impl Mul for PageFrameCount { implementation
219 impl Add<usize> for PageFrameCount { implementation
227 impl AddAssign<usize> for PageFrameCount { implementation
233 impl Sub<usize> for PageFrameCount { implementation
241 impl SubAssign<usize> for PageFrameCount { implementation
247 impl Mul<usize> for PageFrameCount { implementation
267 pub fn new(used: PageFrameCount, total: PageFrameCount) -> Self { in new()
271 pub fn used(&self) -> PageFrameCount { in used()
275 pub fn free(&self) -> PageFrameCount { in free()
279 pub fn total(&self) -> PageFrameCount { in total()
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()
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()
325 pub unsafe fn allocate_page_frames(count: PageFrameCount) -> Option<(PhysAddr, PageFrameCount)> { in allocate_page_frames() argument
334 pub unsafe fn deallocate_page_frames(frame: PhysPageFrame, count: PageFrameCount) { in deallocate_page_frames()