Lines Matching refs:VirtAddr
190 pub struct VirtAddr(usize); struct
192 impl VirtAddr { implementation
241 impl Add<VirtAddr> for VirtAddr { implementation
245 fn add(self, rhs: VirtAddr) -> Self::Output { in add()
250 impl Add<usize> for VirtAddr { implementation
259 impl Sub<VirtAddr> for VirtAddr { implementation
263 fn sub(self, rhs: VirtAddr) -> Self::Output { in sub()
268 impl Sub<usize> for VirtAddr { implementation
277 impl AddAssign<usize> for VirtAddr { implementation
284 impl AddAssign<VirtAddr> for VirtAddr { implementation
286 fn add_assign(&mut self, rhs: VirtAddr) { in add_assign() argument
291 impl SubAssign<usize> for VirtAddr { implementation
298 impl SubAssign<VirtAddr> for VirtAddr { implementation
300 fn sub_assign(&mut self, rhs: VirtAddr) { in sub_assign() argument
305 impl Debug for VirtAddr { implementation
381 const USER_END_VADDR: VirtAddr;
383 const USER_BRK_START: VirtAddr;
385 const USER_STACK_START: VirtAddr;
393 unsafe fn read<T>(address: VirtAddr) -> T { in read()
399 unsafe fn write<T>(address: VirtAddr, value: T) { in write() argument
404 unsafe fn write_bytes(address: VirtAddr, value: u8, count: usize) { in write_bytes() argument
409 unsafe fn invalidate_page(address: VirtAddr); in invalidate_page() argument
426 unsafe fn phys_2_virt(phys: PhysAddr) -> Option<VirtAddr> { in phys_2_virt() argument
428 return Some(VirtAddr::new(vaddr)); in phys_2_virt()
444 unsafe fn virt_2_phys(virt: VirtAddr) -> Option<PhysAddr> { in virt_2_phys()
453 fn virt_is_valid(virt: VirtAddr) -> bool; in virt_is_valid()
468 start: VirtAddr,
475 pub fn new(start: VirtAddr, size: usize) -> Self { in new() argument
481 pub fn start(&self) -> VirtAddr { in start() argument
487 pub fn end(&self) -> VirtAddr { in end() argument
494 pub fn between(start: VirtAddr, end: VirtAddr) -> Option<Self> { in between() argument
513 pub fn set_start(&mut self, start: VirtAddr) { in set_start() argument
573 pub fn rebase(self, vaddr: VirtAddr, new_base: &VirtRegion) -> Option<VirtAddr> { in rebase() argument
579 return Some(VirtAddr::new(new_start)); in rebase()
583 pub fn contains(&self, addr: VirtAddr) -> bool { in contains()
614 pub fn verify_area(addr: VirtAddr, size: usize) -> Result<(), SystemError> { in verify_area() argument