/external/crosvm/base/src/ |
D | mmap.rs | 260 pub struct MemoryMappingBuilder<'a> { struct 270 impl<'a> MemoryMappingBuilder<'a> { argument 272 pub fn new(size: usize) -> MemoryMappingBuilder<'a> { in new() 273 MemoryMappingBuilder { in new() 290 pub fn from_file(mut self, file: &'a File) -> MemoryMappingBuilder { in from_file() argument 301 pub fn from_shared_memory(mut self, shm: &'a SharedMemory) -> MemoryMappingBuilder { in from_shared_memory() argument 309 pub fn offset(mut self, offset: u64) -> MemoryMappingBuilder<'a> { in offset() 317 pub fn protection(mut self, protection: Protection) -> MemoryMappingBuilder<'a> { in protection() 340 None => MemoryMappingBuilder::wrap( in build_fixed() 348 Some(descriptor) => MemoryMappingBuilder::wrap( in build_fixed()
|
/external/crosvm/kvm/tests/ |
D | read_only_memory.rs | 8 use base::MemoryMappingBuilder; 28 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_run() 55 MemoryMappingBuilder::new(mem_size as usize) in test_run() 68 let mmap_ro = MemoryMappingBuilder::new(0x1000) in test_run() 78 MemoryMappingBuilder::new(0x1000) in test_run()
|
D | dirty_log.rs | 8 use base::MemoryMappingBuilder; 26 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_run() 53 MemoryMappingBuilder::new(mem_size as usize) in test_run()
|
D | kvm_tests.rs | 11 use base::MemoryMappingBuilder; 110 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 113 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 124 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory_ro() 135 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in remove_memory_region() 159 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in overlap_memory()
|
/external/crosvm/hypervisor/tests/ |
D | read_only_memory.rs | 12 use base::MemoryMappingBuilder; 88 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_read_only_memory() 121 MemoryMappingBuilder::new(mem_size as usize) in test_read_only_memory() 135 let mmap_ro = MemoryMappingBuilder::new(0x1000) in test_read_only_memory() 145 MemoryMappingBuilder::new(0x1000) in test_read_only_memory()
|
D | remove_memory.rs | 9 use base::MemoryMappingBuilder; 82 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_remove_memory() 106 MemoryMappingBuilder::new(mem_size as usize) in test_remove_memory() 119 let mmap_to_remove = MemoryMappingBuilder::new(0x1000) in test_remove_memory() 130 MemoryMappingBuilder::new(0x1000) in test_remove_memory()
|
D | dirty_log.rs | 10 use base::MemoryMappingBuilder; 84 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_dirty_log() 112 MemoryMappingBuilder::new(mem_size as usize) in test_dirty_log()
|
/external/crosvm/base/src/sys/windows/ |
D | mmap.rs | 23 use crate::MemoryMappingBuilder; 217 fn from_descriptor(self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder; in from_descriptor() argument 220 impl<'a> MemoryMappingBuilderWindows<'a> for MemoryMappingBuilder<'a> { implementation 222 fn from_descriptor(mut self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder { in from_descriptor() argument 228 impl<'a> MemoryMappingBuilder<'a> { impl 255 MemoryMappingBuilder::wrap( in build() 272 None => MemoryMappingBuilder::wrap( in build()
|
D | mmap_platform.rs | 320 use crate::MemoryMappingBuilder; 325 let res = MemoryMappingBuilder::new(1024) in map_invalid_fd() 343 let res = MemoryMappingBuilder::new(4096) in from_descriptor_offset_invalid() 359 let m = MemoryMappingBuilder::new(size) in arena_msync()
|
/external/crosvm/base/src/sys/unix/ |
D | mmap.rs | 24 use crate::MemoryMappingBuilder; 955 fn from_descriptor(self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder; in from_descriptor() argument 958 impl<'a> MemoryMappingBuilderUnix<'a> for MemoryMappingBuilder<'a> { implementation 963 fn from_descriptor(mut self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder { in from_descriptor() argument 969 impl<'a> MemoryMappingBuilder<'a> { impl 973 pub fn populate(mut self) -> MemoryMappingBuilder<'a> { in populate() 986 MemoryMappingBuilder::wrap( in build() 994 Some(descriptor) => MemoryMappingBuilder::wrap( in build() 1036 let m = MemoryMappingBuilder::new(1024).build().unwrap(); in basic_map() 1042 let res = MemoryMappingBuilder::new(0).build().unwrap_err(); in map_invalid_size() [all …]
|
D | shm.rs | 339 use crate::MemoryMappingBuilder; 397 let mmap1 = MemoryMappingBuilder::new(shm.size() as usize) in mmap_page() 401 let mmap2 = MemoryMappingBuilder::new(shm.size() as usize) in mmap_page() 428 let mmap1 = MemoryMappingBuilder::new(shm.size() as usize) in mmap_page_offset() 433 let mmap2 = MemoryMappingBuilder::new(shm.size() as usize) in mmap_page_offset()
|
/external/crosvm/swap/tests/common/ |
D | mod.rs | 7 use base::MemoryMappingBuilder; 33 let mmap = MemoryMappingBuilder::new(size) in create_shared_memory()
|
/external/crosvm/swap/tests/ |
D | page_handler.rs | 19 use base::MemoryMappingBuilder; 304 let mmap1 = MemoryMappingBuilder::new(3 * pagesize()) in move_to_staging_data_written_before_enabling() 308 let mmap2 = MemoryMappingBuilder::new(3 * pagesize()) in move_to_staging_data_written_before_enabling() 400 let mmap1 = MemoryMappingBuilder::new(5 * HUGEPAGE_SIZE) in move_to_staging_hugepage_chunks() 404 let mmap2 = MemoryMappingBuilder::new(5 * HUGEPAGE_SIZE) in move_to_staging_hugepage_chunks() 558 let mmap1 = MemoryMappingBuilder::new(3 * pagesize()) in swap_out_success() 562 let mmap2 = MemoryMappingBuilder::new(3 * pagesize()) in swap_out_success() 643 let mmap1 = MemoryMappingBuilder::new(3 * pagesize()) in swap_out_handled_page() 696 let mmap1 = MemoryMappingBuilder::new(3 * pagesize()) in swap_out_twice() 700 let mmap2 = MemoryMappingBuilder::new(3 * pagesize()) in swap_out_twice() [all …]
|
/external/crosvm/hypervisor/tests/kvm/ |
D | main.rs | 20 use base::MemoryMappingBuilder; 122 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 125 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 136 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory_ro() 147 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in remove_memory() 171 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in overlap_memory()
|
/external/crosvm/devices/src/virtio/vhost/user/device/vvu/ |
D | doorbell.rs | 10 use base::MemoryMappingBuilder; 40 let mmap = MemoryMappingBuilder::new(mmap_region[0].size as usize) in new()
|
/external/crosvm/arch/src/ |
D | pstore.rs | 10 use base::MemoryMappingBuilder; 45 let memory_mapping = MemoryMappingBuilder::new(pstore.size as usize) in create_memory_region()
|
/external/crosvm/devices/src/pci/ |
D | acpi.rs | 10 use base::MemoryMappingBuilder; 30 MemoryMappingBuilder::new(SHM_SIZE as usize) in create_shm_mmap()
|
/external/crosvm/devices/src/virtio/video/decoder/backend/ |
D | mod.rs | 158 use base::MemoryMappingBuilder; 294 let input_mapping = MemoryMappingBuilder::new(input_shm.size() as usize) in decode_h264_generic() 315 let mapping = MemoryMappingBuilder::new(OUTPUT_BUFFER_SIZE) in decode_h264_generic()
|
/external/crosvm/swap/src/ |
D | staging.rs | 12 use base::MemoryMappingBuilder; 109 let mmap = MemoryMappingBuilder::new(pages_to_bytes(num_of_pages)) in new() 234 let mmap = MemoryMappingBuilder::new(size).build().unwrap(); in create_mmap()
|
/external/crosvm/devices/src/virtio/video/ |
D | resource.rs | 13 use base::MemoryMappingBuilder; 144 MemoryMappingBuilder::new(size) in get_mapping() 398 let mapping = MemoryMappingBuilder::new(mem.size() as usize) in check_guest_mem_handle()
|
/external/crosvm/audio_util/src/ |
D | file_streams.rs | 28 use base::MemoryMappingBuilder; 151 let memory_mapping = MemoryMappingBuilder::new(self.file_size) in new_async_playback_stream()
|
/external/crosvm/devices/src/ |
D | direct_io.rs | 17 use base::MemoryMappingBuilder; 119 let mmap = match MemoryMappingBuilder::new(len) in new()
|
/external/crosvm/devices/src/virtio/iommu/sys/ |
D | unix.rs | 14 use base::MemoryMappingBuilder; 81 let mmap = match MemoryMappingBuilder::new(size as usize) in handle_map_dmabuf()
|
/external/crosvm/vm_memory/src/ |
D | guest_memory.rs | 24 use base::MemoryMappingBuilder; 166 let mapping = MemoryMappingBuilder::new(size as usize) in new_from_shm() 188 let mapping = MemoryMappingBuilder::new(size as usize) in new_from_file() 283 let mapping = MemoryMappingBuilder::new(size) in new_with_options() 1182 let mmap = MemoryMappingBuilder::new(size) in shm_offset()
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_wl.rs | 25 use base::MemoryMappingBuilder; 344 let buffer_mem = MemoryMappingBuilder::new(buffer_size) in create_surface()
|