Home
last modified time | relevance | path

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

/openbmc/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)
111 atomic_cmpxchg(X,V,W) __cmpxchg{mb}(X,V,W)
112 atomic_cmpxchg_relaxed(X,V,W) __cmpxchg{once}(X,V,W)
113 atomic_cmpxchg_acquire(X,V,W) __cmpxchg{acquire}(X,V,W)
114 atomic_cmpxchg_release(X,V,W) __cmpxchg{release}(X,V,W)
/openbmc/linux/arch/alpha/include/asm/
H A Dcmpxchg.h10 #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args)
38 #define ____cmpxchg(type, args...) __cmpxchg ##type(args)
62 __ret = (__typeof__(*(ptr))) __cmpxchg((ptr), \
/openbmc/linux/arch/m68k/include/asm/
H A Dcmpxchg.h94 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() function
121 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
124 ({(__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
/openbmc/linux/arch/sh/include/asm/
H A Dcmpxchg.h55 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
70 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/openbmc/linux/arch/arm/include/asm/
H A Dcmpxchg.h157 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
212 (__typeof__(*(ptr)))__cmpxchg((ptr), \
232 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/openbmc/linux/tools/arch/x86/include/asm/
H A Dcmpxchg.h83 #define __cmpxchg(ptr, old, new, size) \ macro
87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
/openbmc/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.h46 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
62 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/openbmc/linux/arch/arc/include/asm/
H A Dcmpxchg.h21 #define __cmpxchg(ptr, old, new) \ macro
50 _prev_ = __cmpxchg(_p_, _o_, _n_); \
/openbmc/linux/arch/parisc/include/asm/
H A Dcmpxchg.h67 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
85 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/openbmc/linux/arch/s390/include/asm/
H A Dcmpxchg.h87 static __always_inline unsigned long __cmpxchg(unsigned long address, in __cmpxchg() function
184 __cmpxchg((unsigned long)(ptr), (unsigned long)(o), \
/openbmc/linux/arch/csky/include/asm/
H A Dcmpxchg.h117 #define __cmpxchg(ptr, old, new, size) \ macro
147 (__cmpxchg((ptr), (o), (n), sizeof(*(ptr))))
/openbmc/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), \
/openbmc/linux/arch/loongarch/include/asm/
H A Dcmpxchg.h163 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, unsigned int size) in __cmpxchg() function
187 __cmpxchg((ptr), \
/openbmc/linux/arch/xtensa/include/asm/
H A Dcmpxchg.h74 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
86 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/openbmc/u-boot/arch/sh/include/asm/
H A Dsystem.h240 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
255 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/openbmc/linux/arch/mips/include/asm/
H A Dcmpxchg.h152 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
179 __cmpxchg((ptr), \
/openbmc/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()
/openbmc/linux/arch/riscv/include/asm/
H A Dcmpxchg.h302 #define __cmpxchg(ptr, old, new, size) \ macro
344 (__typeof__(*(ptr))) __cmpxchg((ptr), \
/openbmc/linux/arch/arm64/include/asm/
H A Dcmpxchg.h147 static __always_inline unsigned long __cmpxchg##sfx(volatile void *ptr, \
179 __cmpxchg##sfx((ptr), (unsigned long)(o), \
/openbmc/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_, \