Lines Matching refs:rw_sem
15 struct rw_semaphore rw_sem; /* slowpath */ member
25 .rw_sem = __RWSEM_INITIALIZER(name.rw_sem), \
40 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 0, _RET_IP_); in percpu_down_read()
79 rwsem_acquire_read(&sem->rw_sem.dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock()
96 rwsem_release(&sem->rw_sem.dep_map, 1, _RET_IP_); in percpu_up_read()
113 #define percpu_rwsem_is_held(sem) lockdep_is_held(&(sem)->rw_sem)
116 lockdep_assert_held(&(sem)->rw_sem)
121 lock_release(&sem->rw_sem.dep_map, 1, ip); in percpu_rwsem_release()
124 atomic_long_set(&sem->rw_sem.owner, RWSEM_OWNER_UNKNOWN); in percpu_rwsem_release()
131 lock_acquire(&sem->rw_sem.dep_map, 0, 1, read, 1, NULL, ip); in percpu_rwsem_acquire()
134 atomic_long_set(&sem->rw_sem.owner, (long)current); in percpu_rwsem_acquire()