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

/linux-master/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);
76 return __xchg_asm("amswap_db.d", (volatile u64 *)ptr, (u64)x);
H A Dpercpu.h148 return __xchg_asm("amswap.w", (volatile u32 *)ptr, (u32)val);
151 return __xchg_asm("amswap.d", (volatile u64 *)ptr, (u64)val);
/linux-master/arch/mips/include/asm/
H A Dcmpxchg.h34 #define __xchg_asm(ld, st, m, val) \ macro
45 "1: " ld " %0, %2 # __xchg_asm \n" \
79 return __xchg_asm("ll", "sc", (volatile u32 *)ptr, x);
85 return __xchg_asm("lld", "scd", (volatile u64 *)ptr, x);
97 * In the Loongson3 workaround case __xchg_asm() already \

Completed in 103 milliseconds