Home
last modified time | relevance | path

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

/external/crosvm/base/src/
Dmmap.rs77 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 …]
Dlib.rs22 pub use mmap::{MemoryMapping, MemoryMappingBuilder, MemoryMappingBuilderUnix};
/external/crosvm/kvm/tests/
Dread_only_memory.rs7 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()
Ddirty_log.rs7 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/
Dpstore.rs10 use base::MemoryMappingBuilder;
65 let memory_mapping = MemoryMappingBuilder::new(pstore.size as usize) in create_memory_region()
/external/crosvm/hypervisor/src/kvm/
Dmod.rs35 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()
Daarch64.rs8 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/
Dgpu_display_wl.rs24 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/
Dguest_memory.rs18 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/
Dlib.rs38 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/
Dshm_vios.rs10 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/
Dlib.rs30 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/
Dprocess.rs24 MemoryMappingBuilder, RawDescriptor, Result as SysResult, ScmSocket, SharedMemory,
367 let mem = MemoryMappingBuilder::new(length as usize) in handle_memory()
/external/crosvm/devices/src/pci/
Dvfio_pci.rs9 error, pagesize, AsRawDescriptor, Event, MappedRegion, MemoryMapping, MemoryMappingBuilder,
719 let mmap = match MemoryMappingBuilder::new(mmap_size as usize) in add_bar_mmap()