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.rs50 // SAFETY: `i32` has the same size and alignment with itself, and is round-trip transmutable to
52 unsafe impl super::AtomicType for i32 {
53 type Repr = i32;
56 // SAFETY: The wrapping add result of two `i32`s is a valid `i32`.
57 unsafe impl super::AtomicAdd<i32> for i32 {
58 fn rhs_into_delta(rhs: i32) -> i32 {
82 type isize_atomic_repr = i32; in rhs_into_delta() argument
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
[all...]
H A Dinternal.rs20 // The C side supports atomic primitives only for `i32` and `i64` (`atomic_t` and `atomic64_t`),
26 impl private::Sealed for i32 {}
35 /// - `i32` map to `atomic_t`
70 // `atomic_t` implements atomic operations on `i32`.
71 impl AtomicImpl for i32 {
281 [ i8 => atomic_i8, i16 => atomic_i16, *const c_void => atomic_ptr, i32 => atomic, i64 => atomic64 ]
299 [ i8 => atomic_i8, i16 => atomic_i16, *const c_void => atomic_ptr, i32 => atomic, i64 => atomic64 ]
327 [ i32 => atomic, i64 => atomic64 ]
17 impl private::Sealed for i32 {} global() implementation
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.rs30 pub fn new(value: i32) -> Self { in new()
47 pub fn as_atomic(&self) -> &Atomic<i32> { in as_atomic()
50 // integer that is layout-wise compatible with `Atomic<i32>`. All values are valid for in as_atomic()
57 pub fn set(&self, value: i32) { in set()
45 as_atomic(&self) -> &Atomic<i32> as_atomic() argument
55 set(&self, value: i32) set() argument
/linux/rust/kernel/pci/
H A Dio.rs95 // CAST: The offset is cast to `i32` because the C functions expect a 32-bit
97 // so the value always fits within `i32` without truncation or sign change.
98 unsafe { bindings::$read_fn(self.pdev.as_raw(), address as i32, &mut val) };
107 // CAST: The offset is cast to `i32` because the C functions expect a 32-bit
109 // so the value always fits within `i32` without truncation or sign change.
110 unsafe { bindings::$write_fn(self.pdev.as_raw(), address as i32, value) };
151 num: i32,
165 // Convert to `i32`, since that's what all the C bindings use. in new()
166 let num = i32::try_from(num)?; in new()
208 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) {
209 do_release(pdev: &Device, ioptr: usize, num: i32) do_release() argument
[all...]
/linux/rust/kernel/
H A Dalloc.rs119 pub struct NumaNode(i32);
126 pub fn new(node: i32) -> Result<Self> { in new()
128 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 super::Error::try_from_errno(-(crate::bindings::$err as i32))
139 if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 { in try_from_errno()
512 // And an `i16` always fits in an `i32`. So casting `err` to in from_result()
513 // an `i32` can never overflow, and is always valid. in from_result()
H A Dkunit.rs69 static LINE: i32 = ::core::line!() as i32 - $diff;
315 /// fn fn_mock_example(n: i32) -> i32 {
H A Dnum.rs75 i32: Signed,
/linux/Documentation/translations/zh_CN/rust/
H A Dtesting.rst58 pub fn f(a: i32, b: i32) -> i32 {
/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/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