Home
last modified time | relevance | path

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

12

/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.rs81 /// ffi::c_void,
115 /// unsafe { bindings::iounmap(self.0.addr() as *mut c_void); };
158 unsafe { bindings::$c_fn($addr as *const c_void) as $type }
163 Ok(unsafe { bindings::$c_fn($addr as *const c_void) as $type })
186 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},
27 ptr: *const c_void, in rust_fmt_argument()
117 core::ptr::from_ref(&args).cast::<c_void>(),
137 core::ptr::from_ref(&args).cast::<c_void>(),
22 rust_fmt_argument( buf: *mut c_char, end: *mut c_char, ptr: *const c_void, ) -> *mut c_char rust_fmt_argument() argument
H A Ddevres.rs90 /// unsafe { bindings::iounmap(self.0.addr() as *mut c_void); };
118 callback: unsafe extern "C" fn(*mut c_void),
163 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in new()
283 unsafe extern "C" fn callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) { in try_access_with_guard()
196 devres_callback(ptr: *mut kernel::ffi::c_void) devres_callback() argument
328 callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) 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.rs473 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(),
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
/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.rs75 core::ptr::from_ref(data) as *mut c_void, in dynamic_file()
128 core::ptr::from_ref(data) as *mut c_void, in file()
H A Dfile_ops.rs114 _: *mut c_void, in writer_act()
149 let mut reader = UserSlice::new(UserPtr::from_ptr(buf as *mut c_void), count).reader();
105 writer_act<T: Writer + Sync>( seq: *mut bindings::seq_file, _: *mut c_void, ) -> c_int writer_act() argument
/linux/drivers/android/binder/
H A Drust_binder_main.rs64 pub type rust_binder_context = *mut kernel::ffi::c_void; in rust_binderfs_remove_file()
330 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context()
342 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) {
470 _: *mut kernel::ffi::c_void, in rust_binder_stats_show()
486 _: *mut kernel::ffi::c_void, in rust_binder_state_show()
502 _: *mut kernel::ffi::c_void, in rust_binder_proc_show()
520 _: *mut kernel::ffi::c_void, in rust_binder_transactions_show()
332 rust_binder_new_context( name: *const kernel::ffi::c_char, ) -> *mut kernel::ffi::c_void rust_binder_new_context() argument
344 rust_binder_remove_context(device: *mut kernel::ffi::c_void) rust_binder_remove_context() argument
472 rust_binder_stats_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_stats_show() argument
488 rust_binder_state_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_state_show() argument
504 rust_binder_proc_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_proc_show() argument
522 rust_binder_transactions_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_transactions_show() argument
H A Dpage_range.rs25 ffi::{c_ulong, c_void},
661 _cb_arg: *mut c_void, in rust_shrink_free_page() argument
/linux/rust/
H A Dffi.rs48 pub use core::ffi::c_void;
/linux/rust/kernel/block/mq/
H A Dtag_set.rs53 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
/linux/rust/kernel/pci/
H A Dio.rs254 bindings::pci_iounmap(pdev.as_raw(), ioptr as *mut c_void);
/linux/rust/kernel/drm/
H A Dioctl.rs125 raw_data: *mut ::core::ffi::c_void,
/linux/rust/kernel/io/
H A Dmem.rs285 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) } in deref()

12