Lines Matching refs:RWSEM_WAITING_BIAS
150 if (unlikely(oldcount < RWSEM_WAITING_BIAS)) { in __rwsem_do_wake()
179 adjustment -= RWSEM_WAITING_BIAS; in __rwsem_do_wake()
227 adjustment += RWSEM_WAITING_BIAS; in rwsem_down_read_failed()
238 if (count == RWSEM_WAITING_BIAS || in rwsem_down_read_failed()
239 (count > RWSEM_WAITING_BIAS && in rwsem_down_read_failed()
264 if (count == RWSEM_WAITING_BIAS && in rwsem_try_write_lock()
265 cmpxchg(&sem->count, RWSEM_WAITING_BIAS, in rwsem_try_write_lock()
266 RWSEM_ACTIVE_WRITE_BIAS) == RWSEM_WAITING_BIAS) { in rwsem_try_write_lock()
268 rwsem_atomic_update(RWSEM_WAITING_BIAS, sem); in rwsem_try_write_lock()
285 if (!(count == 0 || count == RWSEM_WAITING_BIAS)) in rwsem_try_write_lock_unqueued()
361 return (count == 0 || count == RWSEM_WAITING_BIAS); in rwsem_spin_on_owner()
460 if (count > RWSEM_WAITING_BIAS) in rwsem_down_write_failed()
464 count = rwsem_atomic_update(RWSEM_WAITING_BIAS, sem); in rwsem_down_write_failed()