Home
last modified time | relevance | path

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

/Linux-v5.4/arch/arc/include/asm/
Dcmpxchg.h17 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function
47 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function
67 __cmpxchg(volatile void *ptr, unsigned long expected, unsigned long new) in __cmpxchg() function
93 (typeof(*(ptr)))__cmpxchg((ptr), \
/Linux-v5.4/tools/memory-model/
Dlinux-kernel.def34 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-v5.4/arch/alpha/include/asm/
Dcmpxchg.h10 #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args)
38 #define ____cmpxchg(type, args...) __cmpxchg ##type(args)
62 __ret = (__typeof__(*(ptr))) __cmpxchg((ptr), \
/Linux-v5.4/arch/m68k/include/asm/
Dcmpxchg.h95 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-v5.4/arch/sh/include/asm/
Dcmpxchg.h55 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
70 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/Linux-v5.4/arch/arm/include/asm/
Dcmpxchg.h156 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-v5.4/arch/csky/include/asm/
Dcmpxchg.h38 #define __cmpxchg(ptr, old, new, size) \ macro
68 (__cmpxchg((ptr), (o), (n), sizeof(*(ptr))))
/Linux-v5.4/arch/sparc/include/asm/
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()
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_, \
/Linux-v5.4/tools/arch/x86/include/asm/
Dcmpxchg.h83 #define __cmpxchg(ptr, old, new, size) \ macro
87 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
/Linux-v5.4/arch/parisc/include/asm/
Dcmpxchg.h60 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
77 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/Linux-v5.4/arch/openrisc/include/asm/
Dcmpxchg.h121 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
137 (__typeof__(*(ptr))) __cmpxchg((ptr), \
/Linux-v5.4/arch/xtensa/include/asm/
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_, \
/Linux-v5.4/arch/mips/include/asm/
Dcmpxchg.h157 unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
184 __cmpxchg((ptr), \
/Linux-v5.4/arch/x86/include/asm/
Dmc146818rtc.h50 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
Dcmpxchg.h133 #define __cmpxchg(ptr, old, new, size) \ macro
149 __cmpxchg(ptr, old, new, sizeof(*(ptr)))
/Linux-v5.4/arch/riscv/include/asm/
Dcmpxchg.h302 #define __cmpxchg(ptr, old, new, size) \ macro
344 (__typeof__(*(ptr))) __cmpxchg((ptr), \
Datomic.h289 return __cmpxchg(&(v->counter), o, n, size); \
/Linux-v5.4/arch/arm64/include/asm/
Dcmpxchg.h151 static __always_inline unsigned long __cmpxchg##sfx(volatile void *ptr, \
183 __cmpxchg##sfx((ptr), (unsigned long)(o), \
/Linux-v5.4/arch/powerpc/include/asm/
Dcmpxchg.h403 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function
485 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \