Home
last modified time | relevance | path

Searched refs:c_int (Results 1 – 25 of 26) sorted by relevance

12

/linux/tools/perf/scripts/python/
H A Dlibxed.py19 c_void_p, c_bool, c_byte, c_char, c_int, c_uint, c_longlong, c_ulonglong
26 ("mode", c_int),
27 ("width", c_int)
71 self.xed_decode.restype = c_int
76 …self.xed_format_context.argtypes = [ c_int, c_void_p, c_void_p, c_int, c_ulonglong, c_void_p, c_vo…
H A Dexport-to-postgresql.py247 PQstatus.restype = c_int
253 PQresultStatus.restype = c_int
256 PQputCopyData.restype = c_int
257 PQputCopyData.argtypes = [ c_void_p, c_void_p, c_int ]
259 PQputCopyEnd.restype = c_int
/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() argument
422 /// # pub(super) unsafe fn f1() -> c_int { 0 }
423 /// # pub(super) unsafe fn f2() -> c_int { EINVAL.to_errno() }
440 pub fn to_result(err: crate::ffi::c_int) -> Result { in to_result()
518 return Err(unsafe { Error::from_errno_unchecked(err as crate::ffi::c_int) }); in from_result()
538 /// ) -> kernel::ffi::c_int {
H A Dcpufreq.rs1067 unsafe extern "C" fn init_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in init_callback() argument
1100 unsafe extern "C" fn online_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in online_callback() argument
1115 unsafe extern "C" fn offline_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in offline_callback() argument
1130 unsafe extern "C" fn suspend_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in suspend_callback() argument
1145 unsafe extern "C" fn resume_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in resume_callback() argument
1173 unsafe extern "C" fn verify_callback(ptr: *mut bindings::cpufreq_policy_data) -> c_int { in verify_callback() argument
1188 unsafe extern "C" fn setpolicy_callback(ptr: *mut bindings::cpufreq_policy) -> c_int { in setpolicy_callback() argument
1207 ) -> c_int { in target_callback() argument
1225 ) -> c_int { in target_index_callback() argument
1304 ) -> c_int { in target_intermediate_callback() argument
[all …]
H A Dprelude.rs27 c_int,
H A Dbug.rs84 line!() as $crate::ffi::c_int,
H A Dmodule_param.rs58 unsafe extern "C" fn set_param<T>(val: *const c_char, param: *const bindings::kernel_param) -> c_int in set_param()
H A Dopp.rs521 ) -> c_int { in config_clks() argument
546 ) -> c_int { in config_regulators() argument
H A Dauxiliary.rs80 ) -> c_int { in probe_callback() argument
H A Dpci.rs103 ) -> c_int { in probe_callback() argument
H A Dusb.rs80 ) -> kernel::ffi::c_int { in probe_callback()
82 probe_callback( intf: *mut bindings::usb_interface, id: *const bindings::usb_device_id, ) -> kernel::ffi::c_int probe_callback() argument
H A Dplatform.rs95 extern "C" fn probe_callback(pdev: *mut bindings::platform_device) -> kernel::ffi::c_int { in probe_callback() argument
H A Di2c.rs155 extern "C" fn probe_callback(idev: *mut bindings::i2c_client) -> kernel::ffi::c_int {
156 probe_callback(idev: *mut bindings::i2c_client) -> kernel::ffi::c_int probe_callback() argument
/linux/drivers/android/binder/
H A Drust_binder_main.rs55 pub fn init_rust_binderfs() -> kernel::ffi::c_int;
60 pid: kernel::ffi::c_int,
70 pub minor: kernel::ffi::c_int,
367 ) -> kernel::ffi::c_int { in rust_binder_open()
402 ) -> kernel::ffi::c_int { in rust_binder_release()
432 ) -> kernel::ffi::c_int { in rust_binder_mmap()
466 ) -> kernel::ffi::c_int { in rust_binder_flush()
481 ) -> kernel::ffi::c_int { in rust_binder_stats_show()
497 ) -> kernel::ffi::c_int { in rust_binder_state_show()
513 ) -> kernel::ffi::c_int { in rust_binder_proc_show()
58 rust_binderfs_create_proc_file( nodp: *mut inode, pid: kernel::ffi::c_int, ) -> *mut dentry rust_binderfs_create_proc_file() argument
365 rust_binder_open( inode: *mut bindings::inode, file_ptr: *mut bindings::file, ) -> kernel::ffi::c_int rust_binder_open() argument
400 rust_binder_release( _inode: *mut bindings::inode, file: *mut bindings::file, ) -> kernel::ffi::c_int rust_binder_release() argument
430 rust_binder_mmap( file: *mut bindings::file, vma: *mut bindings::vm_area_struct, ) -> kernel::ffi::c_int rust_binder_mmap() argument
464 rust_binder_flush( file: *mut bindings::file, _id: bindings::fl_owner_t, ) -> kernel::ffi::c_int rust_binder_flush() argument
479 rust_binder_stats_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_stats_show() argument
495 rust_binder_state_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_state_show() argument
511 rust_binder_proc_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_proc_show() argument
529 rust_binder_transactions_show( ptr: *mut seq_file, _: *mut kernel::ffi::c_void, ) -> kernel::ffi::c_int rust_binder_transactions_show() argument
[all...]
H A Derror.rs45 pub(crate) fn as_errno(&self) -> kernel::ffi::c_int { in as_errno() argument
/linux/samples/rust/
H A Drust_print_main.rs110 unsafe fn rust_sample_loaded(magic: c_int);
115 unsafe { rust_sample_loaded(magic as c_int) } in trace_rust_sample_loaded()
/linux/rust/kernel/sync/
H A Dcondvar.rs10 ffi::{c_int, c_long},
116 wait_state: c_int, in wait_internal() argument
202 fn notify(&self, count: c_int) { in notify() argument
/linux/rust/kernel/debugfs/
H A Dfile_ops.rs94 ) -> c_int { in writer_open()
115 ) -> c_int { in writer_act()
211 ) -> c_int {
85 writer_open<T: Writer + Sync>( inode: *mut bindings::inode, file: *mut bindings::file, ) -> c_int writer_open() argument
106 writer_act<T: Writer + Sync>( seq: *mut bindings::seq_file, _: *mut c_void, ) -> c_int writer_act() argument
204 write_only_open( inode: *mut bindings::inode, file: *mut bindings::file, ) -> c_int write_only_open() argument
/linux/rust/
H A Dffi.rs36 c_int = i32;
/linux/tools/crypto/ccp/
H A Ddbc.py59 arg = ctypes.c_int(data if data else 0)
/linux/rust/kernel/drm/
H A Dioctl.rs127 ) -> core::ffi::c_int {
/linux/rust/kernel/io/
H A Dresource.rs119 flags.0 as c_int, in request_region()
/linux/rust/kernel/alloc/
H A Dallocator.rs60 crate::ffi::c_int,
/linux/tools/kvm/kvm_stat/
H A Dkvm_stat506 ctypes.c_int(pid), ctypes.c_int(cpu),
507 ctypes.c_int(group_fd), ctypes.c_long(flags))
/linux/Documentation/rust/
H A Dcoding-guidelines.rst285 ``c_int``, which are readily available from the ``kernel`` prelude. Please do
293 fn f(p: *const c_char) -> c_int {

12