Home
last modified time | relevance | path

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

/xen/xen/common/
A Drwlock.c14 while ( (cnts & _QW_WMASK) == _QW_LOCKED ) in rspin_until_writer_unlock()
47 while ( atomic_read(&lock->cnts) & _QW_WMASK ) in queue_read_lock_slowpath()
82 if ( !(cnts & _QW_WMASK) && in queue_write_lock_slowpath()
/xen/xen/include/xen/
A Drwlock.h30 #define _QW_WMASK (3U << _QW_SHIFT) /* Writer mask */ macro
40 return (cnts & _QW_WMASK) == _QW_LOCKED && in _is_write_locked_by_me()
46 return !(cnts & _QW_WMASK) || _is_write_locked_by_me(cnts); in _can_read_lock()
219 atomic_and(~(_QW_CPUMASK | _QW_WMASK), &lock->cnts); in _write_unlock()
237 return (atomic_read(&lock->cnts) & _QW_WMASK) == _QW_LOCKED; in _rw_is_write_locked()

Completed in 5 milliseconds