Home
last modified time | relevance | path

Searched refs:__xchg (Results 1 – 22 of 22) sorted by relevance

/Linux-v4.19/arch/arc/include/asm/
Dcmpxchg.h112 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() function
134 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \
173 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() function
201 #define xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \
/Linux-v4.19/tools/memory-model/
Dlinux-kernel.def28 xchg(X,V) __xchg{mb}(X,V)
29 xchg_relaxed(X,V) __xchg{once}(X,V)
30 xchg_release(X,V) __xchg{release}(X,V)
31 xchg_acquire(X,V) __xchg{acquire}(X,V)
96 atomic_xchg(X,V) __xchg{mb}(X,V)
97 atomic_xchg_relaxed(X,V) __xchg{once}(X,V)
98 atomic_xchg_release(X,V) __xchg{release}(X,V)
99 atomic_xchg_acquire(X,V) __xchg{acquire}(X,V)
/Linux-v4.19/arch/alpha/include/asm/
Dcmpxchg.h9 #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-v4.19/arch/microblaze/include/asm/
Dcmpxchg.h9 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() function
38 ((__typeof__(*(ptr))) __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
/Linux-v4.19/arch/m68k/include/asm/
Dcmpxchg.h13 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 xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
/Linux-v4.19/arch/unicore32/include/asm/
Dcmpxchg.h19 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() function
45 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
/Linux-v4.19/arch/hexagon/include/asm/
Dcmpxchg.h36 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() function
59 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \
/Linux-v4.19/arch/c6x/include/asm/
Dcmpxchg.h19 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg() function
48 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
/Linux-v4.19/arch/h8300/include/asm/
Dcmpxchg.h8 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), \
14 static inline unsigned long __xchg(unsigned long x, in __xchg() function
/Linux-v4.19/arch/sh/include/asm/
Dcmpxchg.h25 #define __xchg(ptr, x, size) \ macro
49 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
/Linux-v4.19/arch/sparc/include/asm/
Dcmpxchg_32.h18 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, int size) in __xchg() function
28 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
Dcmpxchg_64.h55 #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
85 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() function
/Linux-v4.19/include/asm-generic/
Dcmpxchg.h26 unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() function
85 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr)))); \
/Linux-v4.19/arch/xtensa/include/asm/
Dcmpxchg.h139 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
150 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function
/Linux-v4.19/arch/parisc/include/asm/
Dcmpxchg.h25 __xchg(unsigned long x, __volatile__ void *ptr, int size) in __xchg() function
48 ((__typeof__(*(ptr)))__xchg((unsigned long)(x), (ptr), sizeof(*(ptr))))
/Linux-v4.19/arch/ia64/include/uapi/asm/
Dcmpxchg.h30 #define __xchg(x, ptr, size) \ macro
57 ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr))))
/Linux-v4.19/arch/openrisc/include/asm/
Dcmpxchg.h150 static inline unsigned long __xchg(volatile void *ptr, unsigned long with, in __xchg() function
166 (__typeof__(*(ptr))) __xchg((ptr), \
/Linux-v4.19/arch/arm/include/asm/
Dcmpxchg.h28 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-v4.19/arch/mips/include/asm/
Dcmpxchg.h76 static inline unsigned long __xchg(volatile void *ptr, unsigned long x, in __xchg() function
105 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
/Linux-v4.19/arch/arm64/include/asm/
Dcmpxchg.h77 static inline unsigned long __xchg##sfx(unsigned long x, \
108 __xchg##sfx((unsigned long)(x), (ptr), sizeof(*(ptr))); \
/Linux-v4.19/arch/riscv/include/asm/
Dcmpxchg.h125 #define __xchg(ptr, new, size) \ macro
154 (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \
Datomic.h269 return __xchg(&(v->counter), n, size); \