/external/crosvm/base/src/ |
D | mmap.rs | 77 fn from_descriptor(self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder; in from_descriptor() argument 80 pub struct MemoryMappingBuilder<'a> { struct 88 impl<'a> MemoryMappingBuilderUnix<'a> for MemoryMappingBuilder<'a> { argument 92 fn from_descriptor(mut self, descriptor: &'a dyn AsRawDescriptor) -> MemoryMappingBuilder { in from_descriptor() argument 99 impl<'a> MemoryMappingBuilder<'a> { impl 101 pub fn new(size: usize) -> MemoryMappingBuilder<'a> { in new() 102 MemoryMappingBuilder { in new() 118 pub fn from_file(mut self, file: &'a File) -> MemoryMappingBuilder { in from_file() argument 126 pub fn from_shared_memory(mut self, shm: &'a SharedMemory) -> MemoryMappingBuilder { in from_shared_memory() argument 134 pub fn offset(mut self, offset: u64) -> MemoryMappingBuilder<'a> { in offset() [all …]
|
D | lib.rs | 22 pub use mmap::{MemoryMapping, MemoryMappingBuilder, MemoryMappingBuilderUnix};
|
/external/crosvm/kvm/tests/ |
D | read_only_memory.rs | 7 use base::{MemoryMappingBuilder, SharedMemory}; 25 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_run() 52 MemoryMappingBuilder::new(mem_size as usize) in test_run() 65 let mmap_ro = MemoryMappingBuilder::new(0x1000) in test_run() 75 MemoryMappingBuilder::new(0x1000) in test_run()
|
D | dirty_log.rs | 7 use base::{MemoryMappingBuilder, SharedMemory}; 23 let mmap = MemoryMappingBuilder::new(mem_size as usize) in test_run() 50 MemoryMappingBuilder::new(mem_size as usize) in test_run()
|
/external/crosvm/arch/src/ |
D | pstore.rs | 10 use base::MemoryMappingBuilder; 65 let memory_mapping = MemoryMappingBuilder::new(pstore.size as usize) in create_memory_region()
|
/external/crosvm/hypervisor/src/kvm/ |
D | mod.rs | 35 MappedRegion, MemoryMapping, MemoryMappingBuilder, MemoryMappingBuilderUnix, MmapError, 212 let run_mmap = MemoryMappingBuilder::new(run_mmap_size) in create_vcpu() 664 let run_mmap = MemoryMappingBuilder::new(self.run_mmap.size()) in try_clone() 1167 use base::{pagesize, FromRawDescriptor, MemoryMappingArena, MemoryMappingBuilder}; 1256 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 1259 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 1270 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory_ro() 1281 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in remove_memory() 1305 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in overlap_memory()
|
D | aarch64.rs | 8 errno_result, error, ioctl_with_mut_ref, ioctl_with_ref, Error, MemoryMappingBuilder, Result, 94 let mem = MemoryMappingBuilder::new(info.firmware_size as usize) in enable_protected_vm()
|
/external/crosvm/gpu_display/src/ |
D | gpu_display_wl.rs | 24 round_up_to_page_size, AsRawDescriptor, MemoryMapping, MemoryMappingBuilder, RawDescriptor, 211 let buffer_mem = MemoryMappingBuilder::new(buffer_size) in create_surface()
|
/external/crosvm/vm_memory/src/ |
D | guest_memory.rs | 18 MemoryMappingBuilder, MemoryMappingUnix, MmapError, RawDescriptor, SharedMemory, 183 let mapping = MemoryMappingBuilder::new(size) in new() 894 let mmap = MemoryMappingBuilder::new(size) in shm_offset()
|
/external/crosvm/kvm/src/ |
D | lib.rs | 38 MemoryMapping, MemoryMappingBuilder, MmapError, Result, SIGRTMIN, 971 let run_mmap = MemoryMappingBuilder::new(run_mmap_size) in new() 1772 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 1775 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory() 1786 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in add_memory_ro() 1797 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in remove_memory_region() 1821 let mem = MemoryMappingBuilder::new(mem_size).build().unwrap(); in overlap_memory()
|
/external/crosvm/devices/src/virtio/snd/vios_backend/ |
D | shm_vios.rs | 10 MemoryMapping, MemoryMappingBuilder, MmapError, PollToken, SafeDescriptor, ScmSocket, 567 let mmap = MemoryMappingBuilder::new(size) in new() 708 let mmap = MemoryMappingBuilder::new(extended_size) in mmap_buffer()
|
/external/crosvm/vm_control/src/ |
D | lib.rs | 30 FromRawDescriptor, IntoRawDescriptor, MappedRegion, MemoryMappingArena, MemoryMappingBuilder, 447 let mmap = match MemoryMappingBuilder::new(size) in execute() 929 let mmap = match MemoryMappingBuilder::new(size) in register_memory()
|
/external/crosvm/src/plugin/ |
D | process.rs | 24 MemoryMappingBuilder, RawDescriptor, Result as SysResult, ScmSocket, SharedMemory, 367 let mem = MemoryMappingBuilder::new(length as usize) in handle_memory()
|
/external/crosvm/devices/src/pci/ |
D | vfio_pci.rs | 9 error, pagesize, AsRawDescriptor, Event, MappedRegion, MemoryMapping, MemoryMappingBuilder, 719 let mmap = match MemoryMappingBuilder::new(mmap_size as usize) in add_bar_mmap()
|