| /linux/drivers/android/binder/ |
| H A D | rust_binder_main.rs | 55 pub fn init_rust_binderfs() -> kernel::ffi::c_int; 60 pid: kernel::ffi::c_int, 66 pub type rust_binder_context = *mut kernel::ffi::c_void; 70 pub minor: kernel::ffi::c_int, 339 name: *const kernel::ffi::c_char, in rust_binder_new_context() 340 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context() 352 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) { in rust_binder_remove_context() 367 ) -> kernel::ffi::c_int { in rust_binder_open() 402 ) -> kernel::ffi::c_int { in rust_binder_release() 415 cmd: kernel::ffi in rust_binder_ioctl() [all...] |
| H A D | error.rs | 45 pub(crate) fn as_errno(&self) -> kernel::ffi::c_int { in as_errno()
|
| /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() 440 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result() 466 /// ) -> Result<*mut kernel::ffi::c_void> { in from_err_ptr() 478 /// # pub(super) unsafe fn einval_err_ptr() -> *mut kernel::ffi::c_void { in from_err_ptr() 481 /// # pub(super) unsafe fn null_ptr() -> *mut kernel::ffi::c_void { in from_err_ptr() 484 /// # pub(super) unsafe fn non_null_ptr() -> *mut kernel::ffi in from_err_ptr() [all...] |
| 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 | 38 pub use ffi; 328 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr {
|
| H A D | kunit.rs | 247 const KUNIT_TEST_SUITE_NAME: [::kernel::ffi::c_char; 256] = { 261 ret[i] = name_u8[i] as ::kernel::ffi::c_char;
|
| 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 | seq_file.rs | 40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
|
| H A D | prelude.rs | 25 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 | 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 | clk.rs | 9 use crate::ffi::c_ulong;
|
| H A D | str.rs | 213 // core::ffi::c_char` rather than a `*const crate::ffi::c_char`. in from_char_ptr() 227 // core::ffi::c_char` rather than a `*const crate::ffi::c_char`. in as_char_ptr() 422 impl From<core::ffi::FromBytesWithNulError> for Error { 424 fn from(_: core::ffi::FromBytesWithNulError) -> Error {
|
| /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 221 rustdoc-ffi: private is-kernel-object := y 222 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE 240 rustdoc-kernel: private rustc_target_flags = --extern ffi --extern pin_init \ 243 rustdoc-kernel: $(src)/kernel/lib.rs rustdoc-core rustdoc-ffi rustdoc-macros \ 264 rusttestlib-ffi: $(src)/ffi.rs FORCE 299 rusttestlib-kernel: private rustc_target_flags = --extern ffi \ 307 rusttestlib-bindings: private rustc_target_flags = --extern ffi [all...] |
| /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 | 24 use kernel::ffi;
|
| /linux/samples/rust/ |
| H A D | rust_print_main.rs | |
| /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},
|