Home
last modified time | relevance | path

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

/linux-2.6.39/arch/mips/include/asm/
Dcmpxchg.h72 #define __cmpxchg(ptr, old, new, pre_barrier, post_barrier) \ macro
101 #define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(), smp_llsc_mb())
102 #define cmpxchg_local(ptr, old, new) __cmpxchg(ptr, old, new, , )
/linux-2.6.39/arch/m68k/include/asm/
Dsystem_mm.h146 static inline unsigned long __cmpxchg(volatile void *p, unsigned long old, in __cmpxchg() function
170 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
173 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
/linux-2.6.39/arch/s390/include/asm/
Dcmpxchg.h93 static inline unsigned long __cmpxchg(void *ptr, unsigned long old, in __cmpxchg() function
164 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
207 return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/linux-2.6.39/arch/score/include/asm/
Dsystem.h60 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
75 ((__typeof__(*(ptr))) __cmpxchg((unsigned long *)(ptr), \
/linux-2.6.39/arch/mn10300/include/asm/
Datomic.h41 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
92 static inline unsigned long __cmpxchg(volatile unsigned long *m, in __cmpxchg() function
113 ((__typeof__(*(ptr))) __cmpxchg((unsigned long *)(ptr), \
/linux-2.6.39/arch/sparc/include/asm/
Dsystem_64.h283 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
299 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
314 case 8: return __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
Dsystem_32.h250 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
266 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux-2.6.39/arch/x86/include/asm/
Dcmpxchg_32.h133 #define __cmpxchg(ptr, old, new, size) \ macro
146 __cmpxchg((ptr), (old), (new), sizeof(*ptr))
219 __ret = (__typeof__(*(ptr)))__cmpxchg((ptr), \
Dcmpxchg_64.h124 #define __cmpxchg(ptr, old, new, size) \ macro
134 __cmpxchg((ptr), (old), (new), sizeof(*ptr))
Dmc146818rtc.h51 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
/linux-2.6.39/arch/xtensa/include/asm/
Dsystem.h75 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
87 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux-2.6.39/arch/avr32/include/asm/
Dsystem.h129 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
144 ((typeof(*(ptr)))__cmpxchg((ptr), (unsigned long)(old), \
/linux-2.6.39/arch/sh/include/asm/
Dsystem.h98 static inline unsigned long __cmpxchg(volatile void * ptr, unsigned long old, in __cmpxchg() function
113 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux-2.6.39/arch/alpha/include/asm/
Dsystem.h289 #define ____cmpxchg(type, args...) __cmpxchg ## type ## _local(args)
321 #define ____cmpxchg(type, args...) __cmpxchg ##type(args)
335 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux-2.6.39/arch/blackfin/include/asm/
Dsystem.h77 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
97 ((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o), \
/linux-2.6.39/arch/arm/include/asm/
Dsystem.h377 static inline unsigned long __cmpxchg(volatile void *ptr, unsigned long old, in __cmpxchg() function
435 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_mb()
461 ret = __cmpxchg(ptr, old, new, size); in __cmpxchg_local()
/linux-2.6.39/arch/m32r/include/asm/
Dsystem.h240 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) in __cmpxchg() function
255 ((__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)(o), \
/linux-2.6.39/arch/parisc/include/asm/
Datomic.h105 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size) in __cmpxchg() function
121 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
/linux-2.6.39/arch/powerpc/include/asm/
Dsystem.h463 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function
498 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \