Lines Matching refs:ppsc
13 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
30 RT_CLEAR_PS_LEVEL(ppsc, RT_RF_OFF_LEVL_HALT_NIC);
70 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
80 if (ppsc->rfchange_inprogress) {
88 while (ppsc->rfchange_inprogress) {
98 ppsc->rfchange_inprogress = true;
106 ppsc->rfoff_reason &= (~changesource);
109 (ppsc->hwradiooff)) {
110 ppsc->hwradiooff = false;
113 if (!ppsc->rfoff_reason) {
114 ppsc->rfoff_reason = 0;
122 if ((changesource == RF_CHANGE_BY_HW) && !ppsc->hwradiooff) {
123 ppsc->hwradiooff = true;
126 ppsc->rfoff_reason |= changesource;
131 ppsc->rfoff_reason |= changesource;
144 ppsc->rfchange_inprogress = false;
154 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
156 ppsc->swrf_processing = true;
158 if (ppsc->inactive_pwrstate == ERFON &&
160 if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) &&
161 RT_IN_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM)) {
163 RT_CLEAR_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM);
167 rtl_ps_set_rf_state(hw, ppsc->inactive_pwrstate,
170 if (ppsc->inactive_pwrstate == ERFOFF &&
172 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM &&
173 !RT_IN_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM)) {
175 RT_SET_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM);
179 ppsc->swrf_processing = false;
190 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
214 if (ppsc->inactiveps) {
215 rtstate = ppsc->rfpwr_state;
228 !ppsc->swrf_processing &&
234 ppsc->inactive_pwrstate = ERFOFF;
235 ppsc->in_powersavemode = true;
240 ppsc->inactive_pwrstate);
266 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
272 if (ppsc->inactiveps) {
273 rtstate = ppsc->rfpwr_state;
276 !ppsc->swrf_processing &&
277 ppsc->rfoff_reason <= RF_CHANGE_BY_IPS) {
279 ppsc->inactive_pwrstate = ERFON;
280 ppsc->in_powersavemode = false;
285 ppsc->inactive_pwrstate);
303 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
307 ppsc->last_delaylps_stamp_jiffies);
329 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
338 if (ppsc->dot11_psmode == rt_psmode && rt_psmode == EACTIVE)
342 ppsc->dot11_psmode = rt_psmode;
354 if ((ppsc->fwctrl_lps) && ppsc->report_linked) {
355 if (ppsc->dot11_psmode == EACTIVE) {
360 ppsc->pwr_mode = FW_PS_ACTIVE_MODE;
361 ppsc->smart_ps = 0;
364 if (ppsc->p2p_ps_info.opp_ps)
373 ppsc->fwctrl_psmode);
377 ppsc->pwr_mode = ppsc->fwctrl_psmode;
378 ppsc->smart_ps = 2;
385 ppsc->dot11_psmode = EACTIVE;
395 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
398 if (!ppsc->fwctrl_lps)
419 /* Don't need to check (ppsc->dot11_psmode == EACTIVE), because
434 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
439 if (ppsc->fwctrl_lps) {
440 if (ppsc->dot11_psmode != EACTIVE) {
445 if (ppsc->reg_rfps_level & RT_RF_LPS_LEVEL_ASPM &&
446 RT_IN_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM) &&
449 RT_CLEAR_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM);
546 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
554 if (ppsc->reg_rfps_level & RT_RF_LPS_LEVEL_ASPM &&
555 RT_IN_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM)) {
557 RT_CLEAR_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM);
578 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw));
606 if (ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM &&
607 !RT_IN_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM)) {
609 RT_SET_PS_LEVEL(ppsc, RT_PS_LEVEL_ASPM);