Lines Matching refs:VirtAddr

40     MemoryManagementArch, PageTableKind, VirtAddr, VirtRegion, VmFlags,
113 pub mmap_min: VirtAddr,
117 pub elf_brk_start: VirtAddr,
118 pub elf_brk: VirtAddr,
121 pub brk_start: VirtAddr,
123 pub brk: VirtAddr,
125 pub start_code: VirtAddr,
126 pub end_code: VirtAddr,
127 pub start_data: VirtAddr,
128 pub end_data: VirtAddr,
136 mmap_min: VirtAddr(DEFAULT_MMAP_MIN_ADDR), in new()
137 elf_brk_start: VirtAddr::new(0), in new()
138 elf_brk: VirtAddr::new(0), in new()
142 start_code: VirtAddr(0), in new()
143 end_code: VirtAddr(0), in new()
144 start_data: VirtAddr(0), in new()
145 end_data: VirtAddr(0), in new()
248 start_vaddr: VirtAddr, in map_anonymous() argument
261 let round_hint_to_min = |hint: VirtAddr| { in map_anonymous()
267 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in map_anonymous()
271 Some(VirtAddr::new(addr)) in map_anonymous()
324 start_vaddr: VirtAddr, in file_mapping() argument
339 let round_hint_to_min = |hint: VirtAddr| { in file_mapping()
345 Some(VirtAddr::new(page_align_up(DEFAULT_MMAP_MIN_ADDR))) in file_mapping()
349 Some(VirtAddr::new(addr)) in file_mapping()
439 addr: Option<VirtAddr>, in mmap() argument
515 old_vaddr: VirtAddr, in mremap() argument
519 new_vaddr: VirtAddr, in mremap() argument
521 ) -> Result<VirtAddr, SystemError> { in mremap() argument
754 pub unsafe fn set_brk(&mut self, new_brk: VirtAddr) -> Result<VirtAddr, SystemError> { in set_brk() argument
786 pub unsafe fn sbrk(&mut self, incr: isize) -> Result<VirtAddr, SystemError> { in sbrk() argument
797 let new_brk = VirtAddr::new(page_align_up(new_brk.data())); in sbrk()
856 vm_holes: BTreeMap<VirtAddr, usize>,
863 vm_holes: core::iter::once((VirtAddr::new(0), MMArch::USER_END_VADDR.data())) in new()
872 pub fn contains(&self, vaddr: VirtAddr) -> Option<Arc<LockedVMA>> { in contains()
891 pub fn find_nearest(&self, vaddr: VirtAddr) -> Option<Arc<LockedVMA>> { in find_nearest()
927 pub fn find_free(&self, min_vaddr: VirtAddr, size: usize) -> Option<VirtRegion> { in find_free() argument
954 min_vaddr: VirtAddr, in find_free_at() argument
955 vaddr: VirtAddr, in find_free_at() argument
960 if vaddr == VirtAddr::new(0) { in find_free_at()
998 let prev_hole: Option<(&VirtAddr, &mut usize)> = in reserve_hole()
1662 pub fn page_address(&self, page: &Arc<Page>) -> Result<VirtAddr, SystemError> { in page_address() argument
1706 stack_bottom: VirtAddr,
1710 current_sp: VirtAddr,
1715 pub const DEFAULT_USER_STACK_BOTTOM: VirtAddr = MMArch::USER_STACK_START;
1724 stack_bottom: Option<VirtAddr>, in new() argument
1846 pub fn sp(&self) -> VirtAddr { in sp() argument
1850 pub unsafe fn set_sp(&mut self, sp: VirtAddr) { in set_sp() argument