Home
last modified time | relevance | path

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

123

/linux/drivers/android/binder/
H A Drust_binder_main.rs53 pub fn init_rust_binderfs() -> kernel::ffi::c_int; in init_rust_binderfs()
58 pid: kernel::ffi::c_int, in rust_binderfs_create_proc_file()
64 pub type rust_binder_context = *mut kernel::ffi::c_void;
68 pub minor: kernel::ffi::c_int,
337 name: *const kernel::ffi::c_char, in rust_binder_new_context()
338 ) -> *mut kernel::ffi::c_void { in rust_binder_new_context()
350 unsafe extern "C" fn rust_binder_remove_context(device: *mut kernel::ffi::c_void) { in rust_binder_remove_context()
365 ) -> kernel::ffi::c_int { in rust_binder_open()
400 ) -> kernel::ffi::c_int { in rust_binder_release()
413 cmd: kernel::ffi::c_uint, in rust_binder_ioctl()
[all …]
H A Dtrace.rs8 use kernel::ffi::{c_uint, c_ulong};
/linux/rust/kernel/block/mq/
H A Doperations.rs175 ) -> crate::ffi::c_int { in poll_callback()
189 _tagset_data: *mut crate::ffi::c_void, in init_hctx_callback()
190 _hctx_idx: crate::ffi::c_uint, in init_hctx_callback()
191 ) -> crate::ffi::c_int { in init_hctx_callback()
203 _hctx_idx: crate::ffi::c_uint, in exit_hctx_callback()
220 _hctx_idx: crate::ffi::c_uint, in init_request_callback()
221 _numa_node: crate::ffi::c_uint, in init_request_callback()
222 ) -> crate::ffi::c_int { in init_request_callback()
247 _hctx_idx: crate::ffi::c_uint, in exit_request_callback()
/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 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 Ddevres.rs163 unsafe extern "C" fn devres_callback(ptr: *mut kernel::ffi::c_void) { in devres_callback()
283 unsafe extern "C" fn callback<P: ForeignOwnable>(ptr: *mut kernel::ffi::c_void) { in register_foreign()
H A Dlib.rs69 pub use ffi;
362 pub fn file_from_location<'a>(loc: &'a core::panic::Location<'a>) -> &'a core::ffi::CStr { in file_from_location()
H A Dkunit.rs247 const KUNIT_TEST_SUITE_NAME: [::kernel::ffi::c_char; 256] = {
261 ret[i] = name_u8[i] as ::kernel::ffi::c_char;
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 Dseq_file.rs40 core::ptr::from_ref(&args).cast::<crate::ffi::c_void>(), in call_printf()
H A Dtime.rs43 pub type Jiffies = crate::ffi::c_ulong;
46 pub type Msecs = crate::ffi::c_uint;
H A Dprelude.rs20 pub use ::ffi::{
/linux/rust/kernel/drm/
H A Ddriver.rs46 prime_fd: *mut core::ffi::c_int,
47 ) -> core::ffi::c_int,
53 prime_fd: core::ffi::c_int,
55 ) -> core::ffi::c_int,
75 ) -> core::ffi::c_int,
83 ) -> core::ffi::c_int,
H A Dioctl.rs125 raw_data: *mut ::core::ffi::c_void,
127 ) -> core::ffi::c_int {
/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
227 rustdoc-ffi: private is-kernel-object := y
228 rustdoc-ffi: $(src)/ffi.rs rustdoc-core FORCE
/linux/rust/bindings/
H A Dlib.rs72 unsafe extern "C" fn(*mut file, ffi::c_uint, ffi::c_ulong) -> ffi::c_long,
/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/iommu/
H A Dpgtable.rs232 extern "C" fn rust_tlb_flush_all_noop(_cookie: *mut core::ffi::c_void) {} in rust_tlb_flush_all_noop()
239 _cookie: *mut core::ffi::c_void, in rust_tlb_flush_walk_noop()
/linux/drivers/gpu/nova-core/gsp/fw/
H A Dr570_144.rs27 use kernel::ffi;
/linux/rust/kernel/sync/lock/
H A Dspinlock.rs107 name: *const crate::ffi::c_char, in init()
H A Dmutex.rs108 name: *const crate::ffi::c_char, in init()
/linux/samples/rust/
H A Drust_print_main.rs

123