Lines Matching refs:ufshcd_state
508 dev_err(hba->dev, "UFS Host state=%d\n", hba->ufshcd_state); in ufshcd_print_host_state()
1053 if (hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL) { in ufshcd_wait_for_doorbell_clr()
1694 || hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL in ufshcd_gate_work()
1753 hba->ufshcd_state != UFSHCD_STATE_OPERATIONAL || in __ufshcd_release()
2585 switch (hba->ufshcd_state) { in ufshcd_queuecommand()
2614 __func__, hba->ufshcd_state); in ufshcd_queuecommand()
3916 hba->ufshcd_state = UFSHCD_STATE_RESET; in ufshcd_link_recovery()
3927 hba->ufshcd_state = UFSHCD_STATE_ERROR; in ufshcd_link_recovery()
5622 if (hba->ufshcd_state != UFSHCD_STATE_ERROR) { in ufshcd_schedule_eh_work()
5625 hba->ufshcd_state = UFSHCD_STATE_EH_SCHEDULED_FATAL; in ufshcd_schedule_eh_work()
5627 hba->ufshcd_state = UFSHCD_STATE_EH_SCHEDULED_NON_FATAL; in ufshcd_schedule_eh_work()
5671 return (hba->ufshcd_state == UFSHCD_STATE_ERROR || in ufshcd_err_handling_should_stop()
5744 if (hba->ufshcd_state != UFSHCD_STATE_ERROR) in ufshcd_err_handler()
5745 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; in ufshcd_err_handler()
5759 if (hba->ufshcd_state != UFSHCD_STATE_ERROR) in ufshcd_err_handler()
5760 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; in ufshcd_err_handler()
5763 hba->ufshcd_state = UFSHCD_STATE_RESET; in ufshcd_err_handler()
5908 if (hba->ufshcd_state == UFSHCD_STATE_RESET) in ufshcd_err_handler()
5909 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; in ufshcd_err_handler()
6925 if (hba->ufshcd_state == UFSHCD_STATE_ERROR) in ufshcd_eh_host_reset_handler()
7721 hba->ufshcd_state = UFSHCD_STATE_ERROR; in ufshcd_probe_hba()
7722 else if (hba->ufshcd_state == UFSHCD_STATE_RESET) in ufshcd_probe_hba()
7723 hba->ufshcd_state = UFSHCD_STATE_OPERATIONAL; in ufshcd_probe_hba()