Lines Matching refs:MemoryTrackerError

18 use super::error::MemoryTrackerError;
60 type Result<T> = result::Result<T, MemoryTrackerError>;
129 return Err(MemoryTrackerError::DifferentBaseAddress); in shrink()
132 return Err(MemoryTrackerError::SizeTooLarge); in shrink()
135 return Err(MemoryTrackerError::SizeTooSmall); in shrink()
148 MemoryTrackerError::FailedToMap in alloc_range()
167 MemoryTrackerError::FailedToMap in alloc_range_outside_main_memory()
178 MemoryTrackerError::FailedToMap in alloc_range_mut()
197 return Err(MemoryTrackerError::OutOfRange); in map_mmio_range()
200 return Err(MemoryTrackerError::Overlaps); in map_mmio_range()
203 return Err(MemoryTrackerError::Full); in map_mmio_range()
209 MemoryTrackerError::FailedToMap in map_mmio_range()
214 MemoryTrackerError::FailedToMap in map_mmio_range()
219 return Err(MemoryTrackerError::Full); in map_mmio_range()
231 return Err(MemoryTrackerError::OutOfRange); in check_allocatable()
240 return Err(MemoryTrackerError::Overlaps); in check_no_overlap()
243 return Err(MemoryTrackerError::Full); in check_no_overlap()
250 return Err(MemoryTrackerError::Full); in add()
269 return Err(MemoryTrackerError::SharedMemorySetFailure); in init_dynamic_shared_pool()
274 .map_err(|_| MemoryTrackerError::SharedPoolSetFailure)?; in init_dynamic_shared_pool()
295 .map_err(|_| MemoryTrackerError::SharedPoolSetFailure)?; in init_static_shared_pool()
344 .map_err(|_| MemoryTrackerError::InvalidPte) in map_lazy_mmio_as_valid()
359 .map_err(|_| MemoryTrackerError::FlushRegionFailed)?; in flush_dirty_pages()
370 .map_err(|_| MemoryTrackerError::SetPteDirtyFailed) in handle_permission_fault()
404 granule => Err(MemoryTrackerError::UnsupportedMmioGuardGranule(granule)), in get_granule()
416 return Err(MemoryTrackerError::DuplicateMmioShare(base)); in share()