Lines Matching refs:buf
74 buf: &mut [u8], in read_at()
76 assert!((buf.len() & 511) == 0); in read_at()
79 if count * 512 > buf.len() || check_length > 8_usize { in read_at()
113 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at()
118 let user_buf = verify_area(VirtAddr::new(buf_ptr), buf.len()).is_ok(); in read_at()
120 let x: Vec<u8> = vec![0; buf.len()]; in read_at()
218 buf.copy_from_slice(kbuf); in read_at()
230 buf: &[u8], in write_at()
232 assert!((buf.len() & 511) == 0); in write_at()
235 if count * 512 > buf.len() || check_length > 8 { in write_at()
276 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at()
280 let user_buf = verify_area(VirtAddr::new(buf_ptr), buf.len()).is_ok(); in write_at()
282 let mut x: Vec<u8> = vec![0; buf.len()]; in write_at()
283 x.resize(buf.len(), 0); in write_at()
284 x.copy_from_slice(buf); in write_at()
567 buf: &mut [u8], in read_at_sync()
569 self.inner().read_at(lba_id_start, count, buf) in read_at_sync()
577 buf: &[u8], in write_at_sync()
579 self.inner().write_at(lba_id_start, count, buf) in write_at_sync()