Home
last modified time | relevance | path

Searched refs:MemoryMappingBuilder (Results 1 – 25 of 44) sorted by relevance

12

/external/crosvm/base/src/
Dmmap.rs260 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/
Dread_only_memory.rs8 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()
Ddirty_log.rs8 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()
Dkvm_tests.rs11 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/
Dread_only_memory.rs12 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()
Dremove_memory.rs9 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()
Ddirty_log.rs10 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/
Dmmap.rs23 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()
Dmmap_platform.rs320 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/
Dmmap.rs24 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 …]
Dshm.rs339 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/
Dmod.rs7 use base::MemoryMappingBuilder;
33 let mmap = MemoryMappingBuilder::new(size) in create_shared_memory()
/external/crosvm/swap/tests/
Dpage_handler.rs19 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/
Dmain.rs20 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/
Ddoorbell.rs10 use base::MemoryMappingBuilder;
40 let mmap = MemoryMappingBuilder::new(mmap_region[0].size as usize) in new()
/external/crosvm/arch/src/
Dpstore.rs10 use base::MemoryMappingBuilder;
45 let memory_mapping = MemoryMappingBuilder::new(pstore.size as usize) in create_memory_region()
/external/crosvm/devices/src/pci/
Dacpi.rs10 use base::MemoryMappingBuilder;
30 MemoryMappingBuilder::new(SHM_SIZE as usize) in create_shm_mmap()
/external/crosvm/devices/src/virtio/video/decoder/backend/
Dmod.rs158 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/
Dstaging.rs12 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/
Dresource.rs13 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/
Dfile_streams.rs28 use base::MemoryMappingBuilder;
151 let memory_mapping = MemoryMappingBuilder::new(self.file_size) in new_async_playback_stream()
/external/crosvm/devices/src/
Ddirect_io.rs17 use base::MemoryMappingBuilder;
119 let mmap = match MemoryMappingBuilder::new(len) in new()
/external/crosvm/devices/src/virtio/iommu/sys/
Dunix.rs14 use base::MemoryMappingBuilder;
81 let mmap = match MemoryMappingBuilder::new(size as usize) in handle_map_dmabuf()
/external/crosvm/vm_memory/src/
Dguest_memory.rs24 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/
Dgpu_display_wl.rs25 use base::MemoryMappingBuilder;
344 let buffer_mem = MemoryMappingBuilder::new(buffer_size) in create_surface()

12