Lines Matching refs:buf_ptr
98 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at() localVariable
102 let user_buf = if unsafe { verify_area(buf_ptr as u64, buf.len() as u64) } { in read_at()
118 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()
136 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in read_at()
139 buf_ptr += 8 * 1024; in read_at()
145 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in read_at()
260 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at() localVariable
264 let user_buf = if unsafe { verify_area(buf_ptr as u64, buf.len() as u64) } { in write_at()
279 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()
298 volatile_write!(cmdtbl.prdt_entry[i].dba, virt_2_phys(buf_ptr) as u64); in write_at()
301 buf_ptr += 8 * 1024; in write_at()
307 volatile_write!(cmdtbl.prdt_entry[las].dba, virt_2_phys(buf_ptr) as u64); in write_at()