Lines Matching refs:RWSEM_FLAG_WAITERS
118 #define RWSEM_FLAG_WAITERS (1UL << 1) macro
127 #define RWSEM_READ_FAILED_MASK (RWSEM_WRITER_MASK|RWSEM_FLAG_WAITERS|\
496 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
565 new &= ~RWSEM_FLAG_WAITERS; in rwsem_try_write_lock()
921 if ((rcnt == 1) && (count & RWSEM_FLAG_WAITERS)) { in rwsem_down_read_slowpath()
954 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
972 (adjustment & RWSEM_FLAG_WAITERS))) in rwsem_down_read_slowpath()
1004 atomic_long_andnot(RWSEM_FLAG_WAITERS|RWSEM_FLAG_HANDOFF, in rwsem_down_read_slowpath()
1076 atomic_long_or(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
1155 atomic_long_andnot(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
1298 if (unlikely((tmp & (RWSEM_LOCK_MASK|RWSEM_FLAG_WAITERS)) == in __up_read()
1299 RWSEM_FLAG_WAITERS)) { in __up_read()
1322 if (unlikely(tmp & RWSEM_FLAG_WAITERS)) in __up_write()
1344 if (tmp & RWSEM_FLAG_WAITERS) in __downgrade_write()