Home
last modified time | relevance | path

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

/arch/mn10300/include/asm/
Dcmpxchg.h39 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
90 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
111 ((__typeof__(*(ptr))) __cmpxchg((unsigned long *)(ptr), \
/arch/arc/include/asm/
Dcmpxchg.h20 __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
69 #define cmpxchg(ptr, o, n) ((typeof(*(ptr)))__cmpxchg((ptr), \
/arch/alpha/include/asm/
Dcmpxchg.h10 #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args)
42 #define ____cmpxchg(type, args...) __cmpxchg ##type(args)
56 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/arch/score/include/asm/
Dcmpxchg.h26 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
41 ((__typeof__(*(ptr))) __cmpxchg((unsigned long *)(ptr), \
/arch/arm64/include/asm/
Dcmpxchg.h82 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
161 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb()
180 __cmpxchg((ptr), (unsigned long)(o), \
/arch/sparc/include/asm/
Dcmpxchg_64.h97 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
113 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
128 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_, \
/arch/metag/include/asm/
Dcmpxchg.h43 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
60 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/arch/sh/include/asm/
Dcmpxchg.h51 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
66 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/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), \
/arch/avr32/include/asm/
Dcmpxchg.h75 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
90 ((typeof(*(ptr)))__cmpxchg((ptr), (unsigned long)(old), \
/arch/parisc/include/asm/
Dcmpxchg.h62 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
79 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/arch/arm/include/asm/
Dcmpxchg.h138 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
198 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb()
224 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/arch/xtensa/include/asm/
Dcmpxchg.h56 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
68 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/arch/mips/include/asm/
Dcmpxchg.h200 #define __cmpxchg(ptr, old, new, pre_barrier, post_barrier) \ macro
229 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb())
230 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, , )
/arch/blackfin/include/asm/
Dcmpxchg.h49 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
69 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
/arch/m32r/include/asm/
Dcmpxchg.h178 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
193 ((__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)(o), \
/arch/s390/include/asm/
Dcmpxchg.h95 static inline unsigned long __cmpxchg(void *ptr, unsigned long old, in __cmpxchg() function
171 __cmpxchg((ptr), (unsigned long)(o), (unsigned long)(n), \
281 return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/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)))
/arch/powerpc/include/asm/
Dcmpxchg.h244 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function
279 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \