Home
last modified time | relevance | path

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

/openbmc/linux/include/asm-generic/
H A Dqrwlock.h31 #define _QR_BIAS (1U << _QR_SHIFT) macro
50 cnts = (u32)atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_trylock()
53 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_trylock()
82 cnts = atomic_add_return_acquire(_QR_BIAS, &lock->cnts); in queued_read_lock()
113 (void)atomic_sub_return_release(_QR_BIAS, &lock->cnts); in queued_read_unlock()
/openbmc/linux/kernel/locking/
H A Dqrwlock.c36 atomic_sub(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath()
44 atomic_add(_QR_BIAS, &lock->cnts); in queued_read_lock_slowpath()