Lines Matching refs:ppsc
250 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_fwlps_leave() local
255 if (ppsc->low_power_enable) { in _rtl88ee_fwlps_leave()
276 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_fwlps_enter() local
281 if (ppsc->low_power_enable) { in _rtl88ee_fwlps_enter()
286 &ppsc->fwctrl_psmode); in _rtl88ee_fwlps_enter()
294 &ppsc->fwctrl_psmode); in _rtl88ee_fwlps_enter()
302 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_get_hw_reg() local
310 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl88ee_get_hw_reg()
331 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl88ee_get_hw_reg()
357 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_set_hw_reg() local
604 ppsc->fw_current_inpsmode = *((bool *)val); in rtl88ee_set_hw_reg()
800 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_gen_refresh_led_state() local
806 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl88ee_gen_refresh_led_state()
808 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl88ee_gen_refresh_led_state()
941 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_enable_aspm_back_door() local
982 if (ppsc->support_backdoor || (0 == tmp1byte)) { in _rtl88ee_enable_aspm_back_door()
1037 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_hw_init() local
1088 ppsc->fw_current_inpsmode = false; in rtl88ee_hw_init()
1115 ppsc->rfpwr_state = ERFON; in rtl88ee_hw_init()
1121 if (ppsc->rfpwr_state == ERFON) { in rtl88ee_hw_init()
1423 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_card_disable() local
1435 ppsc->rfoff_reason > RF_CHANGE_BY_PS) in rtl88ee_card_disable()
1438 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl88ee_card_disable()
2212 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_gpio_radio_on_off_checking() local
2220 if (ppsc->swrf_processing) in rtl88ee_gpio_radio_on_off_checking()
2224 if (ppsc->rfchange_inprogress) { in rtl88ee_gpio_radio_on_off_checking()
2228 ppsc->rfchange_inprogress = true; in rtl88ee_gpio_radio_on_off_checking()
2235 if (ppsc->hwradiooff && (e_rfpowerstate_toset == ERFON)) { in rtl88ee_gpio_radio_on_off_checking()
2240 ppsc->hwradiooff = false; in rtl88ee_gpio_radio_on_off_checking()
2242 } else if ((!ppsc->hwradiooff) && in rtl88ee_gpio_radio_on_off_checking()
2248 ppsc->hwradiooff = true; in rtl88ee_gpio_radio_on_off_checking()
2254 ppsc->rfchange_inprogress = false; in rtl88ee_gpio_radio_on_off_checking()
2257 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) in rtl88ee_gpio_radio_on_off_checking()
2258 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl88ee_gpio_radio_on_off_checking()
2261 ppsc->rfchange_inprogress = false; in rtl88ee_gpio_radio_on_off_checking()
2266 return !ppsc->hwradiooff; in rtl88ee_gpio_radio_on_off_checking()