Home
last modified time | relevance | path

Searched refs:vhost_memory_region (Results 1 – 5 of 5) sorted by relevance

/external/rust/crates/vmm_vhost/src/vhost_kern/
Dvhost_binding.rs175 pub struct vhost_memory_region { struct
187 pub regions: __IncompleteArrayField<vhost_memory_region>, argument
214 let size = std::mem::size_of::<vhost_memory_region>() * entries as usize; in new()
230 pub fn get_region(&self, index: u32) -> Option<&vhost_memory_region> { in get_region() argument
239 pub fn set_region(&mut self, index: u32, region: &vhost_memory_region) -> Result<()> { in set_region()
327 ::std::mem::size_of::<vhost_memory_region>(), in bindgen_test_layout_vhost_memory_region()
329 concat!("Size of: ", stringify!(vhost_memory_region)) in bindgen_test_layout_vhost_memory_region()
332 ::std::mem::align_of::<vhost_memory_region>(), in bindgen_test_layout_vhost_memory_region()
334 concat!("Alignment of ", stringify!(vhost_memory_region)) in bindgen_test_layout_vhost_memory_region()
383 let region = vhost_memory_region { in test_vhostmemory()
Dmod.rs129 &vhost_memory_region { in set_mem_table()
/external/crosvm/virtio_sys/src/
Dvhost.rs707 pub struct vhost_memory_region { struct
716 ::std::mem::size_of::<vhost_memory_region>(), in bindgen_test_layout_vhost_memory_region() argument
718 concat!("Size of: ", stringify!(vhost_memory_region)) in bindgen_test_layout_vhost_memory_region()
721 ::std::mem::align_of::<vhost_memory_region>(), in bindgen_test_layout_vhost_memory_region()
723 concat!("Alignment of ", stringify!(vhost_memory_region)) in bindgen_test_layout_vhost_memory_region()
726 unsafe { &(*(0 as *const vhost_memory_region)).guest_phys_addr as *const _ as usize }, in bindgen_test_layout_vhost_memory_region()
730 stringify!(vhost_memory_region), in bindgen_test_layout_vhost_memory_region()
736 unsafe { &(*(0 as *const vhost_memory_region)).memory_size as *const _ as usize }, in bindgen_test_layout_vhost_memory_region()
740 stringify!(vhost_memory_region), in bindgen_test_layout_vhost_memory_region()
746 unsafe { &(*(0 as *const vhost_memory_region)).userspace_addr as *const _ as usize }, in bindgen_test_layout_vhost_memory_region()
[all …]
/external/kernel-headers/original/uapi/linux/
Dvhost_types.h97 struct vhost_memory_region { struct
110 struct vhost_memory_region regions[0]; argument
/external/crosvm/vhost/src/
Dlib.rs114 const SIZE_OF_REGION: usize = mem::size_of::<virtio_sys::vhost_memory_region>(); in set_mem_table()
116 const ALIGN_OF_REGION: usize = mem::align_of::<virtio_sys::vhost_memory_region>(); in set_mem_table()
136 vhost_regions[index] = virtio_sys::vhost_memory_region { in set_mem_table()