Home
last modified time | relevance | path

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

/linux-4.1.27/include/asm-generic/
Dqrwlock.h32 #define _QW_WMASK 0xff /* Writer mask */ macro
48 return !(atomic_read(&lock->cnts) & _QW_WMASK); in queue_read_can_lock()
70 if (likely(!(cnts & _QW_WMASK))) { in queue_read_trylock()
72 if (likely(!(cnts & _QW_WMASK))) in queue_read_trylock()
104 if (likely(!(cnts & _QW_WMASK))) in queue_read_lock()
/linux-4.1.27/kernel/locking/
Dqrwlock.c36 while ((cnts & _QW_WMASK) == _QW_LOCKED) { in rspin_until_writer_unlock()
76 while (atomic_read(&lock->cnts) & _QW_WMASK) in queue_read_lock_slowpath()
111 if (!(cnts & _QW_WMASK) && in queue_write_lock_slowpath()