Home
last modified time | relevance | path

Searched refs:VolatileRef (Results 1 – 3 of 3) sorted by relevance

/external/adhd/cras/client/libcras/src/
Dcras_shm.rs22 use data_model::{VolatileRef, VolatileSlice};
59 used_size: VolatileRef<'a, u32>,
60 frame_size: VolatileRef<'a, u32>,
61 read_buf_idx: VolatileRef<'a, u32>,
62 write_buf_idx: VolatileRef<'a, u32>,
63 read_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize],
64 write_offset: [VolatileRef<'a, u32>; CRAS_NUM_SHM_BUFFERS as usize],
65 buffer_offset: [VolatileRef<'a, u64>; CRAS_NUM_SHM_BUFFERS as usize],
84 VolatileRef::new(&mut $addr.as_mut().$($field).* as *mut _)
88 VolatileRef::new(&mut $addr.as_mut().$field[$idx] as *mut _)
[all …]
/external/crosvm/data_model/src/
Dvolatile_memory.rs93 fn get_ref<T: DataInit>(&self, offset: usize) -> Result<VolatileRef<T>> { in get_ref()
95 Ok(VolatileRef { in get_ref()
330 pub struct VolatileRef<'a, T: DataInit> struct
338 impl<'a, T: DataInit> VolatileRef<'a, T> { argument
346 pub unsafe fn new(addr: *mut T) -> VolatileRef<'a, T> { in new()
347 VolatileRef { in new()
/external/crosvm/vm_memory/src/
Dguest_memory.rs530 pub fn get_ref_at_addr<T: DataInit>(&self, addr: GuestAddress) -> Result<VolatileRef<T>> { in get_ref_at_addr()
534 Ok(unsafe { VolatileRef::new(buf.as_mut_ptr() as *mut T) }) in get_ref_at_addr()