Home
last modified time | relevance | path

Searched refs:c_void (Results 1 – 25 of 27) 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
94 /// use kernel::ffi::c_void;
115 /// use kernel::ffi::c_void;
267 let out_ptr = out.as_mut_ptr().cast::<c_void>(); in read_raw()
352 out.as_mut_ptr().cast::<c_void>(), in read()
[all...]
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.rs170 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.rs572 /// ) -> Result<*mut kernel::ffi::c_void> {
584 /// # pub(super) unsafe fn einval_err_ptr() -> *mut kernel::ffi::c_void {
587 /// # pub(super) unsafe fn null_ptr() -> *mut kernel::ffi::c_void {
590 /// # pub(super) unsafe fn non_null_ptr() -> *mut kernel::ffi::c_void {
591 /// # 0x1234 as *mut kernel::ffi::c_void
607 // CAST: Casting a pointer to `*const crate::ffi::c_void` is always valid.
608 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.rs314 self.as_mut_ptr().cast::<ffi::c_void>(), in set_bit()
H A Dmaple_tree.rs557 fn mas_find_raw(&mut self, max: usize) -> *mut c_void {
539 mas_find_raw(&mut self, max: usize) -> *mut c_void 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
/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()
245 ptr: *mut c_void,
426 this.as_ptr().cast::<c_void>(), in new()
455 core::ptr::from_mut::<Self>(self.get_unchecked_mut()).cast::<c_void>(), in new()
466 ptr: *mut c_void,
481 ptr: *mut c_void,
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.rs527 fn into_foreign(self) -> *mut c_void {
531 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in into_foreign()
537 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { in from_foreign()
543 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> &'a mut T { in borrow()
567 fn into_foreign(self) -> *mut c_void {
572 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in deref()
578 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> {
589 unsafe fn borrow_mut<'a>(ptr: *mut c_void) -> Pin<&'a mut T> {
496 into_foreign(self) -> *mut c_void into_foreign() argument
530 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.rs111 _: *mut c_void, in writer_act()
146 let mut reader = UserSlice::new(UserPtr::from_ptr(buf as *mut c_void), count).reader(); in read()
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/net/
H A Dnetlink.rs84 hdr: NonNull<c_void>,
101 let ptr = core::ptr::from_ref(value).cast::<c_void>(); in put()
/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