Home
last modified time | relevance | path

Searched refs:UserSlice (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/gpu/drm/tyr/
H A Dfile.rs5 use kernel::uaccess::UserSlice;
42 let mut writer = UserSlice::new( in dev_query()
/linux/samples/rust/
H A Drust_misc_device.rs107 uaccess::{UserSlice, UserSliceReader, UserSliceWriter},
212 RUST_MISC_DEV_GET_VALUE => me.get_value(UserSlice::new(arg, size).writer())?, in ioctl()
213 RUST_MISC_DEV_SET_VALUE => me.set_value(UserSlice::new(arg, size).reader())?, in ioctl()
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs18 uaccess::UserSlice, //
149 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/rust/kernel/
H A Duaccess.rs147 pub struct UserSlice { struct
152 impl UserSlice { argument
166 UserSlice { ptr, length } in new()
/linux/drivers/android/binder/
H A Dthread.rs22 uaccess::UserSlice,
498 pub(crate) fn get_extended_error(&self, data: UserSlice) -> Result { in get_extended_error()
839 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()
1472 pub(crate) fn write_read(self: &Arc<Self>, data: UserSlice, wait: bool) -> Result { in write_read() argument
H A Dprocess.rs36 uaccess::{UserSlice, UserSliceReader},
1129 fn version(&self, data: UserSlice) -> Result { in version()
1154 fn get_node_debug_info(&self, data: UserSlice) -> Result { in get_node_debug_info()
1174 fn get_node_info_from_ref(&self, data: UserSlice) -> Result { in get_node_info_from_ref()
1508 fn get_frozen_status(data: UserSlice) -> Result { in get_frozen_status()
1592 data: UserSlice, in ioctl_write_read() argument
1656 let user_slice = UserSlice::new(UserPtr::from_addr(arg), _IOC_SIZE(cmd)); in ioctl()