Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/memory-model/
Dlinux-kernel.def30 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)
/kernel/linux/linux-5.10/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))); \
/kernel/linux/linux-5.10/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))))
/kernel/linux/linux-5.10/arch/hexagon/include/asm/
Dcmpxchg.h22 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, in __xchg() function
45 #define xchg(ptr, v) ((__typeof__(*(ptr)))__xchg((unsigned long)(v), (ptr), \
/kernel/linux/linux-5.10/arch/c6x/include/asm/
Dcmpxchg.h16 static inline unsigned int __xchg(unsigned int x, volatile void *ptr, int size) in __xchg() function
45 ((__typeof__(*(ptr)))__xchg((unsigned int)(x), (void *) (ptr), \
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/arch/sh/include/asm/
Dcmpxchg.h25 #define __xchg(ptr, x, size) \ macro
49 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
/kernel/linux/linux-5.10/arch/csky/include/asm/
Dcmpxchg.h11 #define __xchg(new, ptr, size) \ macro
36 #define xchg(ptr, x) (__xchg((x), (ptr), sizeof(*(ptr))))
/kernel/linux/linux-5.10/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.h58 __xchg((unsigned long)(x), (ptr), sizeof(*(ptr))); \
90 static inline unsigned long __xchg(unsigned long x, __volatile__ void * ptr, in __xchg() function
/kernel/linux/linux-5.10/arch/arc/include/asm/
Dcmpxchg.h84 static inline unsigned long __xchg(unsigned long val, volatile void *ptr, in __xchg() function
106 #define _xchg(ptr, with) ((typeof(*(ptr)))__xchg((unsigned long)(with), (ptr), \
/kernel/linux/linux-5.10/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)))); \
/kernel/linux/linux-5.10/arch/parisc/include/asm/
Dcmpxchg.h25 __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() function
52 __xchg((unsigned long)_x_, (ptr), sizeof(*(ptr))); \
/kernel/linux/linux-5.10/arch/ia64/include/uapi/asm/
Dcmpxchg.h30 #define __xchg(x, ptr, size) \ macro
57 ((__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr))))
/kernel/linux/linux-5.10/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), \
/kernel/linux/linux-5.10/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), \
/kernel/linux/linux-5.10/arch/xtensa/include/asm/
Dcmpxchg.h173 ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr))))
206 __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function
/kernel/linux/linux-5.10/arch/mips/include/asm/
Dcmpxchg.h72 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() function
106 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
/kernel/linux/linux-5.10/arch/riscv/include/asm/
Dcmpxchg.h117 #define __xchg(ptr, new, size) \ macro
146 (__typeof__(*(ptr))) __xchg((ptr), _x_, sizeof(*(ptr))); \
Datomic.h264 return __xchg(&(v->counter), n, size); \
/kernel/linux/linux-5.10/arch/arm64/include/asm/
Dcmpxchg.h65 static __always_inline unsigned long __xchg##sfx(unsigned long x, \
96 __xchg##sfx((unsigned long)(x), (ptr), sizeof(*(ptr))); \