Lines Matching refs:VirtRegion
467 pub struct VirtRegion { struct
473 impl VirtRegion { argument
476 VirtRegion { start, size } in new()
499 return Some(VirtRegion::new(start, size)); in between()
505 pub fn intersect(&self, other: &VirtRegion) -> Option<VirtRegion> { in intersect() argument
508 return VirtRegion::between(start, end); in intersect()
537 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page()
542 pub fn collide(&self, other: &VirtRegion) -> bool { in collide()
556 pub fn before(self, region: &VirtRegion) -> Option<Self> { in before()
563 pub fn after(self, region: &VirtRegion) -> Option<Self> { in after()
573 pub fn rebase(self, vaddr: VirtAddr, new_base: &VirtRegion) -> Option<VirtAddr> { in rebase()
596 impl PartialOrd for VirtRegion { implementation
602 impl Ord for VirtRegion { implementation