Home
last modified time | relevance | path

Searched refs:cmpxchg (Results 1 – 25 of 59) sorted by relevance

123

/arch/s390/include/asm/
Dcmpxchg.h15 #define cmpxchg(ptr, o, n) \ macro
22 #define cmpxchg64 cmpxchg
23 #define cmpxchg_local cmpxchg
24 #define cmpxchg64_local cmpxchg
Dpercpu.h38 prev__ = cmpxchg(ptr__, old__, new__); \
141 ret__ = cmpxchg(ptr__, oval, nval); \
/arch/mips/kernel/
Dcmpxchg.c44 load32 = cmpxchg(ptr32, old32, new32); in __xchg_small()
100 load32 = cmpxchg(ptr32, old32, new32); in __cmpxchg_small()
/arch/alpha/include/asm/
Dcmpxchg.h56 #define cmpxchg(ptr, o, n) \ macro
71 cmpxchg((ptr), (o), (n)); \
Datomic.h202 #define atomic64_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS()
205 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new)) in ATOMIC_OPS()
/arch/sparc/include/asm/
Datomic_64.h53 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) in ATOMIC_OPS()
61 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg_32.h58 #define cmpxchg(ptr, o, n) \ macro
/arch/arc/include/asm/
Dcmpxchg.h92 #define cmpxchg(ptr, o, n) ({ \ macro
104 #define atomic_cmpxchg(v, o, n) ((int)cmpxchg(&((v)->counter), (o), (n)))
/arch/ia64/include/uapi/asm/
Dcmpxchg.h130 #define cmpxchg(ptr, o, n) cmpxchg_acq((ptr), (o), (n)) macro
133 #define cmpxchg_local cmpxchg
/arch/sh/kernel/cpu/sh2/
Dsmp-j2.c28 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler()
118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
/arch/sh/include/asm/
Datomic.h36 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg.h66 #define cmpxchg(ptr,o,n) \ macro
/arch/hexagon/include/asm/
Dcmpxchg.h54 #define cmpxchg(ptr, old, new) \ macro
/arch/arm/include/asm/
Dsync_bitops.h24 #define sync_cmpxchg cmpxchg
/arch/powerpc/include/asm/
Dcputime.h26 #define cmpxchg_cputime(ptr, old, new) cmpxchg(ptr, old, new)
/arch/riscv/include/asm/
Dcmpxchg.h340 #define cmpxchg(ptr, o, n) \ macro
354 cmpxchg((ptr), (o), (n)); \
366 cmpxchg((ptr), (o), (n)); \
/arch/csky/include/asm/
Dcmpxchg.h67 #define cmpxchg(ptr, o, n) \ macro
/arch/mips/include/asm/
Dcmpxchg.h189 #define cmpxchg(ptr, old, new) \ macro
210 cmpxchg((ptr), (o), (n)); \
/arch/parisc/include/asm/
Datomic.h77 #define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
223 ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n)))
Dcmpxchg.h79 #define cmpxchg(ptr, o, n) \ macro
/arch/ia64/include/asm/
Datomic.h211 #define atomic_cmpxchg(v, old, new) (cmpxchg(&((v)->counter), old, new))
215 (cmpxchg(&((v)->counter), old, new))
/arch/m68k/include/asm/
Dcmpxchg.h121 #define cmpxchg(ptr, o, n) \ macro
/arch/nds32/include/asm/
DKbuild8 generic-y += cmpxchg.h
/arch/nios2/include/asm/
DKbuild7 generic-y += cmpxchg.h
/arch/openrisc/include/asm/
Dcmpxchg.h135 #define cmpxchg(ptr, o, n) \ macro

123