Searched refs:cnts (Results 1 – 1 of 1) sorted by relevance
/kernel/locking/ |
D | qrwlock.c | 33 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath() 36 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath() 44 atomic_add(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath() 51 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath() 68 int cnts; in queued_write_lock_slowpath() local 76 if (!(cnts = atomic_read(&lock->cnts)) && in queued_write_lock_slowpath() 77 atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)) in queued_write_lock_slowpath() 81 atomic_or(_QW_WAITING, &lock->cnts); in queued_write_lock_slowpath() 85 cnts = atomic_cond_read_relaxed(&lock->cnts, VAL == _QW_WAITING); in queued_write_lock_slowpath() 86 } while (!atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)); in queued_write_lock_slowpath()
|