Lines Matching refs:atomic_long_read
71 #c, atomic_long_read(&(sem)->count), \
73 atomic_long_read(&(sem)->owner), (long)current, \
157 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
174 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
193 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
210 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
230 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable()
274 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
284 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags()
446 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
527 oldcount = atomic_long_read(&sem->count); in rwsem_mark_wake()
612 count = atomic_long_read(&sem->count); in rwsem_try_write_lock()
692 long count = atomic_long_read(&sem->count); in rwsem_try_write_lock_unqueued()
808 long count = atomic_long_read(&sem->count); in rwsem_rspin_threshold()
1008 if ((atomic_long_read(&sem->owner) & RWSEM_READER_OWNED) && in rwsem_down_read_slowpath()
1048 if (!(atomic_long_read(&sem->count) & RWSEM_WRITER_MASK)) { in rwsem_down_read_slowpath()
1132 rwsem_cond_wake_waiter(sem, atomic_long_read(&sem->count), in rwsem_down_write_slowpath()
1284 tmp = atomic_long_read(&sem->count); in __down_read_trylock()