Lines Matching refs:buf
56 buf: &mut [u8], in read_at()
60 if count * 512 > buf.len() || check_length > u16::MAX as usize { in read_at()
97 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
189 buf: &[u8], in write_at()
193 if count * 512 > buf.len() || check_length > u16::MAX as usize { in write_at()
233 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
358 let mut buf: Vec<u8> = Vec::new(); in read_mbr_table() localVariable
359 buf.resize(size_of::<MbrDiskPartionTable>(), 0); in read_mbr_table()
361 self.read_at(0, 1, &mut buf)?; in read_mbr_table()
364 let mut cursor = VecCursor::new(buf); in read_mbr_table()
406 buf: &mut [u8], in read_at()
412 return self.0.lock().read_at(lba_id_start, count, buf); in read_at()
420 buf: &[u8], in write_at()
422 self.0.lock().write_at(lba_id_start, count, buf) in write_at()