Home
last modified time | relevance | path

Searched refs:LOCK_PREFIX (Results 1 – 11 of 11) sorted by relevance

/linux/arch/x86/include/asm/
H A Datomic.h33 asm volatile(LOCK_PREFIX "addl %1,%0" in arch_atomic_add()
40 asm volatile(LOCK_PREFIX "subl %1,%0" in arch_atomic_sub()
47 return GEN_BINARY_RMWcc(LOCK_PREFIX "subl", v->counter, e, "er", i); in arch_atomic_sub_and_test()
53 asm volatile(LOCK_PREFIX "incl %0" in arch_atomic_inc()
60 asm volatile(LOCK_PREFIX "decl %0" in arch_atomic_dec()
67 return GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, e); in arch_atomic_dec_and_test()
73 return GEN_UNARY_RMWcc(LOCK_PREFIX "incl", v->counter, e); in arch_atomic_inc_and_test()
79 return GEN_BINARY_RMWcc(LOCK_PREFIX "addl", v->counter, s, "er", i); in arch_atomic_add_negative()
119 asm volatile(LOCK_PREFIX "andl %1,%0" in arch_atomic_and()
137 asm volatile(LOCK_PREFIX "orl %1,%0" in arch_atomic_or()
[all …]
H A Datomic64_64.h25 asm volatile(LOCK_PREFIX "addq %1,%0" in arch_atomic64_add()
32 asm volatile(LOCK_PREFIX "subq %1,%0" in arch_atomic64_sub()
39 return GEN_BINARY_RMWcc(LOCK_PREFIX "subq", v->counter, e, "er", i); in arch_atomic64_sub_and_test()
45 asm volatile(LOCK_PREFIX "incq %0" in arch_atomic64_inc()
53 asm volatile(LOCK_PREFIX "decq %0" in arch_atomic64_dec()
61 return GEN_UNARY_RMWcc(LOCK_PREFIX "decq", v->counter, e); in arch_atomic64_dec_and_test()
67 return GEN_UNARY_RMWcc(LOCK_PREFIX "incq", v->counter, e); in arch_atomic64_inc_and_test()
73 return GEN_BINARY_RMWcc(LOCK_PREFIX "addq", v->counter, s, "er", i); in arch_atomic64_add_negative()
113 asm volatile(LOCK_PREFIX "andq %1,%0" in arch_atomic64_and()
131 asm volatile(LOCK_PREFIX "orq %1,%0" in arch_atomic64_or()
[all …]
H A Dfutex.h35 "3:\t" LOCK_PREFIX "cmpxchgl %3, %2\n" \
61 unsafe_atomic_op1(LOCK_PREFIX "xaddl %0, %2", oval, in arch_futex_atomic_op_inuser()
94 "1:\t" LOCK_PREFIX "cmpxchgl %3, %2\n" in futex_atomic_cmpxchg_inatomic()
H A Dcmpxchg.h134 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX)
222 __raw_try_cmpxchg((ptr), (pold), (new), (size), LOCK_PREFIX)
246 #define xadd(ptr, inc) __xadd((ptr), (inc), LOCK_PREFIX)
H A Dcmpxchg_64.h52 return __arch_cmpxchg128(ptr, old, new, LOCK_PREFIX); in arch_cmpxchg128()
84 return __arch_try_cmpxchg128(ptr, oldp, new, LOCK_PREFIX); in arch_try_cmpxchg128()
H A Dqspinlock_paravirt.h45 LOCK_PREFIX "cmpxchg %dl,(%rdi)\n\t" \
H A Dqspinlock.h23 val = GEN_BINARY_RMWcc(LOCK_PREFIX "btsl", lock->val.counter, c, in queued_fetch_set_pending_acquire()
/linux/tools/arch/x86/include/asm/
H A Datomic.h9 #define LOCK_PREFIX "\n\tlock; " macro
52 asm volatile(LOCK_PREFIX "incl %0" in atomic_inc()
66 GEN_UNARY_RMWcc(LOCK_PREFIX "decl", v->counter, "%0", "e"); in atomic_dec_and_test()
76 GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, "Ir", nr, "%0", "c"); in test_and_set_bit()
81 GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(btc), *addr, "Ir", nr, "%0", "c"); in test_and_clear_bit()
H A Dcmpxchg.h84 __raw_cmpxchg((ptr), (old), (new), (size), LOCK_PREFIX)
/linux/arch/x86/lib/
H A Datomic64_cx8_32.S15 LOCK_PREFIX
41 LOCK_PREFIX
65 LOCK_PREFIX
93 LOCK_PREFIX
118 LOCK_PREFIX
148 LOCK_PREFIX
177 LOCK_PREFIX
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dkvm_util_arch.h45 __asm__ __volatile__(KVM_FEP LOCK_PREFIX "cmpxchg %[new], %[ptr]" \