Home
last modified time | relevance | path

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

/linux-6.1.9/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)
/linux-6.1.9/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-6.1.9/arch/m68k/include/asm/
Dcmpxchg.h12 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function
43 static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) in __xchg() function
78 #define arch_xchg(ptr,x) ({(__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)));})
/linux-6.1.9/arch/hexagon/include/asm/
Dcmpxchg.h22 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-6.1.9/arch/sh/include/asm/
Dcmpxchg.h25 #define __xchg(ptr, x, size) \ macro
49 ((__typeof__(*(ptr)))__xchg((ptr),(unsigned long)(x), sizeof(*(ptr))))
/linux-6.1.9/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 arch_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
/linux-6.1.9/arch/arc/include/asm/
Dcmpxchg.h88 #define __xchg(ptr, val) \ macro
105 _val_ = __xchg(_p_, _val_); \
/linux-6.1.9/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))); \
/linux-6.1.9/arch/ia64/include/uapi/asm/
Dcmpxchg.h30 #define __xchg(x, ptr, size) \ macro
58 ({(__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)));})
/linux-6.1.9/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-6.1.9/arch/s390/include/asm/
Dcmpxchg.h17 static __always_inline unsigned long __xchg(unsigned long x, in __xchg() function
80 __xchg((unsigned long)(x), (unsigned long)(ptr), \
/linux-6.1.9/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-6.1.9/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
/linux-6.1.9/arch/loongarch/include/asm/
Dcmpxchg.h65 __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() function
90 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
/linux-6.1.9/arch/mips/include/asm/
Dcmpxchg.h71 unsigned long __xchg(volatile void *ptr, unsigned long x, int size) in __xchg() function
105 __xchg((ptr), (unsigned long)(x), sizeof(*(ptr))); \
/linux-6.1.9/arch/ia64/include/asm/
Dcmpxchg.h8 ({(__typeof__(*(ptr))) __xchg((unsigned long) (x), (ptr), sizeof(*(ptr)));})
/linux-6.1.9/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); \
/linux-6.1.9/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))); \