/Linux-v4.19/arch/arc/include/asm/ |
D | cmpxchg.h | 20 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function 50 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function 70 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function 95 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \
|
/Linux-v4.19/tools/memory-model/ |
D | linux-kernel.def | 32 cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 33 cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W) 34 cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W) 35 cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W) 100 atomic_cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W) 101 atomic_cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W) 102 atomic_cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W) 103 atomic_cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W)
|
/Linux-v4.19/arch/alpha/include/asm/ |
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-v4.19/arch/m68k/include/asm/ |
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-v4.19/arch/sh/include/asm/ |
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-v4.19/arch/arm/include/asm/ |
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-v4.19/arch/sparc/include/asm/ |
D | cmpxchg_64.h | 152 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function 170 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \ 185 case 8: return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
|
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-v4.19/tools/arch/x86/include/asm/ |
D | cmpxchg.h | 83 #define __cmpxchg(ptr, old, new, size) \ macro 87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
|
/Linux-v4.19/arch/parisc/include/asm/ |
D | cmpxchg.h | 60 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function 77 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/Linux-v4.19/arch/xtensa/include/asm/ |
D | cmpxchg.h | 56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function 68 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|
/Linux-v4.19/arch/openrisc/include/asm/ |
D | cmpxchg.h | 121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function 137 (__typeof__(*(ptr))) __cmpxchg((ptr), \
|
/Linux-v4.19/arch/mips/include/asm/ |
D | cmpxchg.h | 149 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function 176 __cmpxchg((ptr), \
|
/Linux-v4.19/arch/x86/include/asm/ |
D | mc146818rtc.h | 50 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
|
D | cmpxchg.h | 133 #define __cmpxchg(ptr, old, new, size) \ macro 149 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
|
/Linux-v4.19/arch/arm64/include/asm/ |
D | cmpxchg.h | 119 static inline unsigned long __cmpxchg##sfx(volatile void *ptr, \ 151 __cmpxchg##sfx((ptr), (unsigned long)(o), \
|
/Linux-v4.19/arch/riscv/include/asm/ |
D | cmpxchg.h | 310 #define __cmpxchg(ptr, old, new, size) \ macro 352 (__typeof__(*(ptr))) __cmpxchg((ptr), \
|
D | atomic.h | 292 return __cmpxchg(&(v->counter), o, n, size); \
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | cmpxchg.h | 403 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function 485 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|