Searched refs:ffi (Results 1 – 25 of 43) sorted by relevance
12
| /linux/rust/kernel/ |
| H A D | error.rs | 123 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 D | devres.rs | 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()
|
| H A D | bug.rs | 84 line!() as $crate::ffi::c_int, 85 $flags as $crate::ffi::c_uint,
|
| H A D | firmware.rs | 12 ffi, 24 *const ffi::c_char,
|
| H A D | lib.rs | 65 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 D | seq_file.rs | 40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
|
| H A D | configfs.rs | 345 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 D | prelude.rs | 20 pub use ::ffi::{
|
| H A D | device.rs | 470 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 D | clk.rs | 9 use crate::ffi::c_ulong;
|
| H A D | dma.rs | 211 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 D | str.rs | 406 impl From<core::ffi::FromBytesWithNulError> for Error { 408 fn from(_: core::ffi::FromBytesWithNulError) -> Error { in from()
|
| H A D | types.rs | 5 use crate::ffi::c_void;
|
| H A D | xarray.rs | 10 ffi::c_void,
|
| /linux/rust/ |
| H A D | ffi.rs | 20 ::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 D | Makefile | 6 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 D | bindings.rs | 46 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 D | allocator.rs | 56 *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 D | ioctl.rs | 125 raw_data: *mut ::core::ffi::c_void, 127 ) -> core::ffi::c_int {
|
| /linux/drivers/gpu/nova-core/gsp/fw/ |
| H A D | r570_144.rs | 27 use kernel::ffi;
|
| /linux/samples/rust/ |
| H A D | rust_print_main.rs | |
| /linux/drivers/android/binder/ |
| H A D | error.rs | 45 pub(crate) fn as_errno(&self) -> kernel::ffi::c_int { in as_errno()
|
| /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/debugfs/ |
| H A D | entry.rs | |
| /linux/rust/kernel/sync/ |
| H A D | condvar.rs | 10 ffi::{c_int, c_long},
|
12