| /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 | 81 /// 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 D | print.rs | 10 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 D | devres.rs | 90 /// 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 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 | 473 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(),
|
| 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
|
| /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 | 75 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 D | file_ops.rs | 114 _: *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 D | rust_binder_main.rs | 64 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 D | page_range.rs | 25 ffi::{c_ulong, c_void}, 661 _cb_arg: *mut c_void, in rust_shrink_free_page() 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 | 53 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
|
| /linux/rust/kernel/pci/ |
| H A D | io.rs | 254 bindings::pci_iounmap(pdev.as_raw(), ioptr as *mut c_void);
|
| /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 | 285 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) } in deref()
|