Home
last modified time | relevance | path

Searched refs:ppsc (Results 1 – 25 of 63) sorted by relevance

123

/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/
Dps.c13 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_ps_enable_nic() local
30 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl_ps_enable_nic()
70 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_ps_set_rf_state() local
80 if (ppsc->rfchange_inprogress) { in rtl_ps_set_rf_state()
88 while (ppsc->rfchange_inprogress) { in rtl_ps_set_rf_state()
98 ppsc->rfchange_inprogress = true; in rtl_ps_set_rf_state()
106 ppsc->rfoff_reason &= (~changesource); in rtl_ps_set_rf_state()
109 (ppsc->hwradiooff)) { in rtl_ps_set_rf_state()
110 ppsc->hwradiooff = false; in rtl_ps_set_rf_state()
113 if (!ppsc->rfoff_reason) { in rtl_ps_set_rf_state()
[all …]
Dpci.c64 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl_pci_update_default_setting() local
69 ppsc->reg_rfps_level = 0; in _rtl_pci_update_default_setting()
70 ppsc->support_aspm = false; in _rtl_pci_update_default_setting()
80 ppsc->reg_rfps_level |= RT_RF_LPS_LEVEL_ASPM; in _rtl_pci_update_default_setting()
85 ppsc->reg_rfps_level |= (RT_RF_LPS_LEVEL_ASPM | in _rtl_pci_update_default_setting()
93 ppsc->reg_rfps_level &= ~(RT_RF_LPS_LEVEL_ASPM); in _rtl_pci_update_default_setting()
94 ppsc->reg_rfps_level |= (RT_RF_PS_LEVEL_ALWAYS_ASPM | in _rtl_pci_update_default_setting()
102 ppsc->reg_rfps_level &= ~(RT_RF_LPS_LEVEL_ASPM | in _rtl_pci_update_default_setting()
104 ppsc->reg_rfps_level |= RT_RF_PS_LEVEL_ALWAYS_ASPM; in _rtl_pci_update_default_setting()
108 ppsc->reg_rfps_level |= RT_RF_OFF_LEVL_HALT_NIC; in _rtl_pci_update_default_setting()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.c405 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_phy_set_rf_power_state() local
412 if ((ppsc->rfpwr_state == ERFOFF) && in _rtl92ce_phy_set_rf_power_state()
413 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in _rtl92ce_phy_set_rf_power_state()
423 RT_CLEAR_PS_LEVEL(ppsc, in _rtl92ce_phy_set_rf_power_state()
429 ppsc->last_sleep_jiffies)); in _rtl92ce_phy_set_rf_power_state()
430 ppsc->last_awake_jiffies = jiffies; in _rtl92ce_phy_set_rf_power_state()
443 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in _rtl92ce_phy_set_rf_power_state()
447 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92ce_phy_set_rf_power_state()
449 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { in _rtl92ce_phy_set_rf_power_state()
460 if (ppsc->rfpwr_state == ERFOFF) in _rtl92ce_phy_set_rf_power_state()
[all …]
Dhw.c74 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
[all …]
Dled.c91 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_led_control() local
93 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92ce_led_control()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dphy.c379 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state() local
386 if ((ppsc->rfpwr_state == ERFOFF) && in _rtl92cu_phy_set_rf_power_state()
387 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in _rtl92cu_phy_set_rf_power_state()
397 RT_CLEAR_PS_LEVEL(ppsc, in _rtl92cu_phy_set_rf_power_state()
403 ppsc->last_sleep_jiffies)); in _rtl92cu_phy_set_rf_power_state()
404 ppsc->last_awake_jiffies = jiffies; in _rtl92cu_phy_set_rf_power_state()
441 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in _rtl92cu_phy_set_rf_power_state()
445 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92cu_phy_set_rf_power_state()
447 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { in _rtl92cu_phy_set_rf_power_state()
457 if (ppsc->rfpwr_state == ERFOFF) in _rtl92cu_phy_set_rf_power_state()
[all …]
Dhw.c869 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_hw_init() local
917 ppsc->rfpwr_state = ERFON; in rtl92cu_hw_init()
919 if (ppsc->rfpwr_state == ERFON) { in rtl92cu_hw_init()
1260 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_card_disable() local
1269 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92cu_card_disable()
1406 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_get_hw_reg() local
1414 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92cu_get_hw_reg()
1435 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92cu_get_hw_reg()
1486 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_set_hw_reg() local
1733 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92cu_set_hw_reg()
[all …]
Dled.c67 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_led_control() local
69 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92cu_led_control()
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Drtw_pwrctrl.h83 #define RT_IN_PS_LEVEL(ppsc, _PS_FLAG) ((ppsc->cur_ps_level & _PS_FLAG) ? true : false) argument
84 #define RT_CLEAR_PS_LEVEL(ppsc, _PS_FLAG) (ppsc->cur_ps_level &= (~(_PS_FLAG))) argument
85 #define RT_SET_PS_LEVEL(ppsc, _PS_FLAG) (ppsc->cur_ps_level |= _PS_FLAG) argument
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dhw.c250 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
[all …]
Dled.c96 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_led_control() local
98 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl88ee_led_control()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192d/
Dhw_common.c50 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92d_get_hw_reg() local
54 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92d_get_hw_reg()
75 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl92d_get_hw_reg()
108 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92d_set_hw_reg() local
270 ppsc->fw_current_inpsmode = *((bool *)val); in rtl92d_set_hw_reg()
1044 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92d_gpio_radio_on_off_checking() local
1054 if (ppsc->swrf_processing) in rtl92d_gpio_radio_on_off_checking()
1057 if (ppsc->rfchange_inprogress) { in rtl92d_gpio_radio_on_off_checking()
1062 ppsc->rfchange_inprogress = true; in rtl92d_gpio_radio_on_off_checking()
1069 if (ppsc->hwradiooff && e_rfpowerstate_toset == ERFON) { in rtl92d_gpio_radio_on_off_checking()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhw.c78 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723e_get_hw_reg() local
86 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl8723e_get_hw_reg()
108 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl8723e_get_hw_reg()
137 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723e_set_hw_reg() local
410 ppsc->fw_current_inpsmode = *((bool *)val); in rtl8723e_set_hw_reg()
501 (u8 *)(&ppsc->fwctrl_psmode)); in rtl8723e_set_hw_reg()
640 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723e_gen_refresh_led_state() local
646 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl8723e_gen_refresh_led_state()
648 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl8723e_gen_refresh_led_state()
856 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723e_enable_aspm_back_door() local
[all …]
Dled.c99 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723e_led_control() local
101 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl8723e_led_control()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dhw.c22 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()
[all …]
Dphy.c501 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92s_phy_set_rf_power_state() local
506 if (rfpwr_state == ppsc->rfpwr_state) in rtl92s_phy_set_rf_power_state()
511 if ((ppsc->rfpwr_state == ERFOFF) && in rtl92s_phy_set_rf_power_state()
512 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in rtl92s_phy_set_rf_power_state()
523 RT_CLEAR_PS_LEVEL(ppsc, in rtl92s_phy_set_rf_power_state()
529 ppsc->last_sleep_jiffies), in rtl92s_phy_set_rf_power_state()
531 ppsc->last_awake_jiffies = jiffies; in rtl92s_phy_set_rf_power_state()
546 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in rtl92s_phy_set_rf_power_state()
550 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92s_phy_set_rf_power_state()
552 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in rtl92s_phy_set_rf_power_state()
[all …]
Dled.c90 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92se_led_control() local
92 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92se_led_control()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192du/
Ddm.c96 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92du_dm_watchdog() local
109 if (ppsc->rfpwr_state != ERFON || fw_current_inpsmode || in rtl92du_dm_watchdog()
110 !fwps_awake || ppsc->rfchange_inprogress) in rtl92du_dm_watchdog()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c235 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8821ae_fwlps_leave() local
240 if (ppsc->low_power_enable) { in _rtl8821ae_fwlps_leave()
262 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8821ae_fwlps_enter() local
267 if (ppsc->low_power_enable) { in _rtl8821ae_fwlps_enter()
274 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8821ae_fwlps_enter()
284 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8821ae_fwlps_enter()
394 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_get_hw_reg() local
423 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl8821ae_get_hw_reg()
444 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl8821ae_get_hw_reg()
458 if (ppsc->wo_wlan_mode) in rtl8821ae_get_hw_reg()
[all …]
Dfw.c199 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_set_fw_related_for_wowlan() local
212 ppsc->fw_current_inpsmode = false; in rtl8821ae_set_fw_related_for_wowlan()
469 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_set_fw_pwrmode_cmd() local
495 awake_intvl = ppsc->reg_max_lps_awakeintvl; in rtl8821ae_set_fw_pwrmode_cmd()
537 ppsc->smart_ps : 1)); in rtl8821ae_set_fw_pwrmode_cmd()
590 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_set_fw_wowlan_mode() local
599 ((ppsc->wo_wlan_mode & WAKE_ON_PATTERN_MATCH) ? 1 : 0)); in rtl8821ae_set_fw_wowlan_mode()
601 ((ppsc->wo_wlan_mode & WAKE_ON_MAGIC_PACKET) ? 1 : 0)); in rtl8821ae_set_fw_wowlan_mode()
623 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8821ae_set_fw_remote_wake_ctrl_cmd() local
629 enable, ppsc->arp_offload_enable, ppsc->gtk_offload_enable); in rtl8821ae_set_fw_remote_wake_ctrl_cmd()
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c236 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723be_fwlps_leave() local
241 if (ppsc->low_power_enable) { in _rtl8723be_fwlps_leave()
264 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723be_fwlps_enter() local
269 if (ppsc->low_power_enable) { in _rtl8723be_fwlps_enter()
274 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8723be_fwlps_enter()
282 (u8 *)(&ppsc->fwctrl_psmode)); in _rtl8723be_fwlps_enter()
292 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_get_hw_reg() local
300 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl8723be_get_hw_reg()
321 *((bool *)(val)) = ppsc->fw_current_inpsmode; in rtl8723be_get_hw_reg()
399 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_set_hw_reg() local
[all …]
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Ddm.c159 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92de_dm_watchdog() local
171 if ((ppsc->rfpwr_state == ERFON) && ((!fw_current_inpsmode) && in rtl92de_dm_watchdog()
172 fwps_awake) && (!ppsc->rfchange_inprogress)) { in rtl92de_dm_watchdog()
Dhw.c330 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92de_gen_refresh_led_state() local
335 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl92de_gen_refresh_led_state()
337 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl92de_gen_refresh_led_state()
569 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92de_enable_aspm_back_door() local
574 if (ppsc->support_backdoor) in _rtl92de_enable_aspm_back_door()
589 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92de_hw_init() local
698 ppsc->rfpwr_state = ERFON; in rtl92de_hw_init()
708 if (ppsc->rfpwr_state == ERFON) { in rtl92de_hw_init()
956 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92de_card_disable() local
966 ppsc->rfoff_reason > RF_CHANGE_BY_PS) in rtl92de_card_disable()
[all …]
Dled.c99 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92de_led_control() local
101 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92de_led_control()
/linux-6.12.1/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dled.c91 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ee_led_control() local
93 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92ee_led_control()

123