• Home
  • Raw
  • Download

Lines Matching refs:usize

35     InvalidRange(usize, usize, usize),
119 fn validate_includes_range(mmap_size: usize, offset: usize, range_size: usize) -> Result<()> { in validate_includes_range() argument
142 fn size(&self) -> usize; in size() argument
156 _offset: usize, in add_fd_mapping() argument
157 _size: usize, in add_fd_mapping() argument
166 fn remove_mapping(&mut self, _offset: usize, _size: usize) -> Result<()> { in remove_mapping() argument
174 pub fn msync(&self, offset: usize, size: usize) -> Result<()> { in msync() argument
182 (self.as_ptr() as usize + offset) as *mut libc::c_void, in msync()
199 size: usize,
214 pub fn new(size: usize) -> Result<MemoryMapping> { in new()
223 pub fn new_protection(size: usize, prot: Protection) -> Result<MemoryMapping> { in new_protection() argument
242 pub fn from_fd(fd: &dyn AsRawFd, size: usize) -> Result<MemoryMapping> { in from_fd()
246 pub fn from_fd_offset(fd: &dyn AsRawFd, size: usize, offset: u64) -> Result<MemoryMapping> { in from_fd_offset() argument
260 size: usize, in from_fd_offset_flags() argument
281 size: usize, in from_fd_offset_protection() argument
296 size: usize, in from_fd_offset_protection_populate() argument
322 size: usize, in new_protection_fixed() argument
352 size: usize, in from_fd_offset_protection_fixed() argument
369 size: usize, in try_mmap() argument
378 if (addr as usize) % pagesize() != 0 { in try_mmap()
416 const SZ_2M: usize = 2 * 1024 * 1024; in use_hugepages()
472 pub fn write_slice(&self, buf: &[u8], offset: usize) -> Result<usize> { in write_slice() argument
504 pub fn read_slice(&self, buf: &mut [u8], offset: usize) -> Result<usize> { in read_slice() argument
536 pub fn write_obj<T: DataInit>(&self, val: T, offset: usize) -> Result<()> { in write_obj()
561 pub fn read_obj<T: DataInit>(&self, offset: usize) -> Result<T> { in read_obj()
597 mut mem_offset: usize, in read_to_memory() argument
599 mut count: usize, in read_to_memory() argument
620 let bytes_read = ret as usize; in read_to_memory()
625 mem_offset += ret as usize; in read_to_memory()
656 mut mem_offset: usize, in write_from_memory() argument
658 mut count: usize, in write_from_memory() argument
679 let bytes_written = ret as usize; in write_from_memory()
684 mem_offset += ret as usize; in write_from_memory()
693 pub fn remove_range(&self, mem_offset: usize, count: usize) -> Result<()> { in remove_range() argument
700 (self.addr as usize + mem_offset) as *mut _, in remove_range()
713 fn range_end(&self, offset: usize, count: usize) -> Result<usize> { in range_end() argument
729 fn size(&self) -> usize { in size() argument
735 fn get_slice(&self, offset: usize, count: usize) -> VolatileMemoryResult<VolatileSlice> { in get_slice() argument
742 (self.as_ptr() as usize) in get_slice()
745 base: self.as_ptr() as usize, in get_slice()
769 size: usize,
784 pub fn new(size: usize) -> Result<MemoryMappingArena> { in new()
796 pub fn add_anon(&mut self, offset: usize, size: usize) -> Result<()> { in add_anon() argument
807 pub fn add_fd(&mut self, offset: usize, size: usize, fd: &dyn AsRawFd) -> Result<()> { in add_fd() argument
821 offset: usize, in add_fd_offset() argument
822 size: usize, in add_fd_offset() argument
841 offset: usize, in add_fd_offset_protection() argument
842 size: usize, in add_fd_offset_protection() argument
854 offset: usize, in try_add() argument
855 size: usize, in try_add() argument
890 pub fn remove(&mut self, offset: usize, size: usize) -> Result<()> { in remove() argument
902 fn size(&self) -> usize { in size() argument
908 offset: usize, in add_fd_mapping() argument
909 size: usize, in add_fd_mapping() argument
917 fn remove_mapping(&mut self, offset: usize, size: usize) -> Result<()> { in remove_mapping() argument
1011 let res = m.get_slice(std::usize::MAX, 3).unwrap_err(); in slice_overflow_error()
1015 base: std::usize::MAX, in slice_overflow_error()