Lines Matching refs:atomic_long_read
71 #c, atomic_long_read(&(sem)->count), \
73 atomic_long_read(&(sem)->owner), (long)current, \
152 return atomic_long_read(&sem->owner) & flags; in rwsem_test_oflags()
169 (atomic_long_read(&sem->owner) & RWSEM_NONSPINNABLE); in __rwsem_set_reader_owned()
188 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned()
205 unsigned long val = atomic_long_read(&sem->owner); in rwsem_clear_reader_owned()
225 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_set_nonspinnable()
269 (atomic_long_read(&sem->owner) & ~RWSEM_OWNER_FLAGS_MASK); in rwsem_owner()
279 unsigned long owner = atomic_long_read(&sem->owner); in rwsem_owner_flags()
416 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake()
503 if (woken && (atomic_long_read(&sem->count) & RWSEM_FLAG_HANDOFF)) in rwsem_mark_wake()
546 count = atomic_long_read(&sem->count); in rwsem_try_write_lock()
586 long count = atomic_long_read(&sem->count); in rwsem_try_write_lock_unqueued()
726 long count = atomic_long_read(&sem->count); in rwsem_rspin_threshold()
906 if ((atomic_long_read(&sem->owner) & RWSEM_READER_OWNED) && in rwsem_down_read_slowpath()
945 if (!(atomic_long_read(&sem->count) & in rwsem_down_read_slowpath()
1048 count = atomic_long_read(&sem->count); in rwsem_down_write_slowpath()
1121 count = atomic_long_read(&sem->count); in rwsem_down_write_slowpath()