Lines Matching refs:VirtRegion
705 pub struct VirtRegion { struct
711 impl VirtRegion { impl
714 VirtRegion { start, size } in new()
737 return Some(VirtRegion::new(start, size)); in between()
743 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect() argument
746 return VirtRegion::between(start, end); in intersect()
775 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page()
780 pub fn collide(&self, other: &VirtRegion) -> bool { in collide()
794 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before()
801 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after()
811 pub fn rebase(self, vaddr: VirtAddr, new_base: &VirtRegion) -> Option<VirtAddr> { in rebase()
834 impl PartialOrd for VirtRegion { implementation
840 impl Ord for VirtRegion { implementation