Home
last modified time | relevance | path

Searched refs:UserPtr (Results 1 – 7 of 7) sorted by relevance

/linux/rust/kernel/
H A Duaccess.rs23 pub struct UserPtr(*mut c_void); struct
25 impl UserPtr { implementation
59 pub fn wrapping_byte_add(self, add: usize) -> UserPtr { in wrapping_byte_add() argument
60 UserPtr(self.0.wrapping_byte_add(add)) in wrapping_byte_add()
148 ptr: UserPtr,
165 pub fn new(ptr: UserPtr, length: usize) -> Self { in new() argument
213 ptr: UserPtr,
445 ptr: UserPtr,
570 fn raw_strncpy_from_user(dst: &mut [MaybeUninit<u8>], src: UserPtr) -> Result<usize> { in raw_strncpy_from_user()
H A Dprelude.rs52 pub use super::uaccess::UserPtr;
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs149 let mut reader = UserSlice::new(UserPtr::from_ptr(buf as *mut c_void), count).reader(); in read()
272 let mut writer = UserSlice::new(UserPtr::from_ptr(buf.cast()), count).writer(); in blob_read()
326 let mut reader = UserSlice::new(UserPtr::from_ptr(buf.cast_mut().cast()), count).reader(); in blob_write()
/linux/drivers/gpu/drm/tyr/
H A Dfile.rs43 UserPtr::from_addr(devquery.pointer as usize), in dev_query()
/linux/drivers/android/binder/
H A Dthread.rs839 UserSlice::new(UserPtr::from_addr(fda_uaddr as _), fds_len) in translate_object()
887 UserSlice::new(UserPtr::from_addr(sg_entry.sender_uaddr), sg_entry.length).reader(); in apply_sg()
1012 UserSlice::new(UserPtr::from_addr(trd_data_ptr.buffer as _), data_size).reader(); in copy_transaction_data()
1019 UserSlice::new(UserPtr::from_addr(trd_data_ptr.offsets as _), offsets_size) in copy_transaction_data()
1316 UserSlice::new(UserPtr::from_addr(write_start as _), write_len as _).reader(); in write()
1407 UserSlice::new(UserPtr::from_addr(read_start as _), read_len as _).writer(), in read()
1465 UserSlice::new(UserPtr::from_addr(req.read_buffer as _), req.read_size as _) in read()
H A Dprocess.rs1656 let user_slice = UserSlice::new(UserPtr::from_addr(arg), _IOC_SIZE(cmd)); in ioctl()
/linux/samples/rust/
H A Drust_misc_device.rs208 let arg = UserPtr::from_addr(arg); in ioctl()