Lines Matching refs:val
88 int val = atomic_read(&lock->val); in pv_hybrid_queued_unfair_trylock() local
90 if (!(val & _Q_LOCKED_PENDING_MASK) && in pv_hybrid_queued_unfair_trylock()
95 if (!(val & _Q_TAIL_MASK) || (val & _Q_PENDING_MASK)) in pv_hybrid_queued_unfair_trylock()
128 atomic_or(_Q_PENDING_VAL, &lock->val); in set_pending()
133 int val = atomic_read(&lock->val); in trylock_clear_pending() local
138 if (val & _Q_LOCKED_MASK) in trylock_clear_pending()
144 old = val; in trylock_clear_pending()
145 new = (val & ~_Q_PENDING_MASK) | _Q_LOCKED_VAL; in trylock_clear_pending()
146 val = atomic_cmpxchg_acquire(&lock->val, old, new); in trylock_clear_pending()
148 if (val == old) in trylock_clear_pending()
485 return (u32)(atomic_read(&lock->val) | _Q_LOCKED_VAL); in pv_wait_head_or_lock()
500 (unsigned long)lock, atomic_read(&lock->val)); in __pv_queued_spin_unlock_slowpath()