Home
last modified time | relevance | path

Searched refs:RWSEM_WRITER_LOCKED (Results 1 – 1 of 1) sorted by relevance

/linux/kernel/locking/
A Drwsem.c116 #define RWSEM_WRITER_LOCKED (1UL << 0) macro
124 #define RWSEM_WRITER_MASK RWSEM_WRITER_LOCKED
254 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) { in rwsem_write_trylock()
597 new |= RWSEM_WRITER_LOCKED; in rwsem_try_write_lock()
652 count | RWSEM_WRITER_LOCKED)) { in rwsem_try_write_lock_unqueued()
955 (rcnt > 1) && !(count & RWSEM_WRITER_LOCKED)) in rwsem_down_read_slowpath()
961 if (!(count & (RWSEM_WRITER_LOCKED | RWSEM_FLAG_HANDOFF))) { in rwsem_down_read_slowpath()
1327 tmp = atomic_long_fetch_add_release(-RWSEM_WRITER_LOCKED, &sem->count); in __up_write()
1348 -RWSEM_WRITER_LOCKED+RWSEM_READER_BIAS, &sem->count); in __downgrade_write()

Completed in 7 milliseconds