/linux/include/asm-generic/ |
A D | cmpxchg.h | 100 #ifndef arch_xchg 101 #define arch_xchg generic_xchg macro
|
A D | atomic.h | 133 #define arch_atomic_xchg(ptr, v) (arch_xchg(&(ptr)->counter, (v)))
|
/linux/arch/sparc/include/asm/ |
A D | atomic_64.h | 56 return arch_xchg(&v->counter, new); in ATOMIC_OPS() 61 #define arch_atomic64_xchg(v, new) (arch_xchg(&((v)->counter), new))
|
A D | cmpxchg_32.h | 28 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));}) macro
|
/linux/arch/riscv/include/asm/ |
A D | cmpxchg.h | 143 #define arch_xchg(ptr, x) \ macro 152 arch_xchg((ptr), (x)); \ 158 arch_xchg((ptr), (x)); \
|
/linux/arch/s390/include/asm/ |
A D | atomic.h | 75 #define arch_atomic_xchg(v, new) (arch_xchg(&((v)->counter), new)) in ATOMIC_OPS() 115 #define arch_atomic64_xchg(v, new) (arch_xchg(&((v)->counter), new))
|
A D | cmpxchg.h | 75 #define arch_xchg(ptr, x) \ macro
|
/linux/arch/parisc/include/asm/ |
A D | atomic.h | 78 #define arch_atomic_xchg(v, new) (arch_xchg(&((v)->counter), new)) 224 #define arch_atomic64_xchg(v, new) (arch_xchg(&((v)->counter), new))
|
A D | cmpxchg.h | 47 #define arch_xchg(ptr, x) \ macro
|
/linux/arch/ia64/include/asm/ |
A D | cmpxchg.h | 7 #define arch_xchg(ptr, x) \ macro
|
A D | atomic.h | 211 #define arch_atomic_xchg(v, new) (arch_xchg(&((v)->counter), new)) 215 #define arch_atomic64_xchg(v, new) (arch_xchg(&((v)->counter), new))
|
/linux/arch/sh/include/asm/ |
A D | atomic.h | 33 #define arch_atomic_xchg(v, new) (arch_xchg(&((v)->counter), new))
|
A D | cmpxchg.h | 48 #define arch_xchg(ptr,x) \ macro
|
/linux/arch/alpha/include/asm/ |
A D | atomic.h | 206 (arch_xchg(&((v)->counter), new)) in ATOMIC_OPS() 211 (arch_xchg(&((v)->counter), new)) in ATOMIC_OPS()
|
A D | cmpxchg.h | 45 #define arch_xchg(ptr, x) \ macro
|
/linux/arch/arc/include/asm/ |
A D | atomic.h | 39 arch_xchg(&((v)->counter), (n)); \
|
A D | cmpxchg.h | 122 #define arch_xchg(ptr, val) \ macro
|
/linux/arch/hexagon/include/asm/ |
A D | cmpxchg.h | 45 #define arch_xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \ macro
|
A D | atomic.h | 44 #define arch_atomic_xchg(v, new) (arch_xchg(&((v)->counter), (new)))
|
/linux/include/linux/atomic/ |
A D | atomic-arch-fallback.h | 12 #define arch_xchg_acquire arch_xchg 13 #define arch_xchg_release arch_xchg 14 #define arch_xchg_relaxed arch_xchg 19 __atomic_op_acquire(arch_xchg, __VA_ARGS__) 24 __atomic_op_release(arch_xchg, __VA_ARGS__) 27 #ifndef arch_xchg 28 #define arch_xchg(...) \ macro 29 __atomic_op_fence(arch_xchg, __VA_ARGS__)
|
/linux/arch/m68k/include/asm/ |
A D | cmpxchg.h | 79 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));}) macro
|
/linux/arch/openrisc/include/asm/ |
A D | atomic.h | 133 #define arch_atomic_xchg(ptr, v) (arch_xchg(&(ptr)->counter, (v)))
|
A D | cmpxchg.h | 164 #define arch_xchg(ptr, with) \ macro
|
/linux/arch/powerpc/include/asm/ |
A D | atomic.h | 194 (arch_xchg(&((v)->counter), new)) 514 (arch_xchg(&((v)->counter), new))
|
/linux/arch/arm/include/asm/ |
A D | cmpxchg.h | 131 #define arch_xchg arch_xchg_relaxed macro
|