Lines Matching refs:start
593 start: VirtAddr, field
600 pub fn new(start: VirtAddr, size: usize) -> Self { in new()
601 VirtRegion { start, size } in new()
606 pub fn start(&self) -> VirtAddr { in start() method
607 self.start in start()
613 return self.start().add(self.size); in end()
619 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between()
620 if unlikely(end.data() <= start.data()) { in between()
623 let size = end.data() - start.data(); in between()
624 return Some(VirtRegion::new(start, size)); in between()
631 let start = self.start.max(other.start); in intersect() localVariable
633 return VirtRegion::between(start, end); in intersect()
638 pub fn set_start(&mut self, start: VirtAddr) { in set_start()
639 self.start = start; in set_start()
662 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page()
673 VirtPageFrame::new(self.start), in iter_pages()
682 return Self::between(self.start(), region.start()); in before()
702 let offset = vaddr.data() - self.start().data(); in rebase()
703 let new_start = new_base.start().data() + offset; in rebase()
709 return self.start() <= addr && addr < self.end(); in contains()
715 VirtPageFrame::new(self.start()), in pages()
723 return self.start.partial_cmp(&other.start); in partial_cmp()
729 return self.start.cmp(&other.start); in cmp()