Lines Matching refs:ppsc
22 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92se_get_hw_reg() local
31 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92se_get_hw_reg()
35 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92se_get_hw_reg()
69 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92se_set_hw_reg() local
322 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92se_set_hw_reg()
390 &ppsc->fwctrl_psmode); in rtl92se_set_hw_reg()
532 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92se_macconfig_before_fwdownload() local
687 if (ppsc->support_aspm && !ppsc->support_backdoor) in _rtl92se_macconfig_before_fwdownload()
732 if ((ppsc->rfoff_reason == RF_CHANGE_BY_IPS) || in _rtl92se_macconfig_before_fwdownload()
733 (ppsc->rfoff_reason == 0)) { in _rtl92se_macconfig_before_fwdownload()
1302 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92s_phy_set_rfhalt() local
1347 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS && in _rtl92s_phy_set_rfhalt()
1366 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92s_phy_set_rfhalt()
1508 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92se_card_disable() local
1515 ppsc->rfoff_reason > RF_CHANGE_BY_PS) in rtl92se_card_disable()
2288 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92se_gpio_radio_on_off_checking() local
2299 if (ppsc->swrf_processing) in rtl92se_gpio_radio_on_off_checking()
2303 if (ppsc->rfchange_inprogress) { in rtl92se_gpio_radio_on_off_checking()
2307 ppsc->rfchange_inprogress = true; in rtl92se_gpio_radio_on_off_checking()
2317 if (RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in rtl92se_gpio_radio_on_off_checking()
2324 if ((ppsc->hwradiooff) && (rfpwr_toset == ERFON)) { in rtl92se_gpio_radio_on_off_checking()
2329 ppsc->hwradiooff = false; in rtl92se_gpio_radio_on_off_checking()
2331 } else if ((!ppsc->hwradiooff) && (rfpwr_toset == ERFOFF)) { in rtl92se_gpio_radio_on_off_checking()
2336 ppsc->hwradiooff = true; in rtl92se_gpio_radio_on_off_checking()
2342 ppsc->rfchange_inprogress = false; in rtl92se_gpio_radio_on_off_checking()
2353 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC && in rtl92se_gpio_radio_on_off_checking()
2356 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92se_gpio_radio_on_off_checking()
2360 ppsc->rfchange_inprogress = false; in rtl92se_gpio_radio_on_off_checking()
2365 return !ppsc->hwradiooff; in rtl92se_gpio_radio_on_off_checking()