Searched refs:RWSEM_WRITER_LOCKED (Results 1 – 2 of 2) sorted by relevance
117 #define RWSEM_WRITER_LOCKED (1UL << 0) macro125 #define RWSEM_WRITER_MASK RWSEM_WRITER_LOCKED267 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) { in rwsem_write_trylock()638 new |= RWSEM_WRITER_LOCKED; in rwsem_try_write_lock()694 count | RWSEM_WRITER_LOCKED)) { in rwsem_try_write_lock_unqueued()1007 (rcnt > 1) && !(count & RWSEM_WRITER_LOCKED)) in rwsem_down_read_slowpath()1013 if (!(count & (RWSEM_WRITER_LOCKED | RWSEM_FLAG_HANDOFF))) { in rwsem_down_read_slowpath()1372 tmp = atomic_long_fetch_add_release(-RWSEM_WRITER_LOCKED, &sem->count); in __up_write()1395 -RWSEM_WRITER_LOCKED+RWSEM_READER_BIAS, &sem->count); in __downgrade_write()
70 #define RWSEM_WRITER_LOCKED (1UL << 0) macro85 WARN_ON(!(atomic_long_read(&sem->count) & RWSEM_WRITER_LOCKED)); in rwsem_assert_held_write_nolockdep()