Lines Matching refs:ppsc
74 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_get_hw_reg() local
82 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92ce_get_hw_reg()
104 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92ce_get_hw_reg()
133 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_set_hw_reg() local
408 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92ce_set_hw_reg()
499 &ppsc->fwctrl_psmode); in rtl92ce_set_hw_reg()
636 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_gen_refresh_led_state() local
642 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl92ce_gen_refresh_led_state()
644 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl92ce_gen_refresh_led_state()
858 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_enable_aspm_back_door() local
864 if (ppsc->support_backdoor) in _rtl92ce_enable_aspm_back_door()
914 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_hw_init() local
986 ppsc->rfpwr_state = ERFON; in rtl92ce_hw_init()
994 if (ppsc->rfpwr_state == ERFON) { in rtl92ce_hw_init()
1338 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_card_disable() local
1347 ppsc->rfoff_reason > RF_CHANGE_BY_PS) in rtl92ce_card_disable()
1349 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92ce_card_disable()
2009 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_gpio_radio_on_off_checking() local
2019 if (ppsc->swrf_processing) in rtl92ce_gpio_radio_on_off_checking()
2023 if (ppsc->rfchange_inprogress) { in rtl92ce_gpio_radio_on_off_checking()
2027 ppsc->rfchange_inprogress = true; in rtl92ce_gpio_radio_on_off_checking()
2037 if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) { in rtl92ce_gpio_radio_on_off_checking()
2042 ppsc->hwradiooff = false; in rtl92ce_gpio_radio_on_off_checking()
2044 } else if (!ppsc->hwradiooff && (e_rfpowerstate_toset == ERFOFF)) { in rtl92ce_gpio_radio_on_off_checking()
2049 ppsc->hwradiooff = true; in rtl92ce_gpio_radio_on_off_checking()
2055 ppsc->rfchange_inprogress = false; in rtl92ce_gpio_radio_on_off_checking()
2058 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) in rtl92ce_gpio_radio_on_off_checking()
2059 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92ce_gpio_radio_on_off_checking()
2062 ppsc->rfchange_inprogress = false; in rtl92ce_gpio_radio_on_off_checking()
2067 return !ppsc->hwradiooff; in rtl92ce_gpio_radio_on_off_checking()