Lines Matching refs:ppsc
64 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()
113 if (ppsc->reg_rfps_level & RT_RF_LPS_LEVEL_ASPM) in _rtl_pci_update_default_setting()
114 ppsc->reg_rfps_level |= RT_RF_OFF_LEVL_ASPM; in _rtl_pci_update_default_setting()
118 if (ppsc->reg_rfps_level & RT_RF_LPS_LEVEL_ASPM) in _rtl_pci_update_default_setting()
119 ppsc->reg_rfps_level |= RT_RF_OFF_LEVL_ASPM; in _rtl_pci_update_default_setting()
120 ppsc->reg_rfps_level |= RT_RF_OFF_LEVL_HALT_NIC; in _rtl_pci_update_default_setting()
124 ppsc->reg_rfps_level |= RT_RF_OFF_LEVL_PCI_D3; in _rtl_pci_update_default_setting()
132 ppsc->support_aspm = false; in _rtl_pci_update_default_setting()
136 ppsc->support_aspm = true; in _rtl_pci_update_default_setting()
137 ppsc->support_backdoor = true; in _rtl_pci_update_default_setting()
142 ppsc->support_aspm = true; in _rtl_pci_update_default_setting()
157 ppsc->support_aspm = false; in _rtl_pci_update_default_setting()
200 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_pci_disable_aspm() local
208 if (!ppsc->support_aspm) in rtl_pci_disable_aspm()
218 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_CLK_REQ) { in rtl_pci_disable_aspm()
219 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_CLK_REQ); in rtl_pci_disable_aspm()
242 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_pci_enable_aspm() local
248 if (!ppsc->support_aspm) in rtl_pci_enable_aspm()
268 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_CLK_REQ) { in rtl_pci_enable_aspm()
269 _rtl_pci_switch_clk_req(hw, (ppsc->reg_rfps_level & in rtl_pci_enable_aspm()
272 RT_SET_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_CLK_REQ); in rtl_pci_enable_aspm()
363 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_pci_init_aspm() local
367 if (ppsc->reg_rfps_level & RT_RF_PS_LEVEL_ALWAYS_ASPM) { in rtl_pci_init_aspm()
370 RT_SET_PS_LEVEL(ppsc, RT_RF_PS_LEVEL_ALWAYS_ASPM); in rtl_pci_init_aspm()
1723 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_pci_start() local
1760 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC); in rtl_pci_start()
1772 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl_pci_stop() local
1793 while (ppsc->rfchange_inprogress) { in rtl_pci_stop()
1803 ppsc->rfchange_inprogress = true; in rtl_pci_stop()
1813 ppsc->rfchange_inprogress = false; in rtl_pci_stop()