Home
last modified time | relevance | path

Searched refs:c_void (Results 1 – 25 of 25) sorted by relevance

/linux/rust/kernel/
H A Dtypes.rs5 use crate::ffi::c_void;
53 fn into_foreign(self) -> *mut c_void; in into_foreign() argument
63 unsafe fn from_foreign(ptr: *mut c_void) -> Self; in from_foreign()
75 unsafe fn try_from_foreign(ptr: *mut c_void) -> Option<Self> { in try_from_foreign()
98 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>; in borrow()
126 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Self::BorrowedMut<'a>; in borrow_mut()
136 fn into_foreign(self) -> *mut c_void { in into_foreign() argument
140 unsafe fn from_foreign(_: *mut c_void) -> Self {} in from_foreign()
142 unsafe fn borrow<'a>(_: *mut c_void) -> Self::Borrowed<'a> {} in borrow()
143 unsafe fn borrow_mut<'a>(_: *mut c_void) -> Self::BorrowedMut<'a> {} in borrow_mut()
H A Duaccess.rs11 ffi::{c_char, c_void},
23 pub struct UserPtr(*mut c_void);
29 Self(addr as *mut c_void) in from_addr()
34 pub fn from_ptr(addr: *mut c_void) -> Self { in from_ptr()
42 pub fn as_const_ptr(self) -> *const c_void { in as_const_ptr() argument
50 pub fn as_mut_ptr(self) -> *mut c_void { in as_mut_ptr() argument
265 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw()
350 out.as_mut_ptr().cast::<c_void>(), in read()
469 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice()
545 core::ptr::from_ref(value).cast::<c_void>(), in write()
H A Dio.rs150 unsafe { bindings::$c_fn(addr as *const c_void) }
162 Ok(unsafe { bindings::$c_fn(addr as *const c_void) })
179 unsafe { bindings::$c_fn(value, addr as *mut c_void) }
191 unsafe { bindings::$c_fn(value, addr as *mut c_void) }
H A Dprint.rs10 ffi::{c_char, c_void},
22 ptr: *const c_void, in rust_fmt_argument() argument
112 core::ptr::from_ref(&args).cast::<c_void>(),
132 core::ptr::from_ref(&args).cast::<c_void>(), in call_printk_cont()
H A Ddevres.rs13 ffi::c_void,
126 callback: unsafe extern "C" fn(*mut c_void),
196 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback() argument
328 unsafe extern "C" fn callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) { in register_foreign() argument
H A Dxarray.rs10 ffi::c_void,
105 fn iter(&self) -> impl Iterator<Item = NonNull<c_void>> + '_ { in iter()
183 F: FnOnce(NonNull<c_void>) -> U, in load()
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dprelude.rs22 c_ushort, c_void, CStr,
H A Dmodule_param.rs144 pub const fn as_void_ptr(&self) -> *mut c_void { in as_void_ptr() argument
H A Derror.rs465 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
H A Ddevice.rs467 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
H A Dbitmap.rs283 self.as_mut_ptr().cast::<ffi::c_void>(), in fill_random()
H A Dmaple_tree.rs539 fn mas_find_raw(&mut self, max: usize) -> *mut c_void { in mas_find_raw() argument
H A Dopp.rs519 _data: *mut c_void, in config_clks() argument
H A Dconfigfs.rs684 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
/linux/rust/kernel/alloc/
H A Dkbox.rs18 use crate::ffi::c_void;
496 fn into_foreign(self) -> *mut c_void { in into_foreign() argument
500 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign()
506 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { in borrow()
512 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T { in borrow_mut()
530 fn into_foreign(self) -> *mut c_void { in into_foreign() argument
535 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign()
541 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> { in borrow()
552 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> { in borrow_mut()
H A Dallocator.rs56 *const crate::ffi::c_void,
61 ) -> *mut crate::ffi::c_void,
/linux/rust/kernel/debugfs/
H A Dentry.rs5 use crate::ffi::c_void;
69 core::ptr::from_ref(data) as *mut c_void, in dynamic_file()
122 core::ptr::from_ref(data) as *mut c_void, in file()
H A Dfile_ops.rs105 _: *mut c_void, in writer_act() argument
141 let mut reader = UserSlice::new(UserPtr::from_ptr(buf as *mut c_void), count).reader(); in read()
/linux/drivers/android/binder/
H A Drust_binder_main.rs66 pub type rust_binder_context = *mut kernel::ffi::c_void;
332 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context() argument
344 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) { in rust_binder_remove_context() argument
472 _: *mut kernel::ffi::c_void, in rust_binder_stats_show() argument
488 _: *mut kernel::ffi::c_void, in rust_binder_state_show() argument
504 _: *mut kernel::ffi::c_void, in rust_binder_proc_show() argument
522 _: *mut kernel::ffi::c_void, in rust_binder_transactions_show() argument
/linux/rust/
H A Dffi.rs48 pub use core::ffi::c_void;
/linux/rust/kernel/block/mq/
H A Dtag_set.rs55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
/linux/rust/kernel/pci/
H A Dio.rs91 bindings::pci_iounmap(pdev.as_raw(), ioptr as *mut c_void); in do_release()
/linux/rust/kernel/drm/
H A Dioctl.rs125 raw_data: *mut ::core::ffi::c_void,
/linux/rust/kernel/io/
H A Dmem.rs276 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) } in drop()