Lines Matching refs:cur_state
114 unsigned long cur_state = mhi_cntrl->pm_state; in mhi_tryset_pm_state() local
115 int index = find_last_bit(&cur_state, 32); in mhi_tryset_pm_state()
118 return cur_state; in mhi_tryset_pm_state()
120 if (unlikely(dev_state_transitions[index].from_state != cur_state)) in mhi_tryset_pm_state()
121 return cur_state; in mhi_tryset_pm_state()
124 return cur_state; in mhi_tryset_pm_state()
163 enum mhi_pm_state cur_state; in mhi_ready_state_transition() local
191 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_ready_state_transition()
195 if (cur_state != MHI_PM_POR) { in mhi_ready_state_transition()
198 to_mhi_pm_state_str(cur_state)); in mhi_ready_state_transition()
249 enum mhi_pm_state cur_state; in mhi_pm_m0_transition() local
256 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_M0); in mhi_pm_m0_transition()
258 if (unlikely(cur_state != MHI_PM_M0)) { in mhi_pm_m0_transition()
458 enum mhi_pm_state cur_state; in mhi_pm_disable_transition() local
552 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_DISABLE); in mhi_pm_disable_transition()
554 if (unlikely(cur_state != MHI_PM_DISABLE)) in mhi_pm_disable_transition()
556 to_mhi_pm_state_str(cur_state), in mhi_pm_disable_transition()
569 enum mhi_pm_state cur_state, prev_state; in mhi_pm_sys_error_transition() local
588 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_SYS_ERR_PROCESS); in mhi_pm_sys_error_transition()
591 if (cur_state != MHI_PM_SYS_ERR_PROCESS) { in mhi_pm_sys_error_transition()
593 to_mhi_pm_state_str(cur_state), in mhi_pm_sys_error_transition()
686 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_POR); in mhi_pm_sys_error_transition()
688 if (cur_state != MHI_PM_POR) { in mhi_pm_sys_error_transition()
691 to_mhi_pm_state_str(cur_state)); in mhi_pm_sys_error_transition()
900 enum mhi_pm_state cur_state; in __mhi_pm_resume() local
929 cur_state = mhi_tryset_pm_state(mhi_cntrl, MHI_PM_M3_EXIT); in __mhi_pm_resume()
930 if (cur_state != MHI_PM_M3_EXIT) { in __mhi_pm_resume()
1154 enum mhi_pm_state cur_state, transition_state; in mhi_power_down() local
1159 cur_state = mhi_cntrl->pm_state; in mhi_power_down()
1160 if (cur_state == MHI_PM_DISABLE) { in mhi_power_down()
1170 cur_state = mhi_tryset_pm_state(mhi_cntrl, transition_state); in mhi_power_down()
1171 if (cur_state != transition_state) { in mhi_power_down()