Lines Matching refs:RWSEM_FLAG_WAITERS
155 #define RWSEM_FLAG_WAITERS (1UL << 1) macro
164 #define RWSEM_READ_FAILED_MASK (RWSEM_WRITER_MASK|RWSEM_FLAG_WAITERS|\
519 adjustment -= RWSEM_FLAG_WAITERS; in rwsem_mark_wake()
588 new &= ~RWSEM_FLAG_WAITERS; in rwsem_try_write_lock()
1021 if ((atomic_long_read(&sem->count) & RWSEM_FLAG_WAITERS)) { in rwsem_down_read_slowpath()
1057 adjustment += RWSEM_FLAG_WAITERS; in rwsem_down_read_slowpath()
1078 (adjustment & RWSEM_FLAG_WAITERS))) in rwsem_down_read_slowpath()
1110 atomic_long_andnot(RWSEM_FLAG_WAITERS|RWSEM_FLAG_HANDOFF, in rwsem_down_read_slowpath()
1204 atomic_long_or(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
1284 atomic_long_andnot(RWSEM_FLAG_WAITERS, &sem->count); in rwsem_down_write_slowpath()
1436 if (unlikely((tmp & (RWSEM_LOCK_MASK|RWSEM_FLAG_WAITERS)) == in __up_read()
1437 RWSEM_FLAG_WAITERS)) { in __up_read()
1460 if (unlikely(tmp & RWSEM_FLAG_WAITERS)) in __up_write()
1482 if (tmp & RWSEM_FLAG_WAITERS) in __downgrade_write()