Home
last modified time | relevance | path

Searched refs:_QR_BIAS (Results 1 – 2 of 2) sorted by relevance

/linux-4.4.14/include/asm-generic/
Dqrwlock.h34 #define _QR_BIAS (1U << _QR_SHIFT) macro
71 cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_trylock()
74 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_trylock()
103 cnts = atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_lock()
133 (void)atomic_sub_return_release(_QR_BIAS, &lock->cnts); in queued_read_unlock()
/linux-4.4.14/kernel/locking/
Dqrwlock.c84 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath()
96 cnts = atomic_add_return_acquire(_QR_BIAS, &lock->cnts) - _QR_BIAS; in queued_read_lock_slowpath()