Searched refs:buf_ptr (Results 1 – 1 of 1) sorted by relevance
113 let mut buf_ptr = buf as *mut [u8] as *mut usize as usize; in read_at() localVariable118 let user_buf = verify_area(VirtAddr::new(buf_ptr), buf.len()).is_ok(); in read_at()127 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in read_at()150 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in read_at()154 buf_ptr += 8 * 1024; in read_at()162 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in read_at()276 let mut buf_ptr = buf as *const [u8] as *mut usize as usize; in write_at() localVariable280 let user_buf = verify_area(VirtAddr::new(buf_ptr), buf.len()).is_ok(); in write_at()291 buf_ptr = kbuf.as_mut().unwrap().as_mut_ptr() as usize; in write_at()314 MMArch::virt_2_phys(VirtAddr::new(buf_ptr)).unwrap().data() as u64 in write_at()[all …]