Lines Matching refs:scn

51 void hif_ut_suspend_init(struct hif_softc *scn)  in hif_ut_suspend_init()  argument
53 INIT_WORK(&scn->ut_suspend_ctx.resume_work, hif_ut_fw_resume_work); in hif_ut_suspend_init()
56 bool hif_is_ut_suspended(struct hif_softc *scn) in hif_is_ut_suspended() argument
58 QDF_BUG(scn); in hif_is_ut_suspended()
59 if (!scn) in hif_is_ut_suspended()
62 return test_bit(UT_SUSPENDED_BIT, &scn->ut_suspend_ctx.state); in hif_is_ut_suspended()
68 struct hif_softc *scn = HIF_GET_SOFTC(opaque_scn); in hif_ut_apps_suspend() local
70 QDF_BUG(scn); in hif_ut_apps_suspend()
71 if (!scn) in hif_ut_apps_suspend()
78 if (test_and_set_bit(UT_SUSPENDED_BIT, &scn->ut_suspend_ctx.state)) in hif_ut_apps_suspend()
81 scn->ut_suspend_ctx.resume_callback = callback; in hif_ut_apps_suspend()
88 struct hif_softc *scn = HIF_GET_SOFTC(opaque_scn); in hif_ut_apps_resume() local
90 QDF_BUG(scn); in hif_ut_apps_resume()
91 if (!scn) in hif_ut_apps_resume()
94 if (!test_and_clear_bit(UT_SUSPENDED_BIT, &scn->ut_suspend_ctx.state)) in hif_ut_apps_resume()
97 scn->ut_suspend_ctx.resume_callback = NULL; in hif_ut_apps_resume()
102 QDF_STATUS hif_ut_fw_resume(struct hif_softc *scn) in hif_ut_fw_resume() argument
104 QDF_BUG(scn); in hif_ut_fw_resume()
105 if (!scn) in hif_ut_fw_resume()
108 if (!test_and_clear_bit(UT_SUSPENDED_BIT, &scn->ut_suspend_ctx.state)) in hif_ut_fw_resume()
111 schedule_work(&scn->ut_suspend_ctx.resume_work); in hif_ut_fw_resume()
116 bool hif_irq_trigger_ut_resume(struct hif_softc *scn) in hif_irq_trigger_ut_resume() argument
118 if (!hif_is_ut_suspended(scn)) in hif_irq_trigger_ut_resume()