/linux/tools/memory-model/ |
A D | linux-kernel.def | 30 xchg(X,V) __xchg{mb}(X,V) 31 xchg_relaxed(X,V) __xchg{once}(X,V) 32 xchg_release(X,V) __xchg{release}(X,V) 33 xchg_acquire(X,V) __xchg{acquire}(X,V) 104 atomic_xchg(X,V) __xchg{mb}(X,V) 105 atomic_xchg_relaxed(X,V) __xchg{once}(X,V) 106 atomic_xchg_release(X,V) __xchg{release}(X,V) 107 atomic_xchg_acquire(X,V) __xchg{acquire}(X,V)
|
/linux/arch/alpha/include/asm/ |
A D | cmpxchg.h | 9 #define ____xchg(type, args...) __xchg ## type ## _local(args) 37 #define ____xchg(type, args...) __xchg ##type(args) 51 __xchg((ptr), (unsigned long)_x_, sizeof(*(ptr))); \
|
/linux/arch/m68k/include/asm/ |
A D | cmpxchg.h | 13 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function 44 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function 79 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));})
|
/linux/arch/hexagon/include/asm/ |
A D | cmpxchg.h | 22 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() function 45 #define arch_xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \
|
/linux/arch/sh/include/asm/ |
A D | cmpxchg.h | 25 #define __xchg(ptr, x, size) \ macro 49 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
|
/linux/arch/sparc/include/asm/ |
A D | cmpxchg_32.h | 18 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg() function 28 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));})
|
A D | cmpxchg_64.h | 58 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))); \ 90 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() function
|
/linux/arch/arc/include/asm/ |
A D | cmpxchg.h | 88 #define __xchg(ptr, val) \ macro 105 _val_ = __xchg(_p_, _val_); \
|
/linux/arch/ia64/include/uapi/asm/ |
A D | cmpxchg.h | 30 #define __xchg(x, ptr, size) \ macro 58 ({(__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)));})
|
/linux/arch/parisc/include/asm/ |
A D | cmpxchg.h | 25 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() function 52 __xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \
|
/linux/arch/openrisc/include/asm/ |
A D | cmpxchg.h | 150 static inline unsigned long __xchg(volatile void *ptr, unsigned long with, in __xchg() function 166 (__typeof__(*(ptr))) __xchg((ptr), \
|
/linux/arch/s390/include/asm/ |
A D | cmpxchg.h | 17 static __always_inline unsigned long __xchg(unsigned long x, in __xchg() function 80 __xchg((unsigned long)(x), (unsigned long)(ptr), \
|
/linux/arch/arm/include/asm/ |
A D | cmpxchg.h | 28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() function 118 (__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), \
|
/linux/arch/xtensa/include/asm/ |
A D | cmpxchg.h | 173 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) 206 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function
|
/linux/arch/mips/include/asm/ |
A D | cmpxchg.h | 72 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() function 106 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
|
/linux/arch/ia64/include/asm/ |
A D | cmpxchg.h | 8 ({(__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)));})
|
/linux/arch/riscv/include/asm/ |
A D | cmpxchg.h | 117 #define __xchg(ptr, new, size) \ macro 146 (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \
|
A D | atomic.h | 264 return __xchg(&(v->counter), n, size); \
|
/linux/arch/arm64/include/asm/ |
A D | cmpxchg.h | 65 static __always_inline unsigned long __xchg##sfx(unsigned long x, \ 96 __xchg##sfx((unsigned long)(x), (ptr), sizeof(*(ptr))); \
|