/linux/tools/memory-model/ |
A D | linux-kernel.def | 34 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 35 cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W) 36 cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W) 37 cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W) 108 atomic_cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 109 atomic_cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W) 110 atomic_cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W) 111 atomic_cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W)
|
/linux/arch/alpha/include/asm/ |
A D | cmpxchg.h | 10 #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args) 38 #define ____cmpxchg(type, args...) __cmpxchg ##type(args) 62 __ret = (__typeof__(*(ptr))) __cmpxchg((ptr), \
|
/linux/arch/m68k/include/asm/ |
A D | cmpxchg.h | 95 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() function 122 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \ 125 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
|
/linux/arch/arm/include/asm/ |
A D | cmpxchg.h | 156 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function 211 (__typeof__(*(ptr)))__cmpxchg((ptr), \ 231 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
|
/linux/arch/sparc/include/asm/ |
A D | cmpxchg_64.h | 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function 175 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \ 190 case 8: return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
|
A D | cmpxchg_32.h | 46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function 62 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/linux/arch/sh/include/asm/ |
A D | cmpxchg.h | 55 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function 70 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/linux/tools/arch/x86/include/asm/ |
A D | cmpxchg.h | 83 #define __cmpxchg(ptr, old, new, size) \ macro 87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
|
/linux/arch/arc/include/asm/ |
A D | cmpxchg.h | 21 #define __cmpxchg(ptr, old, new) \ macro 50 _prev_ = __cmpxchg(_p_, _o_, _n_); \
|
/linux/arch/parisc/include/asm/ |
A D | cmpxchg.h | 67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function 85 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/linux/arch/openrisc/include/asm/ |
A D | cmpxchg.h | 121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function 137 (__typeof__(*(ptr))) __cmpxchg((ptr), \
|
/linux/arch/s390/include/asm/ |
A D | cmpxchg.h | 87 static __always_inline unsigned long __cmpxchg(unsigned long address, in __cmpxchg() function 161 __cmpxchg((unsigned long)(ptr), (unsigned long)(o), \
|
/linux/arch/xtensa/include/asm/ |
A D | cmpxchg.h | 74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function 86 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/linux/arch/mips/include/asm/ |
A D | cmpxchg.h | 153 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function 180 __cmpxchg((ptr), \
|
/linux/arch/x86/include/asm/ |
A D | cmpxchg.h | 133 #define __cmpxchg(ptr, old, new, size) \ macro 149 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
|
A D | mc146818rtc.h | 50 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
|
/linux/arch/riscv/include/asm/ |
A D | cmpxchg.h | 302 #define __cmpxchg(ptr, old, new, size) \ macro 344 (__typeof__(*(ptr))) __cmpxchg((ptr), \
|
A D | atomic.h | 287 return __cmpxchg(&(v->counter), o, n, size); \
|
/linux/arch/arm64/include/asm/ |
A D | cmpxchg.h | 151 static __always_inline unsigned long __cmpxchg##sfx(volatile void *ptr, \ 183 __cmpxchg##sfx((ptr), (unsigned long)(o), \
|
/linux/arch/powerpc/include/asm/ |
A D | cmpxchg.h | 392 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function 474 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|