Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/net/wireless/rtlwifi/
Dps.c37 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_ps_enable_nic() local
51 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl_ps_enable_nic()
87 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_ps_set_rf_state() local
105 if (ppsc->rfchange_inprogress) { in rtl_ps_set_rf_state()
115 while (ppsc->rfchange_inprogress) { in rtl_ps_set_rf_state()
127 ppsc->rfchange_inprogress = true; in rtl_ps_set_rf_state()
135 rtstate = ppsc->rfpwr_state; in rtl_ps_set_rf_state()
139 ppsc->rfoff_reason &= (~changesource); in rtl_ps_set_rf_state()
142 (ppsc->hwradiooff == true)) { in rtl_ps_set_rf_state()
143 ppsc->hwradiooff = false; in rtl_ps_set_rf_state()
[all …]
Dpci.c48 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl_pci_update_default_setting() local
52 ppsc->reg_rfps_level = 0; in _rtl_pci_update_default_setting()
53 ppsc->support_aspm = 0; in _rtl_pci_update_default_setting()
56 ppsc->const_amdpci_aspm = rtlpci->const_amdpci_aspm; in _rtl_pci_update_default_setting()
64 ppsc->reg_rfps_level |= RT_RF_LPS_LEVEL_ASPM; in _rtl_pci_update_default_setting()
69 ppsc->reg_rfps_level |= (RT_RF_LPS_LEVEL_ASPM | in _rtl_pci_update_default_setting()
78 ppsc->reg_rfps_level &= ~(RT_RF_LPS_LEVEL_ASPM); in _rtl_pci_update_default_setting()
79 ppsc->reg_rfps_level |= (RT_RF_PS_LEVEL_ALWAYS_ASPM | in _rtl_pci_update_default_setting()
88 ppsc->reg_rfps_level &= ~(RT_RF_LPS_LEVEL_ASPM | in _rtl_pci_update_default_setting()
90 ppsc->reg_rfps_level |= RT_RF_PS_LEVEL_ALWAYS_ASPM; in _rtl_pci_update_default_setting()
[all …]
Dcore.c61 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_op_stop() local
66 if (unlikely(ppsc->rfpwr_state == ERFOFF)) { in rtl_op_stop()
89 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_op_tx() local
91 if (unlikely(is_hal_stop(rtlhal) || ppsc->rfpwr_state != ERFON)) in rtl_op_tx()
201 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_op_config() local
221 if (unlikely(ppsc->rfpwr_state == ERFOFF)) in rtl_op_config()
450 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_op_bss_info_changed() local
687 if (ppsc->fwctrl_lps) { in rtl_op_bss_info_changed()
692 ppsc->report_linked = true; in rtl_op_bss_info_changed()
695 if (ppsc->fwctrl_lps) { in rtl_op_bss_info_changed()
[all …]
Dusb.c365 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl_usb_init_sw() local
369 ppsc->inactiveps = false; in _rtl_usb_init_sw()
370 ppsc->leisure_ps = false; in _rtl_usb_init_sw()
371 ppsc->fwctrl_lps = false; in _rtl_usb_init_sw()
372 ppsc->reg_fwctrl_lps = 3; in _rtl_usb_init_sw()
373 ppsc->reg_max_lps_awakeintvl = 5; in _rtl_usb_init_sw()
374 ppsc->fwctrl_psmode = FW_PS_DTIM_MODE; in _rtl_usb_init_sw()
Dbase.c626 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_is_special_data() local
660 ppsc->last_delaylps_stamp_jiffies = in rtl_is_special_data()
670 ppsc->last_delaylps_stamp_jiffies = jiffies; in rtl_is_special_data()
680 ppsc->last_delaylps_stamp_jiffies = jiffies; in rtl_is_special_data()
Dwifi.h1761 #define RT_IN_PS_LEVEL(ppsc, _ps_flg) \ argument
1762 ((ppsc->cur_ps_level & _ps_flg) ? true : false)
1763 #define RT_CLEAR_PS_LEVEL(ppsc, _ps_flg) \ argument
1764 (ppsc->cur_ps_level &= (~(_ps_flg)))
1765 #define RT_SET_PS_LEVEL(ppsc, _ps_flg) \ argument
1766 (ppsc->cur_ps_level |= _ps_flg)
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192ce/
Dphy.c486 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_phy_set_rf_power_state() local
491 ppsc->set_rfpowerstate_inprogress = true; in _rtl92ce_phy_set_rf_power_state()
494 if ((ppsc->rfpwr_state == ERFOFF) && in _rtl92ce_phy_set_rf_power_state()
495 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in _rtl92ce_phy_set_rf_power_state()
505 RT_CLEAR_PS_LEVEL(ppsc, in _rtl92ce_phy_set_rf_power_state()
511 ppsc-> in _rtl92ce_phy_set_rf_power_state()
513 ppsc->last_awake_jiffies = jiffies; in _rtl92ce_phy_set_rf_power_state()
553 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in _rtl92ce_phy_set_rf_power_state()
557 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92ce_phy_set_rf_power_state()
559 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { in _rtl92ce_phy_set_rf_power_state()
[all …]
Dhw.c96 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_get_hw_reg() local
104 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92ce_get_hw_reg()
126 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92ce_get_hw_reg()
163 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_set_hw_reg() local
473 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92ce_set_hw_reg()
670 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_gen_refresh_led_state() local
676 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) in _rtl92ce_gen_refresh_led_state()
678 else if (ppsc->rfoff_reason == RF_CHANGE_BY_INIT) in _rtl92ce_gen_refresh_led_state()
866 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_enable_aspm_back_door() local
872 if (ppsc->support_backdoor) in _rtl92ce_enable_aspm_back_door()
[all …]
Dled.c129 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_led_control() local
131 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92ce_led_control()
Dtrx.c731 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_tx_fill_desc() local
874 if ((!ieee80211_is_data_qos(fc)) && ppsc->leisure_ps && in rtl92ce_tx_fill_desc()
875 ppsc->fwctrl_lps) { in rtl92ce_tx_fill_desc()
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192cu/
Dphy.c468 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92cu_phy_set_rf_power_state() local
473 ppsc->set_rfpowerstate_inprogress = true; in _rtl92cu_phy_set_rf_power_state()
476 if ((ppsc->rfpwr_state == ERFOFF) && in _rtl92cu_phy_set_rf_power_state()
477 RT_IN_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC)) { in _rtl92cu_phy_set_rf_power_state()
488 RT_CLEAR_PS_LEVEL(ppsc, in _rtl92cu_phy_set_rf_power_state()
494 ppsc-> in _rtl92cu_phy_set_rf_power_state()
496 ppsc->last_awake_jiffies = jiffies; in _rtl92cu_phy_set_rf_power_state()
535 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_HALT_NIC) { in _rtl92cu_phy_set_rf_power_state()
539 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in _rtl92cu_phy_set_rf_power_state()
541 if (ppsc->rfoff_reason == RF_CHANGE_BY_IPS) { in _rtl92cu_phy_set_rf_power_state()
[all …]
Dhw.c1170 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_hw_init() local
1208 ppsc->rfpwr_state = ERFON; in rtl92cu_hw_init()
1210 if (ppsc->rfpwr_state == ERFON) { in rtl92cu_hw_init()
1554 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_card_disable() local
1563 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl92cu_card_disable()
1729 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_get_hw_reg() local
1737 *((enum rf_pwrstate *)(val)) = ppsc->rfpwr_state; in rtl92cu_get_hw_reg()
1758 *((bool *) (val)) = ppsc->fw_current_inpsmode; in rtl92cu_get_hw_reg()
1792 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_set_hw_reg() local
2114 ppsc->fw_current_inpsmode = *((bool *) val); in rtl92cu_set_hw_reg()
[all …]
Dled.c127 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_led_control() local
129 if ((ppsc->rfoff_reason > RF_CHANGE_BY_PS) && in rtl92cu_led_control()
Dtrx.c505 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92cu_tx_fill_desc() local
609 if ((!ieee80211_is_data_qos(fc)) && ppsc->leisure_ps && in rtl92cu_tx_fill_desc()
610 ppsc->fwctrl_lps) { in rtl92cu_tx_fill_desc()
/linux-2.6.39/drivers/net/wireless/rtlwifi/rtl8192c/
Dfw_common.c547 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92c_set_fw_pwrmode_cmd() local
554 ppsc->reg_max_lps_awakeintvl); in rtl92c_set_fw_pwrmode_cmd()
Ddm_common.c1375 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92c_dm_watchdog() local
1384 if ((ppsc->rfpwr_state == ERFON) && ((!fw_current_inpsmode) && in rtl92c_dm_watchdog()
1386 && (!ppsc->rfchange_inprogress)) { in rtl92c_dm_watchdog()