Lines Matching refs:size
405 pub size: usize, field
413 size: 0,
417 pub fn new(base: PhysAddr, size: usize, flags: MemoryAreaAttr) -> Self { in new()
418 Self { base, size, flags } in new()
430 return PhysAddr::new((self.base.data() + self.size) & !(MMArch::PAGE_SIZE - 1)); in area_end_aligned()
707 size: usize, field
713 pub fn new(start: VirtAddr, size: usize) -> Self { in new()
714 VirtRegion { start, size } in new()
726 return self.start().add(self.size); in end()
736 let size = end.data() - start.data(); in between() localVariable
737 return Some(VirtRegion::new(start, size)); in between()
756 pub fn size(&self) -> usize { in size() method
757 self.size in size()
762 pub fn set_size(&mut self, size: usize) { in set_size()
763 self.size = size; in set_size()
769 self.size == 0 in is_empty()
775 return VirtRegion::new(self.start, round_up_to_page_size(self.size)); in round_up_size_to_page()
852 pub fn verify_area(addr: VirtAddr, size: usize) -> Result<(), SystemError> { in verify_area()
853 let end = addr.add(size); in verify_area()