Lines Matching refs:ppsc
231 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8821ae_fwlps_leave() local
236 if (ppsc->low_power_enable) { in _rtl8821ae_fwlps_leave()
258 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8821ae_fwlps_enter() local
263 if (ppsc->low_power_enable) { in _rtl8821ae_fwlps_enter()
270 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8821ae_fwlps_enter()
280 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8821ae_fwlps_enter()
390 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_get_hw_reg() local
419 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl8821ae_get_hw_reg()
440 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl8821ae_get_hw_reg()
454 if (ppsc->wo_wlan_mode) in rtl8821ae_get_hw_reg()
472 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_set_hw_reg() local
705 ppsc->fw_current_inpsmode = *((bool *)val); in rtl8821ae_set_hw_reg()
867 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8821ae_gen_refresh_led_state() local
874 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl8821ae_gen_refresh_led_state()
879 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl8821ae_gen_refresh_led_state()
1343 struct rtl_ps_ctl *ppsc = rtl_psc(rtlpriv); in _rtl8821ae_get_wakeup_reason() local
1351 ppsc->wakeup_reason = 0; in _rtl8821ae_get_wakeup_reason()
1357 ppsc->wakeup_reason = WOL_REASON_PTK_UPDATE; in _rtl8821ae_get_wakeup_reason()
1362 ppsc->wakeup_reason = WOL_REASON_GTK_UPDATE; in _rtl8821ae_get_wakeup_reason()
1367 ppsc->wakeup_reason = WOL_REASON_DISASSOC; in _rtl8821ae_get_wakeup_reason()
1372 ppsc->wakeup_reason = WOL_REASON_DEAUTH; in _rtl8821ae_get_wakeup_reason()
1377 ppsc->wakeup_reason = WOL_REASON_AP_LOST; in _rtl8821ae_get_wakeup_reason()
1382 ppsc->wakeup_reason = WOL_REASON_MAGIC_PKT; in _rtl8821ae_get_wakeup_reason()
1387 ppsc->wakeup_reason = WOL_REASON_UNICAST_PKT; in _rtl8821ae_get_wakeup_reason()
1392 ppsc->wakeup_reason = WOL_REASON_PATTERN_PKT; in _rtl8821ae_get_wakeup_reason()
1397 ppsc->wakeup_reason = WOL_REASON_RTD3_SSID_MATCH; in _rtl8821ae_get_wakeup_reason()
1402 ppsc->wakeup_reason = WOL_REASON_REALWOW_V2_WAKEUPPKT; in _rtl8821ae_get_wakeup_reason()
1407 ppsc->wakeup_reason = WOL_REASON_REALWOW_V2_ACKLOST; in _rtl8821ae_get_wakeup_reason()
1630 struct rtl_ps_ctl *ppsc = rtl_psc(rtlpriv); in _rtl8821ae_simple_initialize_adapter() local
1649 ppsc->rfpwr_state = ERFON; in _rtl8821ae_simple_initialize_adapter()
1847 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_hw_init() local
1917 ppsc->fw_current_inpsmode = false; in rtl8821ae_hw_init()
1955 ppsc->rfpwr_state = ERFON; in rtl8821ae_hw_init()
2342 struct rtl_ps_ctl *ppsc = rtl_psc(rtlpriv); in rtl8821ae_card_disable() local
2352 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl8821ae_card_disable()
2430 ppsc->rfoff_reason > RF_CHANGE_BY_PS) in rtl8821ae_card_disable()
3751 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_gpio_radio_on_off_checking() local
3760 if (ppsc->swrf_processing) in rtl8821ae_gpio_radio_on_off_checking()
3764 if (ppsc->rfchange_inprogress) { in rtl8821ae_gpio_radio_on_off_checking()
3768 ppsc->rfchange_inprogress = true; in rtl8821ae_gpio_radio_on_off_checking()
3783 if ((ppsc->hwradiooff) && (e_rfpowerstate_toset == ERFON)) { in rtl8821ae_gpio_radio_on_off_checking()
3788 ppsc->hwradiooff = false; in rtl8821ae_gpio_radio_on_off_checking()
3790 } else if ((!ppsc->hwradiooff) in rtl8821ae_gpio_radio_on_off_checking()
3796 ppsc->hwradiooff = true; in rtl8821ae_gpio_radio_on_off_checking()
3802 ppsc->rfchange_inprogress = false; in rtl8821ae_gpio_radio_on_off_checking()
3805 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) in rtl8821ae_gpio_radio_on_off_checking()
3806 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl8821ae_gpio_radio_on_off_checking()
3809 ppsc->rfchange_inprogress = false; in rtl8821ae_gpio_radio_on_off_checking()
3814 return !ppsc->hwradiooff; in rtl8821ae_gpio_radio_on_off_checking()