/linux-2.6.39/arch/mips/include/asm/ |
D | cmpxchg.h | 72 #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/ |
D | system_mm.h | 146 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/ |
D | cmpxchg.h | 93 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/ |
D | system.h | 60 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/ |
D | atomic.h | 41 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/ |
D | system_64.h | 283 __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()
|
D | system_32.h | 250 __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/ |
D | cmpxchg_32.h | 133 #define __cmpxchg(ptr, old, new, size) \ macro 146 __cmpxchg((ptr), (old), (new), sizeof(*ptr)) 219 __ret = (__typeof__(*(ptr)))__cmpxchg((ptr), \
|
D | cmpxchg_64.h | 124 #define __cmpxchg(ptr, old, new, size) \ macro 134 __cmpxchg((ptr), (old), (new), sizeof(*ptr))
|
D | mc146818rtc.h | 51 if (__cmpxchg(&cmos_lock, 0, new, sizeof(cmos_lock)) == 0) in lock_cmos()
|
/linux-2.6.39/arch/xtensa/include/asm/ |
D | system.h | 75 __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/ |
D | system.h | 129 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/ |
D | system.h | 98 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/ |
D | system.h | 289 #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/ |
D | system.h | 77 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/ |
D | system.h | 377 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/ |
D | system.h | 240 __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/ |
D | atomic.h | 105 __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/ |
D | system.h | 463 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, in __cmpxchg() function 498 (__typeof__(*(ptr))) __cmpxchg((ptr), (unsigned long)_o_, \
|