Lines Matching refs:slice
48 fn read_volatile(&mut self, slice: VolatileSlice) -> Result<usize>; in read_volatile()
52 fn read_exact_volatile(&mut self, mut slice: VolatileSlice) -> Result<()> { in read_exact_volatile()
53 while slice.size() > 0 { in read_exact_volatile()
54 let bytes_read = self.read_volatile(slice)?; in read_exact_volatile()
60 slice = slice.offset(bytes_read as u64).unwrap(); in read_exact_volatile()
67 fn write_volatile(&mut self, slice: VolatileSlice) -> Result<usize>; in write_volatile()
71 fn write_all_volatile(&mut self, mut slice: VolatileSlice) -> Result<()> { in write_all_volatile()
72 while slice.size() > 0 { in write_all_volatile()
73 let bytes_written = self.write_volatile(slice)?; in write_all_volatile()
79 slice = slice.offset(bytes_written as u64).unwrap(); in write_all_volatile()
86 fn read_volatile(&mut self, slice: VolatileSlice) -> Result<usize> { in read_volatile()
92 slice.as_ptr() as *mut c_void, in read_volatile()
93 slice.size() as usize, in read_volatile()
103 fn write_volatile(&mut self, slice: VolatileSlice) -> Result<usize> { in write_volatile()
109 slice.as_ptr() as *const c_void, in write_volatile()
110 slice.size() as usize, in write_volatile()