Searched refs:_Q_LOCKED_VAL (Results 1 – 6 of 6) sorted by relevance
/linux/kernel/locking/ |
A D | qspinlock_paravirt.h | 91 (cmpxchg_acquire(&lock->locked, 0, _Q_LOCKED_VAL) == 0)) { in pv_hybrid_queued_unfair_trylock() 123 _Q_LOCKED_VAL) == _Q_PENDING_VAL); in trylock_clear_pending() 145 new = (val & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL; in trylock_clear_pending() 462 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in pv_wait_head_or_lock() 485 return (u32)(atomic_read(&lock->val) | _Q_LOCKED_VAL); in pv_wait_head_or_lock() 556 locked = cmpxchg_release(&lock->locked, _Q_LOCKED_VAL, 0); in __pv_queued_spin_unlock() 557 if (likely(locked == _Q_LOCKED_VAL)) in __pv_queued_spin_unlock()
|
A D | qspinlock.c | 163 WRITE_ONCE(lock->locked_pending, _Q_LOCKED_VAL); in clear_pending_set_locked() 207 atomic_add(-_Q_PENDING_VAL + _Q_LOCKED_VAL, &lock->val); in clear_pending_set_locked() 263 WRITE_ONCE(lock->locked, _Q_LOCKED_VAL); in set_locked() 536 if (atomic_try_cmpxchg_relaxed(&lock->val, &val, _Q_LOCKED_VAL)) in queued_spin_lock_slowpath()
|
/linux/include/asm-generic/ |
A D | qspinlock.h | 68 return likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL)); in queued_spin_trylock() 82 if (likely(atomic_try_cmpxchg_acquire(&lock->val, &val, _Q_LOCKED_VAL))) in queued_spin_lock()
|
A D | qspinlock_types.h | 92 #define _Q_LOCKED_VAL (1U << _Q_LOCKED_OFFSET) macro
|
/linux/arch/powerpc/include/asm/ |
A D | qspinlock.h | 40 if (likely(arch_atomic_try_cmpxchg_lock(&lock->val, &val, _Q_LOCKED_VAL))) in queued_spin_lock()
|
/linux/arch/x86/include/asm/ |
A D | qspinlock.h | 101 } while (atomic_cmpxchg(&lock->val, 0, _Q_LOCKED_VAL) != 0); in virt_spin_lock()
|
Completed in 7 milliseconds