pwrpriv 827 drivers/staging/rtl8188eu/core/rtw_cmd.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 857 drivers/staging/rtl8188eu/core/rtw_cmd.c pwrpriv->DelayLPSLastTimeStamp = jiffies; pwrpriv 17 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 32 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 33 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 64 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_off; pwrpriv 65 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 67 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 78 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 83 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 84 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 88 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 100 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bkeepfwalive = false; pwrpriv 101 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->brfoffbyhw = false; pwrpriv 103 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_on; pwrpriv 104 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 106 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 116 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 130 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 132 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 135 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ips_mode = pwrpriv->ips_mode_req; pwrpriv 137 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ips_enter_cnts++; pwrpriv 138 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("==>%s:%d\n", __func__, pwrpriv->ips_enter_cnts); pwrpriv 139 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (rf_off == pwrpriv->change_rfpwrstate) { pwrpriv 140 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bpower_saving = true; pwrpriv 143 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->ips_mode == IPS_LEVEL_2) pwrpriv 144 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bkeepfwalive = true; pwrpriv 147 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_off; pwrpriv 149 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 151 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 156 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 162 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 164 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if ((pwrpriv->rf_pwrstate == rf_off) && (!pwrpriv->bips_processing)) { pwrpriv 165 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 166 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_on; pwrpriv 167 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ips_leave_cnts++; pwrpriv 168 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("==>%s:%d\n", __func__, pwrpriv->ips_leave_cnts); pwrpriv 172 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_on; pwrpriv 177 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("==>%s, channel(%d), processing(%x)\n", __func__, padapter->mlmeextpriv.cur_channel, pwrpriv->bips_processing); pwrpriv 190 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 192 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bkeepfwalive = false; pwrpriv 193 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bpower_saving = false; pwrpriv 196 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 223 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 227 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ps_processing = true; pwrpriv 229 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->bips_processing) pwrpriv 236 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (rfpwrstate != pwrpriv->rf_pwrstate) { pwrpriv 238 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_off; pwrpriv 239 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->brfoffbyhw = true; pwrpriv 242 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_on; pwrpriv 245 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("current rf_pwrstate(%s)\n", (pwrpriv->rf_pwrstate == rf_off) ? "rf_off" : "rf_on"); pwrpriv 247 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->pwr_state_check_cnts++; pwrpriv 250 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->ips_mode_req == IPS_NONE) pwrpriv 256 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if ((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4) == 0)) { pwrpriv 258 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_off; pwrpriv 264 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ps_processing = false; pwrpriv 286 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 290 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->btcoex_rfon) { pwrpriv 295 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->rpwm == pslv) { pwrpriv 297 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c ("%s: Already set rpwm[0x%02X], new=0x%02X!\n", __func__, pwrpriv->rpwm, pslv)); pwrpriv 307 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->cpwm = PS_STATE_S4; pwrpriv 323 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c rpwm = pslv | pwrpriv->tog; pwrpriv 325 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c ("%s: rpwm=0x%02x cpwm=0x%02x\n", __func__, rpwm, pwrpriv->cpwm)); pwrpriv 327 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->rpwm = pslv; pwrpriv 331 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->tog += 0x80; pwrpriv 332 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->cpwm = pslv; pwrpriv 338 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 342 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c delta_time = curr_time - pwrpriv->DelayLPSLastTimeStamp; pwrpriv 353 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->bInSuspend) pwrpriv 365 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 376 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == ps_mode) { pwrpriv 380 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if ((pwrpriv->smart_ps == smart_ps) && pwrpriv 381 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c (pwrpriv->bcn_ant_mode == bcn_ant_mode)) pwrpriv 389 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bFwCurrentInPSMode = true; pwrpriv 390 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->pwr_mode = ps_mode; pwrpriv 391 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->smart_ps = smart_ps; pwrpriv 392 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bcn_ant_mode = bcn_ant_mode; pwrpriv 440 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 445 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->bLeisurePs) { pwrpriv 447 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->LpsIdleCount >= 2) { /* 4 Sec */ pwrpriv 448 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) { pwrpriv 449 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bpower_saving = true; pwrpriv 450 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c DBG_88E("%s smart_ps:%d\n", __func__, pwrpriv->smart_ps); pwrpriv 452 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c rtw_set_ps_mode(padapter, pwrpriv->power_mgnt, pwrpriv->smart_ps, 0); pwrpriv 455 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->LpsIdleCount++; pwrpriv 466 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 468 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->bLeisurePs) { pwrpriv 469 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { pwrpriv 472 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) pwrpriv 477 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->bpower_saving = false; pwrpriv 545 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 552 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (time_before(pwrpriv->ips_deny_time, expires)) pwrpriv 553 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ips_deny_time = jiffies + msecs_to_jiffies(ips_deffer_ms); pwrpriv 556 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->ps_processing) { pwrpriv 558 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c while (pwrpriv->ps_processing && pwrpriv 561 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (pwrpriv->ps_processing) pwrpriv 568 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if ((!pwrpriv->bInternalAutoSuspend) && (pwrpriv->bInSuspend)) { pwrpriv 574 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if ((pwrpriv->bInternalAutoSuspend) && (padapter->net_closed)) { pwrpriv 584 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (rf_off == pwrpriv->rf_pwrstate) { pwrpriv 607 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c if (time_before(pwrpriv->ips_deny_time, expires)) pwrpriv 608 drivers/staging/rtl8188eu/core/rtw_pwrctrl.c pwrpriv->ips_deny_time = jiffies + msecs_to_jiffies(ips_deffer_ms); pwrpriv 153 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; pwrpriv 157 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable); pwrpriv 182 drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c H2CSetPwrMode.SmartPS_RLBM = (((pwrpriv->smart_ps<<4)&0xf0) | (RLBM & 0x0f)); pwrpriv 1674 drivers/staging/rtl8188eu/hal/usb_halinit.c struct pwrctrl_priv *pwrpriv = &Adapter->pwrctrlpriv; pwrpriv 1683 drivers/staging/rtl8188eu/hal/usb_halinit.c if (!pwrpriv->bkeepfwalive) { pwrpriv 1585 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 1679 drivers/staging/rtl8188eu/os_dep/ioctl_linux.c if (rf_on == pwrpriv->rf_pwrstate) pwrpriv 203 drivers/staging/rtl8188eu/os_dep/usb_intf.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 216 drivers/staging/rtl8188eu/os_dep/usb_intf.c pwrpriv->bInSuspend = true; pwrpriv 220 drivers/staging/rtl8188eu/os_dep/usb_intf.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 249 drivers/staging/rtl8188eu/os_dep/usb_intf.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 267 drivers/staging/rtl8188eu/os_dep/usb_intf.c struct pwrctrl_priv *pwrpriv = NULL; pwrpriv 275 drivers/staging/rtl8188eu/os_dep/usb_intf.c pwrpriv = &padapter->pwrctrlpriv; pwrpriv 280 drivers/staging/rtl8188eu/os_dep/usb_intf.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 282 drivers/staging/rtl8188eu/os_dep/usb_intf.c pwrpriv->bkeepfwalive = false; pwrpriv 284 drivers/staging/rtl8188eu/os_dep/usb_intf.c pr_debug("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); pwrpriv 286 drivers/staging/rtl8188eu/os_dep/usb_intf.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 293 drivers/staging/rtl8188eu/os_dep/usb_intf.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 299 drivers/staging/rtl8188eu/os_dep/usb_intf.c if (pwrpriv) pwrpriv 300 drivers/staging/rtl8188eu/os_dep/usb_intf.c pwrpriv->bInSuspend = false; pwrpriv 29 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 31 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->rpwm == val8) { pwrpriv 32 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->rpwm_retry == 0) pwrpriv 37 drivers/staging/rtl8712/rtl871x_pwrctrl.c rpwm = val8 | pwrpriv->tog; pwrpriv 40 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->cpwm = val8; pwrpriv 47 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->cpwm = val8; pwrpriv 52 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->rpwm_retry = 0; pwrpriv 53 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->rpwm = val8; pwrpriv 55 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->tog += 0x80; pwrpriv 60 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 67 drivers/staging/rtl8712/rtl871x_pwrctrl.c if ((pwrpriv->pwr_mode != ps_mode) || (pwrpriv->smart_ps != smart_ps)) { pwrpriv 68 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) pwrpriv 69 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->bSleep = true; pwrpriv 71 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->bSleep = false; pwrpriv 72 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->pwr_mode = ps_mode; pwrpriv 73 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->smart_ps = smart_ps; pwrpriv 74 drivers/staging/rtl8712/rtl871x_pwrctrl.c schedule_work(&pwrpriv->SetPSModeWorkItem); pwrpriv 89 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = &(padapter->pwrctrlpriv); pwrpriv 92 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->cpwm_tog == ((preportpwrstate->state) & 0x80)) pwrpriv 95 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 96 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->cpwm = (preportpwrstate->state) & 0xf; pwrpriv 97 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->cpwm >= PS_STATE_S2) { pwrpriv 98 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->alives & CMD_ALIVE) pwrpriv 101 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->cpwm_tog = (preportpwrstate->state) & 0x80; pwrpriv 102 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 118 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; pwrpriv 122 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->cpwm != pwrpriv->rpwm) pwrpriv 123 drivers/staging/rtl8712/rtl871x_pwrctrl.c schedule_work(&pwrpriv->rpwm_workitem); pwrpriv 128 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = container_of(work, pwrpriv 130 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct _adapter *padapter = container_of(pwrpriv, pwrpriv 132 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (!pwrpriv->bSleep) { pwrpriv 133 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 134 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) pwrpriv 136 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 142 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct pwrctrl_priv *pwrpriv = container_of(work, pwrpriv 144 drivers/staging/rtl8712/rtl871x_pwrctrl.c struct _adapter *padapter = container_of(pwrpriv, pwrpriv 146 drivers/staging/rtl8712/rtl871x_pwrctrl.c if (pwrpriv->cpwm != pwrpriv->rpwm) { pwrpriv 147 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_lock(&pwrpriv->mutex_lock); pwrpriv 149 drivers/staging/rtl8712/rtl871x_pwrctrl.c pwrpriv->rpwm_retry = 1; pwrpriv 150 drivers/staging/rtl8712/rtl871x_pwrctrl.c r8712_set_rpwm(padapter, pwrpriv->rpwm); pwrpriv 151 drivers/staging/rtl8712/rtl871x_pwrctrl.c mutex_unlock(&pwrpriv->mutex_lock); pwrpriv 63 drivers/staging/rtl8723bs/core/rtw_btcoex.c struct pwrctrl_priv *pwrpriv; pwrpriv 67 drivers/staging/rtl8723bs/core/rtw_btcoex.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 69 drivers/staging/rtl8723bs/core/rtw_btcoex.c pwrpriv->bpower_saving = true; pwrpriv 76 drivers/staging/rtl8723bs/core/rtw_btcoex.c struct pwrctrl_priv *pwrpriv; pwrpriv 79 drivers/staging/rtl8723bs/core/rtw_btcoex.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 81 drivers/staging/rtl8723bs/core/rtw_btcoex.c if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { pwrpriv 84 drivers/staging/rtl8723bs/core/rtw_btcoex.c pwrpriv->bpower_saving = false; pwrpriv 1452 drivers/staging/rtl8723bs/core/rtw_cmd.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1479 drivers/staging/rtl8723bs/core/rtw_cmd.c pwrpriv->LpsIdleCount = 0; pwrpriv 1492 drivers/staging/rtl8723bs/core/rtw_cmd.c pwrpriv->DelayLPSLastTimeStamp = jiffies; pwrpriv 1591 drivers/staging/rtl8723bs/core/rtw_cmd.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1599 drivers/staging/rtl8723bs/core/rtw_cmd.c mutex_lock(&pwrpriv->lock); pwrpriv 1601 drivers/staging/rtl8723bs/core/rtw_cmd.c if (pwrpriv->dtim != dtim) { pwrpriv 1602 drivers/staging/rtl8723bs/core/rtw_cmd.c DBG_871X("change DTIM from %d to %d, bFwCurrentInPSMode =%d, ps_mode =%d\n", pwrpriv->dtim, dtim, pwrpriv 1603 drivers/staging/rtl8723bs/core/rtw_cmd.c pwrpriv->bFwCurrentInPSMode, pwrpriv->pwr_mode); pwrpriv 1605 drivers/staging/rtl8723bs/core/rtw_cmd.c pwrpriv->dtim = dtim; pwrpriv 1608 drivers/staging/rtl8723bs/core/rtw_cmd.c if ((pwrpriv->bFwCurrentInPSMode == true) && (pwrpriv->pwr_mode > PS_MODE_ACTIVE)) { pwrpriv 1609 drivers/staging/rtl8723bs/core/rtw_cmd.c u8 ps_mode = pwrpriv->pwr_mode; pwrpriv 1616 drivers/staging/rtl8723bs/core/rtw_cmd.c mutex_unlock(&pwrpriv->lock); pwrpriv 1129 drivers/staging/rtl8723bs/core/rtw_mlme.c struct pwrctrl_priv *pwrpriv; pwrpriv 1131 drivers/staging/rtl8723bs/core/rtw_mlme.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 17 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 19 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 22 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_mode = pwrpriv->ips_mode_req; pwrpriv 24 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_enter_cnts++; pwrpriv 25 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("==>ips_enter cnts:%d\n", pwrpriv->ips_enter_cnts); pwrpriv 27 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (rf_off == pwrpriv->change_rfpwrstate) { pwrpriv 28 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bpower_saving = true; pwrpriv 31 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->ips_mode == IPS_LEVEL_2) pwrpriv 32 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bkeepfwalive = true; pwrpriv 35 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_off; pwrpriv 37 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 43 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 46 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c hal_btcoex_IpsNotify(padapter, pwrpriv->ips_mode_req); pwrpriv 48 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 50 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 55 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 58 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rf_pwrstate == rf_off) && (!pwrpriv->bips_processing)) { pwrpriv 59 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bips_processing = true; pwrpriv 60 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_on; pwrpriv 61 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_leave_cnts++; pwrpriv 62 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("==>ips_leave cnts:%d\n", pwrpriv->ips_leave_cnts); pwrpriv 66 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->rf_pwrstate = rf_on; pwrpriv 71 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bips_processing = false; pwrpriv 73 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bkeepfwalive = false; pwrpriv 74 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bpower_saving = false; pwrpriv 82 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 88 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 90 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 156 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 170 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bInSuspend) {/* system suspend or autosuspend */ pwrpriv 176 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ps_processing = true; pwrpriv 178 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->ips_mode_req == IPS_NONE) pwrpriv 184 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rf_pwrstate == rf_on) && ((pwrpriv->pwr_state_check_cnts%4) == 0)) { pwrpriv 186 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->change_rfpwrstate = rf_off; pwrpriv 192 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ps_processing = false; pwrpriv 263 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 268 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->brpwmtimeout) { pwrpriv 271 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rpwm == pslv) pwrpriv 272 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c || ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2))) { pwrpriv 274 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c ("%s: Already set rpwm[0x%02X], new = 0x%02X!\n", __func__, pwrpriv->rpwm, pslv)); pwrpriv 284 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm = PS_STATE_S4; pwrpriv 300 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c rpwm = pslv | pwrpriv->tog; pwrpriv 302 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->cpwm < PS_STATE_S2) && (pslv >= PS_STATE_S2)) pwrpriv 305 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c ("rtw_set_rpwm: rpwm = 0x%02x cpwm = 0x%02x\n", rpwm, pwrpriv->cpwm)); pwrpriv 307 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->rpwm = pslv; pwrpriv 314 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c _set_timer(&pwrpriv->pwr_rpwm_timer, LPS_RPWM_WAIT_MS); pwrpriv 317 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->tog += 0x80; pwrpriv 333 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm = PS_STATE_S4; pwrpriv 334 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm_tog = cpwm_now & PS_TOGGLE; pwrpriv 340 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c _set_timer(&pwrpriv->pwr_rpwm_timer, 1); pwrpriv 345 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm = pslv; pwrpriv 351 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 355 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bInSuspend && pwrpriv->wowlan_mode) pwrpriv 357 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c else if (pwrpriv->bInSuspend && pwrpriv->wowlan_ap_mode) pwrpriv 359 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c else if (pwrpriv->bInSuspend) pwrpriv 362 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bInSuspend) pwrpriv 368 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c delta_time = curr_time - pwrpriv->DelayLPSLastTimeStamp; pwrpriv 394 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 408 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == ps_mode) pwrpriv 413 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 423 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->pwr_mode = ps_mode; pwrpriv 427 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->wowlan_mode || pwrpriv->wowlan_ap_mode) { pwrpriv 436 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm = PS_STATE_S4; pwrpriv 450 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bFwCurrentInPSMode = false; pwrpriv 466 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bFwCurrentInPSMode = true; pwrpriv 467 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->pwr_mode = ps_mode; pwrpriv 468 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->smart_ps = smart_ps; pwrpriv 469 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bcn_ant_mode = bcn_ant_mode; pwrpriv 473 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->alives == 0) pwrpriv 489 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 535 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(dvobj); pwrpriv 555 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bLeisurePs) { pwrpriv 557 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->LpsIdleCount >= 2) { /* 4 Sec */ pwrpriv 558 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) { pwrpriv 560 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bpower_saving = true; pwrpriv 561 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c rtw_set_ps_mode(padapter, pwrpriv->power_mgnt, padapter->registrypriv.smart_ps, 0, buf); pwrpriv 564 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->LpsIdleCount++; pwrpriv 579 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(dvobj); pwrpriv 587 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bLeisurePs) { pwrpriv 588 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { pwrpriv 592 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) pwrpriv 597 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->bpower_saving = false; pwrpriv 606 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(Adapter); pwrpriv 618 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) { pwrpriv 623 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 627 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 631 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->rf_pwrstate == rf_off) pwrpriv 679 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv; pwrpriv 683 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 691 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 695 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c || (pwrpriv->pwr_mode == PS_MODE_ACTIVE)) pwrpriv 698 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 722 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv; pwrpriv 724 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 726 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 728 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->rpwm < PS_STATE_S2) { pwrpriv 729 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("%s: Redundant CPWM Int. RPWM = 0x%02X CPWM = 0x%02x\n", __func__, pwrpriv->rpwm, pwrpriv->cpwm); pwrpriv 733 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm = PS_STATE(preportpwrstate->state); pwrpriv 734 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->cpwm_tog = preportpwrstate->state & PS_TOGGLE; pwrpriv 736 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->cpwm >= PS_STATE_S2) { pwrpriv 737 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->alives & CMD_ALIVE) pwrpriv 740 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->alives & XMIT_ALIVE) pwrpriv 745 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 748 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c ("cpwm_int_hdl: cpwm = 0x%02x\n", pwrpriv->cpwm)); pwrpriv 753 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = container_of(work, struct pwrctrl_priv, cpwm_event); pwrpriv 754 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct dvobj_priv *dvobj = pwrctl_to_dvobj(pwrpriv); pwrpriv 768 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv; pwrpriv 771 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv = container_of(work, struct pwrctrl_priv, rpwmtimeoutwi); pwrpriv 772 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c dvobj = pwrctl_to_dvobj(pwrpriv); pwrpriv 776 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 777 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rpwm == pwrpriv->cpwm) || (pwrpriv->cpwm >= PS_STATE_S2)) { pwrpriv 778 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("%s: rpwm = 0x%02X cpwm = 0x%02X CPWM done!\n", __func__, pwrpriv->rpwm, pwrpriv->cpwm); pwrpriv 781 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 793 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 795 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rpwm == pwrpriv->cpwm) || (pwrpriv->cpwm >= PS_STATE_S2)) { pwrpriv 796 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("%s: cpwm =%d, nothing to do!\n", __func__, pwrpriv->cpwm); pwrpriv 799 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->brpwmtimeout = true; pwrpriv 800 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c rtw_set_rpwm(padapter, pwrpriv->rpwm); pwrpriv 801 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->brpwmtimeout = false; pwrpriv 804 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 812 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = from_timer(pwrpriv, t, pwr_rpwm_timer); pwrpriv 814 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("+%s: rpwm = 0x%02X cpwm = 0x%02X\n", __func__, pwrpriv->rpwm, pwrpriv->cpwm); pwrpriv 816 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->rpwm == pwrpriv->cpwm) || (pwrpriv->cpwm >= PS_STATE_S2)) { pwrpriv 817 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c DBG_871X("+%s: cpwm =%d, nothing to do!\n", __func__, pwrpriv->cpwm); pwrpriv 821 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c _set_workitem(&pwrpriv->rpwmtimeoutwi); pwrpriv 1190 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1191 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_deny_time = jiffies + msecs_to_jiffies(ms); pwrpriv 1204 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(dvobj); pwrpriv 1217 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (time_before(pwrpriv->ips_deny_time, deny_time)) pwrpriv 1218 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_deny_time = deny_time; pwrpriv 1221 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->ps_processing) { pwrpriv 1223 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c while (pwrpriv->ps_processing && jiffies_to_msecs(jiffies - start) <= 3000) pwrpriv 1225 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->ps_processing) pwrpriv 1231 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (!(pwrpriv->bInternalAutoSuspend) && pwrpriv->bInSuspend) { pwrpriv 1233 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c while (pwrpriv->bInSuspend pwrpriv 1238 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bInSuspend) pwrpriv 1245 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (!(pwrpriv->bInternalAutoSuspend) && pwrpriv->bInSuspend) { pwrpriv 1251 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->bInternalAutoSuspend && padapter->net_closed) { pwrpriv 1262 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (rf_off == pwrpriv->rf_pwrstate) { pwrpriv 1289 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (time_before(pwrpriv->ips_deny_time, deny_time)) pwrpriv 1290 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ips_deny_time = deny_time; pwrpriv 1342 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv; pwrpriv 1347 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1349 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 1350 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if (pwrpriv->ps_deny & BIT(reason)) { pwrpriv 1354 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ps_deny |= BIT(reason); pwrpriv 1355 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 1367 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c struct pwrctrl_priv *pwrpriv; pwrpriv 1373 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1375 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_lock(&pwrpriv->lock); pwrpriv 1376 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c if ((pwrpriv->ps_deny & BIT(reason)) == 0) { pwrpriv 1380 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c pwrpriv->ps_deny &= ~BIT(reason); pwrpriv 1381 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c mutex_unlock(&pwrpriv->lock); pwrpriv 2083 drivers/staging/rtl8723bs/core/rtw_wlan_util.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(adapter); pwrpriv 2087 drivers/staging/rtl8723bs/core/rtw_wlan_util.c DBG_871X("rf_pwrstate = 0x%02x\n", pwrpriv->rf_pwrstate); pwrpriv 2226 drivers/staging/rtl8723bs/core/rtw_wlan_util.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 2233 drivers/staging/rtl8723bs/core/rtw_wlan_util.c if (pwrpriv->wowlan_fw_iv > psta->dot11txpn.val) { pwrpriv 2235 drivers/staging/rtl8723bs/core/rtw_wlan_util.c psta->dot11txpn.val = pwrpriv->wowlan_fw_iv + 2; pwrpriv 876 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if (!pwrpriv->pno_in_resume) { pwrpriv 1015 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1020 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if (pwrpriv->dtim > 0) pwrpriv 1021 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c DBG_871X("%s(): FW LPS mode = %d, SmartPS =%d, dtim =%d\n", __func__, psmode, pwrpriv->smart_ps, pwrpriv->dtim); pwrpriv 1023 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c DBG_871X("%s(): FW LPS mode = %d, SmartPS =%d\n", __func__, psmode, pwrpriv->smart_ps); pwrpriv 1032 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if (pwrpriv->dtim > 0 && pwrpriv->dtim < 16) pwrpriv 1033 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c awake_intvl = pwrpriv->dtim+1;/* DTIM = (awake_intvl - 1) */ pwrpriv 1067 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c SET_8723B_H2CCMD_PWRMODE_PARM_SMART_PS(u1H2CPwrModeParm, pwrpriv->smart_ps); pwrpriv 1918 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1967 drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c if (pwrpriv->wowlan_ap_mode) pwrpriv 3758 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 3760 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c if (pwrpriv->wowlan_mode) { pwrpriv 4111 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 4120 drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c if (!pwrpriv->bkeepfwalive) { pwrpriv 972 drivers/staging/rtl8723bs/hal/sdio_halinit.c struct pwrctrl_priv *pwrpriv; pwrpriv 978 drivers/staging/rtl8723bs/hal/sdio_halinit.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 996 drivers/staging/rtl8723bs/hal/sdio_halinit.c restore_iqk_rst = pwrpriv->bips_processing; pwrpriv 1844 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1942 drivers/staging/rtl8723bs/os_dep/ioctl_linux.c if (rf_on == pwrpriv->rf_pwrstate) pwrpriv 1276 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1282 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X("wowlan_mode: %d\n", pwrpriv->wowlan_mode); pwrpriv 1283 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X("wowlan_pno_enable: %d\n", pwrpriv->wowlan_pno_enable); pwrpriv 1285 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_mode == true) { pwrpriv 1336 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_pno_enable) pwrpriv 1337 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X_LEVEL(_drv_always_, "%s: pno: %d\n", __func__, pwrpriv->wowlan_pno_enable); pwrpriv 1342 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X_LEVEL(_drv_always_, "%s: ### ERROR ### wowlan_mode =%d\n", __func__, pwrpriv->wowlan_mode); pwrpriv 1353 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1358 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_ap_mode = true; pwrpriv 1360 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X("wowlan_ap_mode: %d\n", pwrpriv->wowlan_ap_mode); pwrpriv 1430 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); pwrpriv 1440 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bInSuspend = true; pwrpriv 1442 drivers/staging/rtl8723bs/os_dep/os_intfs.c while (pwrpriv->bips_processing == true) pwrpriv 1473 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_mode = true; pwrpriv 1474 drivers/staging/rtl8723bs/os_dep/os_intfs.c } else if (pwrpriv->wowlan_pno_enable == true) { pwrpriv 1475 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_mode |= pwrpriv->wowlan_pno_enable; pwrpriv 1478 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_mode == true) pwrpriv 1512 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1523 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1538 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->pno_in_resume = true; pwrpriv 1541 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_mode == true) { pwrpriv 1544 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bFwCurrentInPSMode = false; pwrpriv 1587 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X_LEVEL(_drv_always_, "%s: ### ERROR ### wowlan_mode =%d\n", __func__, pwrpriv->wowlan_mode); pwrpriv 1596 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_wake_reason == FWDecisionDisconnect || pwrpriv 1597 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_wake_reason == Rx_DisAssoc || pwrpriv 1598 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_wake_reason == Rx_DeAuth) { pwrpriv 1600 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_wake_reason); pwrpriv 1616 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_mode == true) { pwrpriv 1617 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bips_processing = false; pwrpriv 1623 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_mode = false; pwrpriv 1626 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_wake_reason = 0; pwrpriv 1637 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1647 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1656 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bFwCurrentInPSMode = false; pwrpriv 1674 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_ap_mode = false; pwrpriv 1697 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bips_processing = false; pwrpriv 1701 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->wowlan_wake_reason = 0; pwrpriv 1711 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv; pwrpriv 1724 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1746 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bkeepfwalive = false; pwrpriv 1748 drivers/staging/rtl8723bs/os_dep/os_intfs.c DBG_871X("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); pwrpriv 1789 drivers/staging/rtl8723bs/os_dep/os_intfs.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 1797 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv->wowlan_mode == true) pwrpriv 1817 drivers/staging/rtl8723bs/os_dep/os_intfs.c if (pwrpriv) { pwrpriv 1818 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->bInSuspend = false; pwrpriv 1820 drivers/staging/rtl8723bs/os_dep/os_intfs.c pwrpriv->pno_in_resume = false; pwrpriv 554 drivers/staging/rtl8723bs/os_dep/sdio_intf.c struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); pwrpriv 563 drivers/staging/rtl8723bs/os_dep/sdio_intf.c if (pwrpriv->bInSuspend == true) { pwrpriv 564 drivers/staging/rtl8723bs/os_dep/sdio_intf.c DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend); pwrpriv 574 drivers/staging/rtl8723bs/os_dep/sdio_intf.c struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); pwrpriv 578 drivers/staging/rtl8723bs/os_dep/sdio_intf.c if (pwrpriv->bInSuspend == false) { pwrpriv 580 drivers/staging/rtl8723bs/os_dep/sdio_intf.c DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend);