| /linux/rust/kernel/sync/atomic/ |
| H A D | predefine.rs | 31 // 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 D | internal.rs | 16 // 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 D | chacha-neon-core.S | 74 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 D | curve25519-core.S | 25 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 D | set_global_vars.c | 11 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 D | refcount.rs | 28 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 D | io.rs | 112 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 D | alloc.rs | 115 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 D | jump_label.rs | 72 pub const fn bool_to_int(b: bool) -> i32 { in bool_to_int() argument 73 b as i32 in bool_to_int()
|
| H A D | regulator.rs | 383 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 D | module_param.rs | 102 impl_int_module_param!(i32); 177 make_param_ops!(PARAM_OPS_I32, i32);
|
| H A D | error.rs | 28 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 D | num.rs | 75 i32: Signed,
|
| /linux/scripts/ |
| H A D | generate_rust_target.rs | 21 Number(i32), 74 impl From<i32> for Value { 75 fn from(value: i32) -> Self { in from()
|
| /linux/Documentation/translations/zh_CN/rust/ |
| H A D | testing.rst | 58 pub fn f(a: i32, b: i32) -> i32 {
|
| /linux/fs/squashfs/ |
| H A D | export.c | 89 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 D | request.rs | 264 _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 D | command.h | 107 __s32 i32; member 148 SCTP_ARG_CONSTRUCTOR(I32, __s32, i32) in SCTP_ARG_CONSTRUCTOR() argument
|
| /linux/samples/rust/hostprogs/ |
| H A D | b.rs | 5 pub(crate) const CONSTANT: i32 = 42;
|
| H A D | a.rs | 5 pub(crate) fn f(x: i32) { in f() argument
|
| /linux/rust/ |
| H A D | ffi.rs | 36 c_int = i32;
|
| /linux/samples/rust/ |
| H A D | rust_minimal.rs | 22 numbers: KVec<i32>,
|
| H A D | rust_print_main.rs | 39 // 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 D | delay.rs | 33 const MAX_DELTA: Delta = Delta::from_micros(i32::MAX as i64); in fsleep()
|
| /linux/arch/mips/include/asm/octeon/ |
| H A D | cvmx-fau.h | 260 uint64_t i32; in cvmx_fau_tagwait_fetch_and_add32() member 264 result.i32 = in cvmx_fau_tagwait_fetch_and_add32()
|