Home
last modified time | relevance | path

Searched refs:__cmpxchg (Results 1 – 18 of 18) sorted by relevance

/linux/tools/memory-model/
H A Dlinux-kernel.def35 cmpxchg(X,V,W) __cmpxchg{MB}(X,V,W)
36 cmpxchg_relaxed(X,V,W) __cmpxchg{ONCE}(X,V,W)
37 cmpxchg_acquire(X,V,W) __cmpxchg{ACQUIRE}(X,V,W)
38 cmpxchg_release(X,V,W) __cmpxchg{RELEASE}(X,V,W)
130 atomic_cmpxchg(X,V,W) __cmpxchg{MB}(X,V,W)
131 atomic_cmpxchg_relaxed(X,V,W) __cmpxchg{ONCE}(X,V,W)
132 atomic_cmpxchg_acquire(X,V,W) __cmpxchg{ACQUIRE}(X,V,W)
133 atomic_cmpxchg_release(X,V,W) __cmpxchg{RELEASE}(X,V,W)
/linux/arch/m68k/include/asm/
H A Dcmpxchg.h89 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() function
116 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
119 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
/linux/arch/arm/include/asm/
H A Dcmpxchg.h158 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
217 (__typeof__(*(ptr)))__cmpxchg((ptr), \
237 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/linux/arch/sparc/include/asm/
H A Dcmpxchg_64.h157 __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()
H A Dcmpxchg_32.h47 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
60 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux/tools/arch/x86/include/asm/
H A Dcmpxchg.h83 #define __cmpxchg(ptr, old, new, size) \ macro
87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
/linux/arch/sh/include/asm/
H A Dcmpxchg.h56 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
73 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux/arch/arc/include/asm/
H A Dcmpxchg.h22 #define __cmpxchg(ptr, old, new) \ macro
54 _prev_ = __cmpxchg(_p_, _o_, _n_); \
/linux/arch/parisc/include/asm/
H A Dcmpxchg.h67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
83 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux/arch/openrisc/include/asm/
H A Dcmpxchg.h121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
137 (__typeof__(*(ptr))) __cmpxchg((ptr), \
/linux/arch/csky/include/asm/
H A Dcmpxchg.h124 #define __cmpxchg(ptr, old, new, size) \ macro
157 (__cmpxchg((ptr), (o), (n), sizeof(*(ptr))))
/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h75 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
88 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux/arch/mips/include/asm/
H A Dcmpxchg.h152 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
179 __cmpxchg((ptr), \
/linux/arch/x86/include/asm/
H A Dcmpxchg.h133 #define __cmpxchg(ptr, old, new, size) \ macro
149 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
H A Dmc146818rtc.h50 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
/linux/arch/loongarch/include/asm/
H A Dcmpxchg.h190 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() function
214 __cmpxchg((ptr), \
/linux/arch/arm64/include/asm/
H A Dcmpxchg.h148 static __always_inline unsigned long __cmpxchg##sfx(volatile void *ptr, \
180 __cmpxchg##sfx((ptr), (__force unsigned long)(o), \
/linux/arch/powerpc/include/asm/
H A Dcmpxchg.h621 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function
703 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \