Home
last modified time | relevance | path

Searched refs:__xchg_asm (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/arch/loongarch/include/asm/
H A Dcmpxchg.h12 #define __xchg_asm(amswap_db, m, val) \ macro
73 return __xchg_asm("amswap_db.w", (volatile u32 *)ptr, (u32)x); in __arch_xchg()
76 return __xchg_asm("amswap_db.d", (volatile u64 *)ptr, (u64)x); in __arch_xchg()
H A Dpercpu.h149 return __xchg_asm("amswap.w", (volatile u32 *)ptr, (u32)val); in __percpu_xchg()
152 return __xchg_asm("amswap.d", (volatile u64 *)ptr, (u64)val); in __percpu_xchg()
/openbmc/linux/arch/mips/include/asm/
H A Dcmpxchg.h34 #define __xchg_asm(ld, st, m, val) \ macro
79 return __xchg_asm("ll", "sc", (volatile u32 *)ptr, x); in __arch_xchg()
85 return __xchg_asm("lld", "scd", (volatile u64 *)ptr, x); in __arch_xchg()