Lines Matching refs:mhi_state

2067 static char *cnss_mhi_state_to_str(enum cnss_mhi_state mhi_state)  in cnss_mhi_state_to_str()  argument
2069 switch (mhi_state) { in cnss_mhi_state_to_str()
2096 enum cnss_mhi_state mhi_state) in cnss_pci_check_mhi_state_bit() argument
2098 switch (mhi_state) { in cnss_pci_check_mhi_state_bit()
2100 if (!test_bit(CNSS_MHI_INIT, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2105 if (test_bit(CNSS_MHI_INIT, &pci_priv->mhi_state) && in cnss_pci_check_mhi_state_bit()
2106 !test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2110 if (test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2115 if (test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state) && in cnss_pci_check_mhi_state_bit()
2116 !test_bit(CNSS_MHI_SUSPEND, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2120 if (test_bit(CNSS_MHI_SUSPEND, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2124 if (test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state) && in cnss_pci_check_mhi_state_bit()
2125 !test_bit(CNSS_MHI_TRIGGER_RDDM, &pci_priv->mhi_state)) in cnss_pci_check_mhi_state_bit()
2132 cnss_mhi_state_to_str(mhi_state), mhi_state); in cnss_pci_check_mhi_state_bit()
2136 cnss_mhi_state_to_str(mhi_state), mhi_state, in cnss_pci_check_mhi_state_bit()
2137 pci_priv->mhi_state); in cnss_pci_check_mhi_state_bit()
2138 if (mhi_state != CNSS_MHI_TRIGGER_RDDM) in cnss_pci_check_mhi_state_bit()
2191 enum cnss_mhi_state mhi_state) in cnss_pci_set_mhi_state_bit() argument
2193 switch (mhi_state) { in cnss_pci_set_mhi_state_bit()
2195 set_bit(CNSS_MHI_INIT, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2198 clear_bit(CNSS_MHI_INIT, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2201 set_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2204 set_bit(CNSS_MHI_POWERING_OFF, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2208 clear_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2209 clear_bit(CNSS_MHI_POWERING_OFF, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2210 clear_bit(CNSS_MHI_TRIGGER_RDDM, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2211 clear_bit(CNSS_MHI_RDDM_DONE, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2214 set_bit(CNSS_MHI_SUSPEND, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2217 clear_bit(CNSS_MHI_SUSPEND, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2220 set_bit(CNSS_MHI_TRIGGER_RDDM, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2223 set_bit(CNSS_MHI_RDDM_DONE, &pci_priv->mhi_state); in cnss_pci_set_mhi_state_bit()
2226 cnss_pr_err("Unhandled MHI state (%d)\n", mhi_state); in cnss_pci_set_mhi_state_bit()
2243 enum cnss_mhi_state mhi_state) in cnss_pci_set_mhi_state() argument
2250 if (mhi_state < 0) { in cnss_pci_set_mhi_state()
2251 cnss_pr_err("Invalid MHI state (%d)\n", mhi_state); in cnss_pci_set_mhi_state()
2255 ret = cnss_pci_check_mhi_state_bit(pci_priv, mhi_state); in cnss_pci_set_mhi_state()
2260 cnss_mhi_state_to_str(mhi_state), mhi_state); in cnss_pci_set_mhi_state()
2262 switch (mhi_state) { in cnss_pci_set_mhi_state()
2332 cnss_pr_err("Unhandled MHI state (%d)\n", mhi_state); in cnss_pci_set_mhi_state()
2339 cnss_pci_set_mhi_state_bit(pci_priv, mhi_state); in cnss_pci_set_mhi_state()
2345 cnss_mhi_state_to_str(mhi_state), mhi_state, ret); in cnss_pci_set_mhi_state()
2606 set_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state); in cnss_pci_start_mhi()
2628 if (!test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state)) { in cnss_pci_power_off_mhi()
2649 if (!test_bit(CNSS_MHI_INIT, &pci_priv->mhi_state)) { in cnss_pci_deinit_mhi()
4086 if (pci_priv->mhi_state == CNSS_MHI_INIT) { in cnss_pci_suspend()
6086 if (!test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state) || in cnss_pci_force_fw_assert_hdlr()
6087 test_bit(CNSS_MHI_POWERING_OFF, &pci_priv->mhi_state)) in cnss_pci_force_fw_assert_hdlr()
6125 if (!test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state) || in cnss_pci_force_fw_assert_hdlr()
6126 test_bit(CNSS_MHI_POWERING_OFF, &pci_priv->mhi_state)) { in cnss_pci_force_fw_assert_hdlr()
6358 if (test_bit(CNSS_MHI_RDDM_DONE, &pci_priv->mhi_state)) { in cnss_pci_collect_dump_info()
6746 if (test_bit(CNSS_MHI_POWER_ON, &pci_priv->mhi_state)) in cnss_boot_debug_timeout_hdlr()