Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/kernel/locking/
H A Dqrwlock.c33 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath()
49 atomic_cond_read_acquire(&lock->cnts, !(VAL & _QW_LOCKED)); in queued_read_lock_slowpath()
71 (atomic_cmpxchg_acquire(&lock->cnts, 0, _QW_LOCKED) == 0)) in queued_write_lock_slowpath()
80 } while (!atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED)); in queued_write_lock_slowpath()
/OK3568_Linux_fs/kernel/include/asm-generic/
H A Dqrwlock.h22 #define _QW_LOCKED 0x0ff /* A writer holds the lock */ macro
66 _QW_LOCKED)); in queued_write_trylock()
92 if (likely(atomic_try_cmpxchg_acquire(&lock->cnts, &cnts, _QW_LOCKED))) in queued_write_lock()