Home
last modified time | relevance | path

Searched refs:i32 (Results 1 – 25 of 60) sorted by relevance

123

/linux/rust/kernel/sync/atomic/
H A Dpredefine.rs52 // SAFETY: `i32` has the same size and alignment with itself, and is round-trip transmutable to
54 unsafe impl super::AtomicType for i32 {
55 type Repr = i32;
58 // SAFETY: The wrapping add result of two `i32`s is a valid `i32`.
59 unsafe impl super::AtomicAdd<i32> for i32 {
60 fn rhs_into_delta(rhs: i32) -> i32 {
84 type isize_atomic_repr = i32; in rhs_into_delta()
10 unsafe impl super::AtomicType for i32 { global() implementation
15 unsafe impl super::AtomicAdd<i32> for i32 { global() implementation
16 rhs_into_delta(rhs: i32) -> i32 rhs_into_delta() argument
82 rhs_into_delta(rhs: u32) -> i32 rhs_into_delta() argument
[all...]
H A Dinternal.rs17 // The C side supports atomic primitives only for `i32` and `i64` (`atomic_t` and `atomic64_t`), implementation
23 impl private::Sealed for i32 {}
32 /// - `i32` map to `atomic_t`
67 // `atomic_t` implements atomic operations on `i32`.
68 impl AtomicImpl for i32 {
278 [ i8 => atomic_i8, i16 => atomic_i16, *const c_void => atomic_ptr, i32 => atomic, i64 => atomic64 ]
296 [ i8 => atomic_i8, i16 => atomic_i16, *const c_void => atomic_ptr, i32 => atomic, i64 => atomic64 ]
324 [ i32 => atomic, i64 => atomic64 ]
36 impl AtomicImpl for i32 { global() implementation
/linux/lib/crypto/arm/
H A Dchacha-neon-core.S74 vadd.i32 q0, q0, q1
79 vadd.i32 q2, q2, q3
85 vadd.i32 q0, q0, q1
91 vadd.i32 q2, q2, q3
104 vadd.i32 q0, q0, q1
109 vadd.i32 q2, q2, q3
115 vadd.i32 q0, q0, q1
121 vadd.i32 q2, q2, q3
163 vadd.i32 q0, q0, q8
167 vadd.i32 q1, q1, q9
[all …]
H A Dcurve25519-core.S25 vmov.i32 q0, #1
28 vmov.i32 d4, #19
29 vmov.i32 d5, #38
35 vmov.i32 q2, #0
179 vmov.i32 q0, #0
187 vmov.i32 q0, #0
192 vmov.i32 q0, #0
225 vdup.i32 q8, r2
262 vadd.i32 q8, q4, q6
263 vsub.i32 q4, q4, q6
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dset_global_vars.c11 typedef s32 i32; typedef
20 const volatile i32 var_s32 = -1;
30 const volatile i32 arr[32];
32 const volatile i32 three_d[47][19][17];
33 const volatile i32 *ptr_arr[32];
/linux/rust/kernel/sync/
H A Drefcount.rs28 pub fn new(value: i32) -> Self { in new()
45 pub fn as_atomic(&self) -> &Atomic<i32> { in as_atomic() argument
55 pub fn set(&self, value: i32) { in set() argument
/linux/rust/kernel/pci/
H A Dio.rs99 unsafe { bindings::$read_fn(self.pdev.as_raw(), address as i32, &mut val) };
111 unsafe { bindings::$write_fn(self.pdev.as_raw(), address as i32, value) };
152 num: i32,
163 let num = i32::try_from(num)?; in new()
209 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) { in do_release() argument
/linux/rust/kernel/
H A Dalloc.rs115 pub struct NumaNode(i32);
122 pub fn new(node: i32) -> Result<Self> { in new()
124 if node < 0 || node >= bindings::MAX_NUMNODES as i32 { in new()
H A Djump_label.rs72 pub const fn bool_to_int(b: bool) -> i32 { in bool_to_int() argument
73 b as i32 in bool_to_int()
H A Dregulator.rs386 pub struct Voltage(i32);
390 pub fn from_microvolts(uv: i32) -> Self { in from_microvolts()
395 pub fn as_microvolts(self) -> i32 { in as_microvolts() argument
H A Dmodule_param.rs102 impl_int_module_param!(i32);
177 make_param_ops!(PARAM_OPS_I32, i32);
H A Derror.rs28 match super::Error::try_from_errno(-(crate::bindings::$err as i32)) {
141 if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 { in try_from_errno()
514 // And an `i16` always fits in an `i32`. So casting `err` to in from_result()
515 // an `i32` can never overflow, and is always valid. in from_result()
H A Dkunit.rs69 static LINE: i32 = ::core::line!() as i32 - $diff;
H A Dnum.rs75 i32: Signed,
/linux/scripts/
H A Dgenerate_rust_target.rs21 Number(i32),
74 impl From<i32> for Value {
75 fn from(value: i32) -> Self { in from()
/linux/Documentation/translations/zh_CN/rust/
H A Dtesting.rst58 pub fn f(a: i32, b: i32) -> i32 {
/linux/fs/squashfs/
H A Dexport.c89 return squashfs_export_iget(sb, fid->i32.ino); in squashfs_fh_to_dentry()
99 return squashfs_export_iget(sb, fid->i32.parent_ino); in squashfs_fh_to_parent()
/linux/rust/kernel/irq/
H A Drequest.rs263 unsafe extern "C" fn handle_irq_callback<T: Handler>(_irq: i32, ptr: *mut c_void) -> c_uint { in handle_irq_callback() argument
482 _irq: i32,
497 unsafe extern "C" fn thread_fn_callback<T: ThreadedHandler>(_irq: i32, ptr: *mut c_void) -> c_uint {
484 handle_threaded_irq_callback<T: ThreadedHandler + 'static>( _irq: i32, ptr: *mut c_void, ) -> c_uint handle_threaded_irq_callback() argument
500 thread_fn_callback<T: ThreadedHandler + 'static>( _irq: i32, ptr: *mut c_void, ) -> c_uint thread_fn_callback() argument
/linux/include/net/sctp/
H A Dcommand.h107 __s32 i32; member
148 SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) in SCTP_ARG_CONSTRUCTOR() argument
/linux/samples/rust/hostprogs/
H A Db.rs5 pub(crate) const CONSTANT: i32 = 42;
H A Da.rs5 pub(crate) fn f(x: i32) { in f() argument
/linux/rust/
H A Dffi.rs36 c_int = i32;
/linux/samples/rust/
H A Drust_minimal.rs22 numbers: KVec<i32>,
/linux/rust/kernel/time/
H A Ddelay.rs33 const MAX_DELTA: Delta = Delta::from_micros(i32::MAX as i64); in fsleep()
/linux/arch/mips/include/asm/octeon/
H A Dcvmx-fau.h260 uint64_t i32; in cvmx_fau_tagwait_fetch_and_add32() member
264 result.i32 = in cvmx_fau_tagwait_fetch_and_add32()

123