Searched refs:RWSEM_UNLOCKED_VALUE (Results 1 – 2 of 2) sorted by relevance
69 #define RWSEM_UNLOCKED_VALUE 0UL macro 71 #define __RWSEM_COUNT_INIT(name) .count = ATOMIC_LONG_INIT(RWSEM_UNLOCKED_VALUE)75 return atomic_long_read(&sem->count) != RWSEM_UNLOCKED_VALUE; in rwsem_is_locked() 80 WARN_ON(atomic_long_read(&sem->count) == RWSEM_UNLOCKED_VALUE); in rwsem_assert_held_nolockdep()
266 long tmp = RWSEM_UNLOCKED_VALUE; in rwsem_write_trylock() 322 atomic_long_set(&sem->count, RWSEM_UNLOCKED_VALUE); in __init_rwsem()