Home
last modified time | relevance | path

Searched refs:arch_cmpxchg (Results 1 – 25 of 42) sorted by relevance

12

/Linux-v6.1/arch/s390/include/asm/
Dcmpxchg.h156 #define arch_cmpxchg(ptr, o, n) \ macro
166 #define arch_cmpxchg64 arch_cmpxchg
167 #define arch_cmpxchg_local arch_cmpxchg
168 #define arch_cmpxchg64_local arch_cmpxchg
/Linux-v6.1/include/asm-generic/
Datomic.h25 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
35 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
47 while ((old = arch_cmpxchg(&v->counter, c, c c_op i)) != c) \
134 #define arch_atomic_cmpxchg(v, old, new) (arch_cmpxchg(&((v)->counter), (old), (new)))
Dcmpxchg.h112 #define arch_cmpxchg arch_cmpxchg_local macro
/Linux-v6.1/arch/ia64/include/asm/
Dcmpxchg.h10 #define arch_cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro
13 #define arch_cmpxchg_local arch_cmpxchg
Datomic.h210 #define arch_atomic_cmpxchg(v, old, new) (arch_cmpxchg(&((v)->counter), old, new))
214 (arch_cmpxchg(&((v)->counter), old, new))
/Linux-v6.1/arch/mips/kernel/
Dcmpxchg.c44 load32 = arch_cmpxchg(ptr32, old32, new32); in __xchg_small()
100 load32 = arch_cmpxchg(ptr32, old32, new32); in __cmpxchg_small()
/Linux-v6.1/arch/alpha/include/asm/
Dcmpxchg.h56 #define arch_cmpxchg(ptr, o, n) \ macro
71 arch_cmpxchg((ptr), (o), (n)); \
Datomic.h204 (arch_cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS()
209 (arch_cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS()
/Linux-v6.1/arch/sparc/include/asm/
Datomic_64.h52 #define arch_atomic_cmpxchg(v, o, n) (arch_cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS()
60 ((__typeof__((v)->counter))arch_cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg_32.h58 #define arch_cmpxchg(ptr, o, n) \ macro
/Linux-v6.1/arch/loongarch/include/asm/
Dcmpxchg.h192 #define arch_cmpxchg(ptr, old, new) \ macro
211 arch_cmpxchg((ptr), (o), (n)); \
Datomic.h184 #define arch_atomic_cmpxchg(v, o, n) (arch_cmpxchg(&((v)->counter), (o), (n)))
346 ((__typeof__((v)->counter))arch_cmpxchg(&((v)->counter), (o), (n)))
/Linux-v6.1/arch/mips/include/asm/
Dcmpxchg.h184 #define arch_cmpxchg(ptr, old, new) \ macro
219 arch_cmpxchg((ptr), (o), (n)); \
/Linux-v6.1/arch/sh/include/asm/
Datomic.h34 #define arch_atomic_cmpxchg(v, o, n) (arch_cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg.h66 #define arch_cmpxchg(ptr,o,n) \ macro
/Linux-v6.1/arch/x86/include/asm/
Dcmpxchg_64.h13 arch_cmpxchg((ptr), (o), (n)); \
/Linux-v6.1/arch/arc/include/asm/
Datomic.h27 arch_cmpxchg(&((v)->counter), (o), (n)); \
Dcmpxchg.h60 #define arch_cmpxchg(ptr, old, new) \ macro
/Linux-v6.1/arch/arm/include/asm/
Dsync_bitops.h24 #define arch_sync_cmpxchg arch_cmpxchg
/Linux-v6.1/arch/arm64/include/asm/
Dsync_bitops.h25 #define arch_sync_cmpxchg arch_cmpxchg
Dcmpxchg.h192 #define arch_cmpxchg(...) __cmpxchg_wrapper( _mb, __VA_ARGS__) macro
199 #define arch_cmpxchg64 arch_cmpxchg
/Linux-v6.1/arch/hexagon/include/asm/
Dcmpxchg.h54 #define arch_cmpxchg(ptr, old, new) \ macro
/Linux-v6.1/arch/parisc/include/asm/
Datomic.h77 #define arch_atomic_cmpxchg(v, o, n) (arch_cmpxchg(&((v)->counter), (o), (n)))
223 ((__typeof__((v)->counter))arch_cmpxchg(&((v)->counter), (o), (n)))
/Linux-v6.1/arch/riscv/include/asm/
Dcmpxchg.h340 #define arch_cmpxchg(ptr, o, n) \ macro
354 arch_cmpxchg((ptr), (o), (n)); \
/Linux-v6.1/include/linux/atomic/
Datomic-arch-fallback.h35 #define arch_cmpxchg_acquire arch_cmpxchg
36 #define arch_cmpxchg_release arch_cmpxchg
37 #define arch_cmpxchg_relaxed arch_cmpxchg
42 __atomic_op_acquire(arch_cmpxchg, __VA_ARGS__)
47 __atomic_op_release(arch_cmpxchg, __VA_ARGS__)
50 #ifndef arch_cmpxchg
51 #define arch_cmpxchg(...) \ macro
52 __atomic_op_fence(arch_cmpxchg, __VA_ARGS__)
91 ___r = arch_cmpxchg((_ptr), ___o, (_new)); \

12