| /linux/rust/kernel/ |
| H A D | types.rs | 5 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 D | uaccess.rs | 11 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 D | io.rs | 150 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 D | print.rs | 10 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 D | devres.rs | 13 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 D | xarray.rs | 10 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 D | seq_file.rs | 40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
|
| H A D | prelude.rs | 22 c_ushort, c_void, CStr,
|
| H A D | module_param.rs | 144 pub const fn as_void_ptr(&self) -> *mut c_void { in as_void_ptr() argument
|
| H A D | error.rs | 465 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
|
| H A D | device.rs | 467 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
|
| H A D | bitmap.rs | 283 self.as_mut_ptr().cast::<ffi::c_void>(), in fill_random()
|
| H A D | maple_tree.rs | 539 fn mas_find_raw(&mut self, max: usize) -> *mut c_void { in mas_find_raw() argument
|
| H A D | opp.rs | 519 _data: *mut c_void, in config_clks() argument
|
| H A D | configfs.rs | 684 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
|
| /linux/rust/kernel/alloc/ |
| H A D | kbox.rs | 18 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 D | allocator.rs | 56 *const crate::ffi::c_void, 61 ) -> *mut crate::ffi::c_void,
|
| /linux/rust/kernel/debugfs/ |
| H A D | entry.rs | 5 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 D | file_ops.rs | 105 _: *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 D | rust_binder_main.rs | 66 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 D | ffi.rs | 48 pub use core::ffi::c_void;
|
| /linux/rust/kernel/block/mq/ |
| H A D | tag_set.rs | 55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 91 bindings::pci_iounmap(pdev.as_raw(), ioptr as *mut c_void); in do_release()
|
| /linux/rust/kernel/drm/ |
| H A D | ioctl.rs | 125 raw_data: *mut ::core::ffi::c_void,
|
| /linux/rust/kernel/io/ |
| H A D | mem.rs | 276 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) } in drop()
|