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;
62 fn into_foreign(self) -> *mut c_void;
72 unsafe fn from_foreign(ptr: *mut c_void) -> Self;
84 unsafe fn try_from_foreign(ptr: *mut c_void) -> Option<Self> {
107 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>;
135 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Self::BorrowedMut<'a>;
145 fn into_foreign(self) -> *mut c_void {
149 unsafe fn from_foreign(_: *mut c_void) -> Self {}
151 unsafe fn borrow<'a>(_: *mut c_void) -> Self::Borrowed<'a> {}
152 unsafe fn borrow_mut<'a>(_: *mut c_void)
53 into_foreign(self) -> *mut c_void into_foreign() argument
136 into_foreign(self) -> *mut c_void into_foreign() argument
[all...]
H A Duaccess.rs12 ffi::{c_char, c_void},
25 pub struct UserPtr(*mut c_void);
31 Self(addr as *mut c_void) in from_addr()
36 pub fn from_ptr(addr: *mut c_void) -> Self { in from_ptr()
44 pub fn as_const_ptr(self) -> *const c_void { in as_const_ptr() argument
52 pub fn as_mut_ptr(self) -> *mut c_void { in as_mut_ptr() argument
267 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw()
352 out.as_mut_ptr().cast::<c_void>(), in read()
616 core::ptr::from_ref(value).cast::<c_void>(), in write()
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 Dxarray.rs12 ffi::c_void,
111 fn iter(&self) -> impl Iterator<Item = NonNull<c_void>> + '_ { in iter()
190 F: FnOnce(NonNull<c_void>) -> U,
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dkunit.rs27 core::ptr::from_ref(&args).cast::<c_void>(), in err()
47 core::ptr::from_ref(&args).cast::<c_void>(), in info()
H A Dprelude.rs38 c_void,
H A Dmodule_param.rs165 pub const fn as_void_ptr(&self) -> *mut c_void {
144 as_void_ptr(&self) -> *mut c_void as_void_ptr() argument
H A Derror.rs567 /// ) -> Result<*mut kernel::ffi::c_void> {
579 /// # pub(super) unsafe fn einval_err_ptr() -> *mut kernel::ffi::c_void {
582 /// # pub(super) unsafe fn null_ptr() -> *mut kernel::ffi::c_void {
585 /// # pub(super) unsafe fn non_null_ptr() -> *mut kernel::ffi::c_void {
586 /// # 0x1234 as *mut kernel::ffi::c_void
602 // CAST: Casting a pointer to `*const crate::ffi::c_void` is always valid.
603 let const_ptr: *const crate::ffi::c_void = ptr.cast();
H A Ddevres.rs500 unsafe extern "C" fn callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) { in register_foreign() argument
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 Ddevice.rs400 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
H A Dopp.rs519 _data: *mut c_void, in config_clks() argument
H A Dconfigfs.rs681 /// Null terminated Array of pointers to [`Attribute`]. The type is [`c_void`]
683 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
/linux/rust/kernel/irq/
H A Drequest.rs205 this.as_ptr().cast::<c_void>(), in new()
234 core::ptr::from_mut::<Self>(self.get_unchecked_mut()).cast::<c_void>(), in new()
243 unsafe extern "C" fn handle_irq_callback<T: Handler>(_irq: i32, ptr: *mut c_void) -> c_uint {
423 this.as_ptr().cast::<c_void>(), in new()
452 core::ptr::from_mut::<Self>(self.get_unchecked_mut()).cast::<c_void>(), in new()
463 ptr: *mut c_void,
476 unsafe extern "C" fn thread_fn_callback<T: ThreadedHandler>(_irq: i32, ptr: *mut c_void) -> c_uint { in synchronize()
265 handle_irq_callback<T: Handler + 'static>( _irq: i32, ptr: *mut c_void, ) -> c_uint handle_irq_callback() argument
486 handle_threaded_irq_callback<T: ThreadedHandler + 'static>( _irq: i32, ptr: *mut c_void, ) -> c_uint handle_threaded_irq_callback() argument
502 thread_fn_callback<T: ThreadedHandler + 'static>( _irq: i32, ptr: *mut c_void, ) -> c_uint thread_fn_callback() argument
/linux/rust/kernel/alloc/
H A Dkbox.rs526 fn into_foreign(self) -> *mut c_void {
530 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in into_foreign() argument
536 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { in from_foreign()
542 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T { in borrow()
566 fn into_foreign(self) -> *mut c_void {
571 unsafe fn from_foreign(ptr: *mut c_void) -> Self {
577 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> {
588 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> { in deref_mut()
496 into_foreign(self) -> *mut c_void into_foreign() argument
H A Dallocator.rs67 *const crate::ffi::c_void,
72 ) -> *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/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/drm/
H A Dioctl.rs138 raw_data: *mut ::core::ffi::c_void,
/linux/rust/kernel/io/
H A Dmem.rs316 unsafe { bindings::iounmap(self.io.addr() as *mut c_void) }
/linux/rust/kernel/pci/
H A Dio.rs249 bindings::pci_iounmap(pdev.as_raw(), ioptr as *mut c_void);

12