Home
last modified time | relevance | path

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

/linux-6.15/rust/kernel/
H A Duaccess.rs11 ffi::c_void,
223 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw()
229 let res = unsafe { bindings::copy_from_user(out_ptr, self.ptr as *const c_void, len) }; in read_raw() constant
266 out.as_mut_ptr().cast::<c_void>(), in read()
267 self.ptr as *const c_void, in read() constant
326 let data_ptr = data.as_ptr().cast::<c_void>(); in write_slice()
332 let res = unsafe { bindings::copy_to_user(self.ptr as *mut c_void, data_ptr, len) }; in write_slice()
359 self.ptr as *mut c_void, in write()
360 (value as *const T).cast::<c_void>(), in write()
H A Dtypes.rs39 fn into_foreign(self) -> *mut crate::ffi::c_void; in into_foreign() argument
49 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self; in from_foreign()
61 unsafe fn try_from_foreign(ptr: *mut crate::ffi::c_void) -> Option<Self> { in try_from_foreign()
84 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> Self::Borrowed<'a>; in borrow()
112 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> Self::BorrowedMut<'a>; in borrow_mut()
119 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument
123 unsafe fn from_foreign(_: *mut crate::ffi::c_void) -> Self {} in from_foreign()
125 unsafe fn borrow<'a>(_: *mut crate::ffi::c_void) -> Self::Borrowed<'a> {} in borrow()
126 unsafe fn borrow_mut<'a>(_: *mut crate::ffi::c_void) -> Self::BorrowedMut<'a> {} in borrow_mut()
H A Ddevres.rs13 ffi::c_void,
25 callback: unsafe extern "C" fn(*mut c_void),
159 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback() argument
H A Dprint.rs10 ffi::{c_char, c_void},
22 ptr: *const c_void, in rust_fmt_argument() argument
112 &args as *const _ as *const c_void, constant
132 &args as *const _ as *const c_void, in call_printk_cont() constant
H A Dkunit.rs9 use core::{ffi::c_void, fmt};
22 &args as *const _ as *const c_void, in err() constant
38 &args as *const _ as *const c_void, in info() constant
H A Dseq_file.rs40 &args as *const _ as *const crate::ffi::c_void, in call_printf()
H A Ddevice.rs180 &msg as *const _ as *const crate::ffi::c_void, in printk()
H A Derror.rs410 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
/linux-6.15/rust/kernel/alloc/
H A Dkbox.rs370 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument
374 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign()
380 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> &'a T { in borrow()
386 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> &'a mut T { in borrow_mut()
401 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument
406 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign()
412 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> Pin<&'a T> { in borrow()
423 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> Pin<&'a mut T> { in borrow_mut()
H A Dallocator_test.rs27 fn libc_aligned_alloc(align: usize, size: usize) -> *mut crate::ffi::c_void; in libc_aligned_alloc() argument
30 fn libc_free(ptr: *mut crate::ffi::c_void); in libc_free() argument
79 let min_align = core::mem::size_of::<*const crate::ffi::c_void>(); in realloc()
H A Dallocator.rs61 unsafe extern "C" fn(*const crate::ffi::c_void, usize, u32) -> *mut crate::ffi::c_void,
/linux-6.15/rust/kernel/sync/
H A Darc.rs378 fn into_foreign(self) -> *mut crate::ffi::c_void { in into_foreign() argument
382 unsafe fn from_foreign(ptr: *mut crate::ffi::c_void) -> Self { in from_foreign()
393 unsafe fn borrow<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow()
403 unsafe fn borrow_mut<'a>(ptr: *mut crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow_mut()
/linux-6.15/rust/
H A Dffi.rs48 pub use core::ffi::c_void;
/linux-6.15/rust/kernel/block/mq/
H A Dtag_set.rs55 driver_data: core::ptr::null_mut::<crate::ffi::c_void>(), in new()
H A Doperations.rs149 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback() argument