Home
last modified time | relevance | path

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

123

/linux/rust/kernel/sync/atomic/
H A Dpredefine.rs31 // SAFETY: `i32` has the same size and alignment with itself, and is round-trip transmutable to in rhs_into_delta()
33 unsafe impl super::AtomicType for i32 {
34 type Repr = i32;
37 // SAFETY: The wrapping add result of two `i32`s is a valid `i32`.
38 unsafe impl super::AtomicAdd<i32> for i32 {
39 fn rhs_into_delta(rhs: i32) -> i32 {
63 type isize_atomic_repr = i32;
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.rs16 // The C side supports atomic primitives only for `i32` and `i64` (`atomic_t` and `atomic64_t`),
21 impl private::Sealed for i32 {}
30 /// - `i32` map to `atomic_t`
54 // `atomic_t` implements atomic operations on `i32`.
55 impl AtomicImpl for i32 {
265 [ i8 => atomic_i8, i16 => atomic_i16, i32 => atomic, i64 => atomic64 ]
283 [ i8 => atomic_i8, i16 => atomic_i16, i32 => atomic, i64 => atomic64 ]
311 [ 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.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.rs112 let _ret = unsafe { bindings::$c_fn($self.pdev.as_raw(), $addr as i32, &mut val) };
141 let _ret = unsafe { bindings::$c_fn($self.pdev.as_raw(), $addr as i32, $value) };
191 num: i32,
202 let num = i32::try_from(num)?; in new()
248 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.rs383 pub struct Voltage(i32);
387 pub fn from_microvolts(uv: i32) -> Self {
391 /// Returns the value of the voltage in microvolts as an [`i32`]. in from_microvolts()
392 pub fn as_microvolts(self) -> i32 { in from_microvolts()
395 as_microvolts(self) -> i32 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)) {
140 if errno < -(bindings::MAX_ERRNO as i32) || errno >= 0 { in try_from_errno()
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.rs264 _irq: i32, in handle_irq_callback()
485 _irq: i32, in handle_threaded_irq_callback()
501 _irq: i32, in thread_fn_callback()
/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>,
H A Drust_print_main.rs39 // Both `i32` and `&str` implement `Display`. This enables us to express a unified in arc_print()
40 // behaviour, contract or protocol on both `i32` and `&str` into a single `Arc` of in arc_print()
48 let a_i32_display: Arc<dyn Display> = Arc::new(42i32, GFP_KERNEL)?; in arc_print()
113 pub(crate) fn trace_rust_sample_loaded(magic: i32) { in trace_rust_sample_loaded() argument
/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