Lines Matching refs:RWSEM_FLAG_HANDOFF
119 #define RWSEM_FLAG_HANDOFF (1UL << 2) macro
128 RWSEM_FLAG_HANDOFF|RWSEM_FLAG_READFAIL)
393 atomic_long_andnot(RWSEM_FLAG_HANDOFF | RWSEM_FLAG_WAITERS, &sem->count); in rwsem_del_waiter()
466 if (!(oldcount & RWSEM_FLAG_HANDOFF)) { in rwsem_mark_wake()
467 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
534 if (oldcount & RWSEM_FLAG_HANDOFF) in rwsem_mark_wake()
535 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
541 if (oldcount & RWSEM_FLAG_HANDOFF) in rwsem_mark_wake()
542 adjustment -= RWSEM_FLAG_HANDOFF; in rwsem_mark_wake()
614 bool has_handoff = !!(count & RWSEM_FLAG_HANDOFF); in rwsem_try_write_lock()
638 new |= RWSEM_FLAG_HANDOFF; in rwsem_try_write_lock()
641 new &= ~RWSEM_FLAG_HANDOFF; in rwsem_try_write_lock()
653 if (new & RWSEM_FLAG_HANDOFF) { in rwsem_try_write_lock()
694 while (!(count & (RWSEM_LOCK_MASK|RWSEM_FLAG_HANDOFF))) { in rwsem_try_write_lock_unqueued()
1015 if (!(count & (RWSEM_WRITER_LOCKED | RWSEM_FLAG_HANDOFF))) { in rwsem_down_read_slowpath()