Lines Matching refs:state
762 enum owner_state state; in rwsem_spin_on_owner() local
769 state = rwsem_owner_state(owner, flags); in rwsem_spin_on_owner()
770 if (state != OWNER_WRITER) in rwsem_spin_on_owner()
771 return state; in rwsem_spin_on_owner()
785 state = rwsem_owner_state(new, new_flags); in rwsem_spin_on_owner()
800 state = OWNER_NONSPINNABLE; in rwsem_spin_on_owner()
807 return state; in rwsem_spin_on_owner()
1021 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) in rwsem_down_read_slowpath() argument
1108 set_current_state(state); in rwsem_down_read_slowpath()
1113 if (signal_pending_state(state, current)) { in rwsem_down_read_slowpath()
1145 rwsem_down_write_slowpath(struct rw_semaphore *sem, int state) in rwsem_down_write_slowpath() argument
1194 set_current_state(state); in rwsem_down_write_slowpath()
1205 if (signal_pending_state(state, current)) in rwsem_down_write_slowpath()
1229 set_current_state(state); in rwsem_down_write_slowpath()
1296 static __always_inline int __down_read_common(struct rw_semaphore *sem, int state) in __down_read_common() argument
1303 if (IS_ERR(rwsem_down_read_slowpath(sem, count, state))) { in __down_read_common()
1354 static inline int __down_write_common(struct rw_semaphore *sem, int state) in __down_write_common() argument
1357 if (IS_ERR(rwsem_down_write_slowpath(sem, state))) in __down_write_common()
1454 #define rwbase_set_and_save_current_state(state) \ argument
1455 set_current_state(state)
1460 #define rwbase_rtmutex_lock_state(rtm, state) \ argument
1461 __rt_mutex_lock(rtm, state)
1463 #define rwbase_rtmutex_slowlock_locked(rtm, state) \ argument
1464 __rt_mutex_slowlock_locked(rtm, NULL, state)
1472 #define rwbase_signal_pending_state(state, current) \ argument
1473 signal_pending_state(state, current)