Lines Matching refs:state
180 icnss_pr_vdbg("PM stay awake, state: 0x%lx, count: %d\n", priv->state, in icnss_pm_stay_awake()
197 icnss_pr_vdbg("PM relax, state: 0x%lx, count: %d\n", priv->state, in icnss_pm_relax()
278 flags, priv->state); in icnss_driver_event_post()
316 icnss_driver_event_to_str(type), type, priv->state, ret, in icnss_driver_event_post()
350 type, current->comm, flags, priv->state); in icnss_soc_wake_event_post()
389 type, priv->state, ret, event->ret); in icnss_soc_wake_event_post()
413 return test_bit(ICNSS_FW_READY, &penv->state); in icnss_is_fw_ready()
423 set_bit(ICNSS_BLOCK_SHUTDOWN, &penv->state); in icnss_block_shutdown()
426 clear_bit(ICNSS_BLOCK_SHUTDOWN, &penv->state); in icnss_block_shutdown()
440 return test_bit(ICNSS_FW_DOWN, &priv->state) || in icnss_is_fw_down()
441 test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_is_fw_down()
442 test_bit(ICNSS_REJUVENATE, &priv->state); in icnss_is_fw_down()
462 return test_bit(ICNSS_REJUVENATE, &penv->state); in icnss_is_rejuvenate()
471 return test_bit(ICNSS_PDR, &penv->state); in icnss_is_pdr()
510 if (test_bit(ICNSS_FW_DOWN, &priv->state) || in icnss_send_smp2p()
511 !test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_send_smp2p()
513 priv->state); in icnss_send_smp2p()
541 if (!test_bit(ICNSS_FW_DOWN, &priv->state)) in icnss_send_smp2p()
555 return test_bit(ICNSS_LOW_POWER, &penv->state); in icnss_is_low_power()
583 set_bit(ICNSS_FW_DOWN, &priv->state); in fw_crash_indication_handler()
586 if (test_bit(ICNSS_FW_READY, &priv->state)) { in fw_crash_indication_handler()
587 clear_bit(ICNSS_FW_READY, &priv->state); in fw_crash_indication_handler()
767 priv->state, uevent); in icnss_call_driver_uevent()
876 if (!test_bit(ICNSS_SLATE_UP, &priv->state)) { in icnss_wait_for_slate_complete()
879 priv->state); in icnss_wait_for_slate_complete()
883 if (!test_bit(ICNSS_SLATE_UP, &priv->state)) in icnss_wait_for_slate_complete()
912 set_bit(ICNSS_WLFW_EXISTS, &priv->state); in icnss_driver_event_server_arrive()
913 clear_bit(ICNSS_FW_DOWN, &priv->state); in icnss_driver_event_server_arrive()
914 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_driver_event_server_arrive()
926 if (test_bit(ICNSS_WLFW_CONNECTED, &priv->state)) { in icnss_driver_event_server_arrive()
935 set_bit(ICNSS_WLFW_CONNECTED, &priv->state); in icnss_driver_event_server_arrive()
1115 icnss_pr_info("WLAN FW Service Disconnected: 0x%lx\n", priv->state); in icnss_driver_event_server_exit()
1133 if (test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_call_driver_probe()
1136 icnss_pr_dbg("Calling driver probe state: 0x%lx\n", priv->state); in icnss_call_driver_probe()
1149 ret, priv->state, probe_cnt); in icnss_call_driver_probe()
1155 set_bit(ICNSS_DRIVER_PROBED, &priv->state); in icnss_call_driver_probe()
1166 if (!test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_call_driver_shutdown()
1172 if (test_bit(ICNSS_SHUTDOWN_DONE, &priv->state)) in icnss_call_driver_shutdown()
1175 icnss_pr_dbg("Calling driver shutdown state: 0x%lx\n", priv->state); in icnss_call_driver_shutdown()
1178 set_bit(ICNSS_SHUTDOWN_DONE, &priv->state); in icnss_call_driver_shutdown()
1192 clear_bit(ICNSS_PDR, &priv->state); in icnss_pd_restart_complete()
1193 clear_bit(ICNSS_REJUVENATE, &priv->state); in icnss_pd_restart_complete()
1194 clear_bit(ICNSS_PD_RESTART, &priv->state); in icnss_pd_restart_complete()
1195 clear_bit(ICNSS_LOW_POWER, &priv->state); in icnss_pd_restart_complete()
1202 if (test_bit(ICNSS_FW_DOWN, &priv->state)) { in icnss_pd_restart_complete()
1204 priv->state); in icnss_pd_restart_complete()
1208 if (!test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_pd_restart_complete()
1211 icnss_pr_dbg("Calling driver reinit state: 0x%lx\n", priv->state); in icnss_pd_restart_complete()
1220 ret, priv->state); in icnss_pd_restart_complete()
1228 clear_bit(ICNSS_SHUTDOWN_DONE, &priv->state); in icnss_pd_restart_complete()
1250 set_bit(ICNSS_FW_READY, &priv->state); in icnss_driver_event_fw_ready_ind()
1251 clear_bit(ICNSS_MODE_ON, &priv->state); in icnss_driver_event_fw_ready_ind()
1258 icnss_pr_info("WLAN FW is ready: 0x%lx\n", priv->state); in icnss_driver_event_fw_ready_ind()
1268 if (priv->is_slate_rfa && test_bit(ICNSS_SLATE_UP, &priv->state)) in icnss_driver_event_fw_ready_ind()
1271 if (test_bit(ICNSS_PD_RESTART, &priv->state)) { in icnss_driver_event_fw_ready_ind()
1292 icnss_pr_info("WLAN FW Initialization done: 0x%lx\n", priv->state); in icnss_driver_event_fw_init_done()
1301 if (test_bit(ICNSS_COLD_BOOT_CAL, &priv->state)) { in icnss_driver_event_fw_init_done()
1549 set_bit(ICNSS_FW_READY, &priv->state); in icnss_driver_event_register_driver()
1551 if (test_bit(ICNSS_FW_DOWN, &priv->state)) { in icnss_driver_event_register_driver()
1553 priv->state); in icnss_driver_event_register_driver()
1557 if (!test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_driver_event_register_driver()
1559 priv->state); in icnss_driver_event_register_driver()
1576 ret, priv->state, probe_cnt); in icnss_driver_event_register_driver()
1582 set_bit(ICNSS_DRIVER_PROBED, &priv->state); in icnss_driver_event_register_driver()
1595 if (!test_bit(ICNSS_DRIVER_PROBED, &priv->state)) { in icnss_driver_event_unregister_driver()
1600 set_bit(ICNSS_DRIVER_UNLOADING, &priv->state); in icnss_driver_event_unregister_driver()
1609 clear_bit(ICNSS_DRIVER_UNLOADING, &priv->state); in icnss_driver_event_unregister_driver()
1610 clear_bit(ICNSS_DRIVER_PROBED, &priv->state); in icnss_driver_event_unregister_driver()
1625 icnss_pr_dbg("FW crashed, state: 0x%lx\n", priv->state); in icnss_fw_crashed()
1627 set_bit(ICNSS_PD_RESTART, &priv->state); in icnss_fw_crashed()
1631 if (test_bit(ICNSS_DRIVER_PROBED, &priv->state) && in icnss_fw_crashed()
1632 test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_fw_crashed()
1633 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_fw_crashed()
1691 if (!test_bit(ICNSS_WLFW_EXISTS, &priv->state)) { in icnss_driver_event_pd_service_down()
1715 event_data->crashed, priv->state); in icnss_driver_event_pd_service_down()
1719 if (test_bit(ICNSS_PD_RESTART, &priv->state) && event_data->crashed) { in icnss_driver_event_pd_service_down()
1721 event_data->crashed, priv->state); in icnss_driver_event_pd_service_down()
1727 if (!test_bit(ICNSS_PD_RESTART, &priv->state)) in icnss_driver_event_pd_service_down()
1739 if (!test_bit(ICNSS_WLFW_EXISTS, &priv->state)) { in icnss_driver_event_early_crash_ind()
1761 if (priv->is_ssr || test_bit(ICNSS_PDR, &priv->state) || in icnss_driver_event_idle_shutdown()
1762 test_bit(ICNSS_REJUVENATE, &priv->state)) { in icnss_driver_event_idle_shutdown()
1767 priv->state); in icnss_driver_event_idle_shutdown()
1784 if (priv->is_ssr || test_bit(ICNSS_PDR, &priv->state) || in icnss_driver_event_idle_restart()
1785 test_bit(ICNSS_REJUVENATE, &priv->state)) { in icnss_driver_event_idle_restart()
1790 priv->state); in icnss_driver_event_idle_restart()
1933 priv->state); in icnss_driver_event_work()
2014 priv->state); in icnss_driver_event_work()
2054 priv->state); in icnss_soc_wake_msg_work()
2076 priv->state); in icnss_soc_wake_msg_work()
2143 if (!test_bit(ICNSS_PD_RESTART, &priv->state) && in icnss_update_state_send_modem_shutdown()
2144 !test_bit(ICNSS_SHUTDOWN_DONE, &priv->state) && in icnss_update_state_send_modem_shutdown()
2145 !test_bit(ICNSS_BLOCK_SHUTDOWN, &priv->state)) { in icnss_update_state_send_modem_shutdown()
2146 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_update_state_send_modem_shutdown()
2154 if (test_bit(ICNSS_BLOCK_SHUTDOWN, &priv->state)) { in icnss_update_state_send_modem_shutdown()
2195 set_bit(ICNSS_FW_DOWN, &priv->state); in icnss_wpss_early_notifier_nb()
2236 priv->state, notif->crashed); in icnss_wpss_notifier_nb()
2241 set_bit(ICNSS_FW_DOWN, &priv->state); in icnss_wpss_notifier_nb()
2257 if (test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_wpss_notifier_nb()
2258 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_wpss_notifier_nb()
2271 icnss_pr_vdbg("Exit %s,state: 0x%lx\n", __func__, priv->state); in icnss_wpss_notifier_nb()
2295 if (test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_modem_notifier_nb()
2299 set_bit(ICNSS_LOW_POWER, &priv->state); in icnss_modem_notifier_nb()
2326 if (test_bit(ICNSS_PDR_REGISTERED, &priv->state)) { in icnss_modem_notifier_nb()
2327 set_bit(ICNSS_FW_DOWN, &priv->state); in icnss_modem_notifier_nb()
2330 if (test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_modem_notifier_nb()
2331 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_modem_notifier_nb()
2341 priv->state, notif->crashed); in icnss_modem_notifier_nb()
2343 set_bit(ICNSS_FW_DOWN, &priv->state); in icnss_modem_notifier_nb()
2355 if (test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_modem_notifier_nb()
2356 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_modem_notifier_nb()
2369 icnss_pr_vdbg("Exit %s,state: 0x%lx\n", __func__, priv->state); in icnss_modem_notifier_nb()
2410 set_bit(ICNSS_SSR_REGISTERED, &priv->state); in icnss_wpss_ssr_register_notifier()
2428 priv->state); in icnss_slate_event_notifier_nb()
2429 set_bit(ICNSS_SLATE_READY, &priv->state); in icnss_slate_event_notifier_nb()
2430 set_bit(ICNSS_SLATE_UP, &priv->state); in icnss_slate_event_notifier_nb()
2477 test_bit(ICNSS_SLATE_READY, &priv->state)) { in icnss_slate_notifier_nb()
2478 set_bit(ICNSS_SLATE_UP, &priv->state); in icnss_slate_notifier_nb()
2481 priv->state); in icnss_slate_notifier_nb()
2483 test_bit(ICNSS_SLATE_UP, &priv->state)) { in icnss_slate_notifier_nb()
2484 clear_bit(ICNSS_SLATE_UP, &priv->state); in icnss_slate_notifier_nb()
2485 if (test_bit(ICNSS_PD_RESTART, &priv->state)) { in icnss_slate_notifier_nb()
2487 priv->state); in icnss_slate_notifier_nb()
2491 icnss_pr_dbg("Initiating PDR 0x%lx\n", priv->state); in icnss_slate_notifier_nb()
2495 ret, priv->state); in icnss_slate_notifier_nb()
2518 set_bit(ICNSS_SLATE_SSR_REGISTERED, &priv->state); in icnss_slate_ssr_register_notifier()
2525 if (!test_and_clear_bit(ICNSS_SLATE_SSR_REGISTERED, &priv->state)) in icnss_slate_ssr_unregister_notifier()
2575 set_bit(ICNSS_SSR_REGISTERED, &priv->state); in icnss_modem_ssr_register_notifier()
2592 if (!test_and_clear_bit(ICNSS_SSR_REGISTERED, &priv->state)) in icnss_wpss_ssr_unregister_notifier()
2604 if (!test_and_clear_bit(ICNSS_SSR_REGISTERED, &priv->state)) in icnss_modem_ssr_unregister_notifier()
2614 static void icnss_pdr_notifier_cb(int state, char *service_path, void *priv_cb) in icnss_pdr_notifier_cb() argument
2625 state, priv->state); in icnss_pdr_notifier_cb()
2627 switch (state) { in icnss_pdr_notifier_cb()
2637 set_bit(ICNSS_PDR, &penv->state); in icnss_pdr_notifier_cb()
2638 if (test_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state)) { in icnss_pdr_notifier_cb()
2651 priv->state, icnss_pdr_cause[cause]); in icnss_pdr_notifier_cb()
2653 if (!test_bit(ICNSS_FW_DOWN, &priv->state)) { in icnss_pdr_notifier_cb()
2654 set_bit(ICNSS_FW_DOWN, &priv->state); in icnss_pdr_notifier_cb()
2657 if (test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_pdr_notifier_cb()
2658 clear_bit(ICNSS_FW_READY, &priv->state); in icnss_pdr_notifier_cb()
2665 clear_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state); in icnss_pdr_notifier_cb()
2676 clear_bit(ICNSS_FW_DOWN, &priv->state); in icnss_pdr_notifier_cb()
2704 set_bit(ICNSS_PDR_REGISTERED, &priv->state); in icnss_pd_restart_enable()
2713 if (!test_and_clear_bit(ICNSS_PDR_REGISTERED, &priv->state)) in icnss_pdr_unregister_notifier()
3082 if (!test_bit(ICNSS_WLFW_CONNECTED, &priv->state)) in icnss_qmi_send()
3109 icnss_pr_dbg("Registering driver, state: 0x%lx\n", priv->state); in __icnss_register_driver()
3154 icnss_pr_dbg("Unregistering driver, state: 0x%lx\n", priv->state); in icnss_unregister_driver()
3274 icnss_pr_vdbg("CE request IRQ: %d, state: 0x%lx\n", ce_id, priv->state); in icnss_ce_request_irq()
3319 icnss_pr_vdbg("CE free IRQ: %d, state: 0x%lx\n", ce_id, penv->state); in icnss_ce_free_irq()
3354 penv->state); in icnss_enable_irq()
3378 penv->state); in icnss_disable_irq()
3458 if (test_bit(ICNSS_FW_DOWN, &penv->state) || in icnss_set_fw_log_mode()
3459 !test_bit(ICNSS_FW_READY, &penv->state)) { in icnss_set_fw_log_mode()
3461 priv->state); in icnss_set_fw_log_mode()
3489 if (test_bit(ICNSS_FW_DOWN, &priv->state) || in icnss_force_wake_request()
3490 !test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_force_wake_request()
3492 priv->state); in icnss_force_wake_request()
3525 if (test_bit(ICNSS_FW_DOWN, &priv->state) || in icnss_force_wake_release()
3526 !test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_force_wake_release()
3528 priv->state); in icnss_force_wake_release()
3598 if (!test_bit(ICNSS_FW_READY, &priv->state) || in icnss_athdiag_read()
3599 !test_bit(ICNSS_POWER_ON, &priv->state)) { in icnss_athdiag_read()
3601 priv->state); in icnss_athdiag_read()
3634 if (!test_bit(ICNSS_FW_READY, &priv->state) || in icnss_athdiag_write()
3635 !test_bit(ICNSS_POWER_ON, &priv->state)) { in icnss_athdiag_write()
3637 priv->state); in icnss_athdiag_write()
3656 if (test_bit(ICNSS_FW_DOWN, &priv->state) || in icnss_wlan_enable()
3657 !test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_wlan_enable()
3659 priv->state); in icnss_wlan_enable()
3663 if (test_bit(ICNSS_MODE_ON, &priv->state)) { in icnss_wlan_enable()
3665 priv->state); in icnss_wlan_enable()
3697 if (test_bit(ICNSS_FW_DOWN, &priv->state)) { in icnss_wlan_disable()
3699 priv->state); in icnss_wlan_disable()
3894 if (test_bit(ICNSS_PD_RESTART, &priv->state)) { in icnss_trigger_recovery()
3896 priv->state); in icnss_trigger_recovery()
3906 set_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state); in icnss_trigger_recovery()
3910 if (!test_bit(ICNSS_PDR_REGISTERED, &priv->state)) { in icnss_trigger_recovery()
3912 priv->state); in icnss_trigger_recovery()
3918 priv->state); in icnss_trigger_recovery()
3923 set_bit(ICNSS_HOST_TRIGGERED_PDR, &priv->state); in icnss_trigger_recovery()
3939 if (priv->is_ssr || test_bit(ICNSS_PDR, &priv->state) || in icnss_idle_shutdown()
3940 test_bit(ICNSS_REJUVENATE, &priv->state)) { in icnss_idle_shutdown()
3959 if (priv->is_ssr || test_bit(ICNSS_PDR, &priv->state) || in icnss_idle_restart()
3960 test_bit(ICNSS_REJUVENATE, &priv->state)) { in icnss_idle_restart()
3976 if (test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_exit_power_save()
3977 !test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_exit_power_save()
3989 if (test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_prevent_l1()
3990 !test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_prevent_l1()
4002 if (test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_allow_l1()
4003 !test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_allow_l1()
4513 if (test_bit(ICNSS_FW_READY, &priv->state)) { in icnss_smmu_fault_handler()
4880 set_bit(ICNSS_COLD_BOOT_CAL, &priv->state); in icnss_probe()
4956 icnss_pr_info("Removing driver: state: 0x%lx\n", priv->state); in icnss_remove()
5033 if (priv->is_slate_rfa && !test_bit(ICNSS_SLATE_UP, &priv->state)) in icnss_recovery_timeout_hdlr()
5036 icnss_pr_err("Timeout waiting for FW Ready 0x%lx\n", priv->state); in icnss_recovery_timeout_hdlr()
5045 priv->state); in icnss_wpss_ssr_timeout_hdlr()
5061 icnss_pr_vdbg("PM Suspend, state: 0x%lx\n", priv->state); in icnss_pm_suspend()
5065 !test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_pm_suspend()
5073 if (test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_pm_suspend()
5074 !test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_pm_suspend()
5081 set_bit(ICNSS_PM_SUSPEND, &priv->state); in icnss_pm_suspend()
5099 icnss_pr_vdbg("PM resume, state: 0x%lx\n", priv->state); in icnss_pm_resume()
5103 !test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_pm_resume()
5111 clear_bit(ICNSS_PM_SUSPEND, &priv->state); in icnss_pm_resume()
5129 icnss_pr_vdbg("PM suspend_noirq, state: 0x%lx\n", priv->state); in icnss_pm_suspend_noirq()
5132 !test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_pm_suspend_noirq()
5140 set_bit(ICNSS_PM_SUSPEND_NOIRQ, &priv->state); in icnss_pm_suspend_noirq()
5158 icnss_pr_vdbg("PM resume_noirq, state: 0x%lx\n", priv->state); in icnss_pm_resume_noirq()
5161 !test_bit(ICNSS_DRIVER_PROBED, &priv->state)) in icnss_pm_resume_noirq()
5169 clear_bit(ICNSS_PM_SUSPEND_NOIRQ, &priv->state); in icnss_pm_resume_noirq()
5199 if (test_bit(ICNSS_PD_RESTART, &priv->state) || in icnss_pm_runtime_suspend()
5200 !test_bit(ICNSS_MODE_ON, &priv->state)) in icnss_pm_runtime_suspend()
5230 icnss_pr_vdbg("Runtime resume, state: 0x%lx\n", priv->state); in icnss_pm_runtime_resume()