Lines Matching refs:state
748 enum owner_state state; in rwsem_spin_on_owner() local
753 state = rwsem_owner_state(owner, flags); in rwsem_spin_on_owner()
754 if (state != OWNER_WRITER) in rwsem_spin_on_owner()
755 return state; in rwsem_spin_on_owner()
766 state = rwsem_owner_state(new, new_flags); in rwsem_spin_on_owner()
781 state = OWNER_NONSPINNABLE; in rwsem_spin_on_owner()
788 return state; in rwsem_spin_on_owner()
993 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) in rwsem_down_read_slowpath() argument
1067 set_current_state(state); in rwsem_down_read_slowpath()
1069 if (state == TASK_UNINTERRUPTIBLE) in rwsem_down_read_slowpath()
1078 if (signal_pending_state(state, current)) { in rwsem_down_read_slowpath()
1088 set_current_state(state); in rwsem_down_read_slowpath()
1091 if (state == TASK_UNINTERRUPTIBLE) in rwsem_down_read_slowpath()
1111 rwsem_down_write_slowpath(struct rw_semaphore *sem, int state) in rwsem_down_write_slowpath() argument
1152 set_current_state(state); in rwsem_down_write_slowpath()
1155 if (state == TASK_UNINTERRUPTIBLE) in rwsem_down_write_slowpath()
1166 if (signal_pending_state(state, current)) in rwsem_down_write_slowpath()
1187 set_current_state(state); in rwsem_down_write_slowpath()
1192 if (state == TASK_UNINTERRUPTIBLE) in rwsem_down_write_slowpath()
1254 static __always_inline int __down_read_common(struct rw_semaphore *sem, int state) in __down_read_common() argument
1261 if (IS_ERR(rwsem_down_read_slowpath(sem, count, state))) { in __down_read_common()
1311 static __always_inline int __down_write_common(struct rw_semaphore *sem, int state) in __down_write_common() argument
1317 if (IS_ERR(rwsem_down_write_slowpath(sem, state))) in __down_write_common()
1420 #define rwbase_set_and_save_current_state(state) \ argument
1421 set_current_state(state)
1426 #define rwbase_rtmutex_lock_state(rtm, state) \ argument
1427 __rt_mutex_lock(rtm, state)
1429 #define rwbase_rtmutex_slowlock_locked(rtm, state, wq) \ argument
1430 __rt_mutex_slowlock_locked(rtm, NULL, state, wq)
1438 #define rwbase_signal_pending_state(state, current) \ argument
1439 signal_pending_state(state, current)