Home
last modified time | relevance | path

Searched refs:ffi (Results 1 – 25 of 43) sorted by relevance

12

/linux/rust/kernel/
H A Derror.rs123 pub fn from_errno(errno: crate::ffi::c_int) -> Error { in from_errno()
139 const fn try_from_errno(errno: crate::ffi::c_int) -> Option<Error> { in try_from_errno()
153 const unsafe fn from_errno_unchecked(errno: crate::ffi::c_int) -> Error { in from_errno_unchecked()
161 pub fn to_errno(self) -> crate::ffi::c_int { in to_errno()
174 unsafe { bindings::ERR_PTR(self.0.get() as crate::ffi::c_long).cast() } in to_ptr()
434 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result()
465 let const_ptr: *const crate::ffi::c_void = ptr.cast(); in from_err_ptr()
481 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_err_ptr()
H A Ddevres.rs163 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()
H A Dbug.rs84 line!() as $crate::ffi::c_int,
85 $flags as $crate::ffi::c_uint,
H A Dfirmware.rs12 ffi,
24 *const ffi::c_char,
H A Dlib.rs65 pub use ffi;
358 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
H A Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dconfigfs.rs345 name: *const kernel::ffi::c_char, in make_group()
551 page: *mut kernel::ffi::c_char, in show()
584 page: *const kernel::ffi::c_char, in store()
683 UnsafeCell<[*mut kernel::ffi::c_void; N]>,
H A Dprelude.rs20 pub use ::ffi::{
H A Ddevice.rs470 klevel.as_ptr().cast::<crate::ffi::c_char>(), in printk()
473 core::ptr::from_ref(&msg).cast::<crate::ffi::c_void>(), in printk()
H A Dclk.rs9 use crate::ffi::c_ulong;
H A Ddma.rs211 pub(crate) fn as_raw(self) -> crate::ffi::c_ulong { in as_raw()
212 self.0 as crate::ffi::c_ulong in as_raw()
H A Dstr.rs406 impl From<core::ffi::FromBytesWithNulError> for Error {
408 fn from(_: core::ffi::FromBytesWithNulError) -> Error { in from()
H A Dtypes.rs5 use crate::ffi::c_void;
H A Dxarray.rs10 ffi::c_void,
/linux/rust/
H A Dffi.rs20 ::core::mem::size_of::<$name>() == ::core::mem::size_of::<::core::ffi::$name>()
48 pub use core::ffi::c_void;
50 pub use core::ffi::CStr;
H A DMakefile6 obj-$(CONFIG_RUST) += core.o compiler_builtins.o ffi.o
226 rustdoc-ffi: private is-kernel-object := y
227 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
/linux/drivers/gpu/nova-core/gsp/fw/r570_144/
H A Dbindings.rs46 pub type __u8 = ffi::c_uchar;
47 pub type __u16 = ffi::c_ushort;
48 pub type __u32 = ffi::c_uint;
49 pub type __u64 = ffi::c_ulonglong;
284 pub type _bindgen_ty_2 = ffi::c_uint;
321 pub type _bindgen_ty_3 = ffi::c_uint;
350 pub chipSKU: [ffi::c_char; 9usize],
351 pub chipSKUMod: [ffi::c_char; 5usize],
354 pub project: [ffi::c_char; 5usize],
355 pub projectSKU: [ffi::c_char; 5usize],
[all …]
/linux/rust/kernel/alloc/
H A Dallocator.rs56 *const crate::ffi::c_void,
58 crate::ffi::c_ulong,
60 crate::ffi::c_int,
61 ) -> *mut crate::ffi::c_void,
/linux/rust/kernel/drm/
H A Dioctl.rs125 raw_data: *mut ::core::ffi::c_void,
127 ) -> core::ffi::c_int {
/linux/drivers/gpu/nova-core/gsp/fw/
H A Dr570_144.rs27 use kernel::ffi;
/linux/samples/rust/
H A Drust_print_main.rs
/linux/drivers/android/binder/
H A Derror.rs45 pub(crate) fn as_errno(&self) -> kernel::ffi::c_int { in as_errno()
/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/debugfs/
H A Dentry.rs
/linux/rust/kernel/sync/
H A Dcondvar.rs10 ffi::{c_int, c_long},

12