/Linux-v6.1/drivers/staging/rtl8723bs/core/ |
D | rtw_pwrctrl.c | 15 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in _ips_enter() local 17 pwrpriv->bips_processing = true; in _ips_enter() 20 pwrpriv->ips_mode = pwrpriv->ips_mode_req; in _ips_enter() 22 pwrpriv->ips_enter_cnts++; in _ips_enter() 24 if (rf_off == pwrpriv->change_rfpwrstate) { in _ips_enter() 25 pwrpriv->bpower_saving = true; in _ips_enter() 27 if (pwrpriv->ips_mode == IPS_LEVEL_2) in _ips_enter() 28 pwrpriv->bkeepfwalive = true; in _ips_enter() 31 pwrpriv->rf_pwrstate = rf_off; in _ips_enter() 33 pwrpriv->bips_processing = false; in _ips_enter() [all …]
|
D | rtw_btcoex.c | 55 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Enter() local 59 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Enter() 61 pwrpriv->bpower_saving = true; in rtw_btcoex_LPS_Enter() 68 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Leave() local 71 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Leave() 73 if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { in rtw_btcoex_LPS_Leave() 76 pwrpriv->bpower_saving = false; in rtw_btcoex_LPS_Leave()
|
D | rtw_cmd.c | 1269 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in lps_ctrl_wk_hdl() local 1293 pwrpriv->LpsIdleCount = 0; in lps_ctrl_wk_hdl() 1304 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl() 1401 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_lps_change_dtim_hdl() local 1409 mutex_lock(&pwrpriv->lock); in rtw_lps_change_dtim_hdl() 1411 pwrpriv->dtim = dtim; in rtw_lps_change_dtim_hdl() 1413 if (pwrpriv->fw_current_in_ps_mode && (pwrpriv->pwr_mode > PS_MODE_ACTIVE)) { in rtw_lps_change_dtim_hdl() 1414 u8 ps_mode = pwrpriv->pwr_mode; in rtw_lps_change_dtim_hdl() 1419 mutex_unlock(&pwrpriv->lock); in rtw_lps_change_dtim_hdl()
|
/Linux-v6.1/drivers/staging/rtl8712/ |
D | rtl871x_pwrctrl.c | 29 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_rpwm() local 31 if (pwrpriv->rpwm == val8) { in r8712_set_rpwm() 32 if (pwrpriv->rpwm_retry == 0) in r8712_set_rpwm() 37 rpwm = val8 | pwrpriv->tog; in r8712_set_rpwm() 40 pwrpriv->cpwm = val8; in r8712_set_rpwm() 47 pwrpriv->cpwm = val8; in r8712_set_rpwm() 52 pwrpriv->rpwm_retry = 0; in r8712_set_rpwm() 53 pwrpriv->rpwm = val8; in r8712_set_rpwm() 55 pwrpriv->tog += 0x80; in r8712_set_rpwm() 60 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_ps_mode() local [all …]
|
/Linux-v6.1/drivers/staging/r8188eu/core/ |
D | rtw_pwrctrl.c | 13 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in ips_enter() local 20 mutex_lock(&pwrpriv->lock); in ips_enter() 22 pwrpriv->bips_processing = true; in ips_enter() 25 pwrpriv->ips_mode = pwrpriv->ips_mode_req; in ips_enter() 27 pwrpriv->ips_enter_cnts++; in ips_enter() 28 if (rf_off == pwrpriv->change_rfpwrstate) { in ips_enter() 29 pwrpriv->bpower_saving = true; in ips_enter() 31 if (pwrpriv->ips_mode == IPS_LEVEL_2) in ips_enter() 32 pwrpriv->bkeepfwalive = true; in ips_enter() 35 pwrpriv->rf_pwrstate = rf_off; in ips_enter() [all …]
|
D | rtw_p2p.c | 1594 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in p2p_ps_wk_hdl() local 1610 if (pwrpriv->smart_ps == 0) { in p2p_ps_wk_hdl() 1611 pwrpriv->smart_ps = 2; in p2p_ps_wk_hdl() 1612 rtw_set_firmware_ps_mode(padapter, pwrpriv->pwr_mode); in p2p_ps_wk_hdl() 1621 if (pwrpriv->smart_ps != 0) { in p2p_ps_wk_hdl() 1622 pwrpriv->smart_ps = 0; in p2p_ps_wk_hdl() 1623 rtw_set_firmware_ps_mode(padapter, pwrpriv->pwr_mode); in p2p_ps_wk_hdl()
|
D | rtw_cmd.c | 913 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in lps_ctrl_wk_hdl() local 943 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
|
/Linux-v6.1/drivers/staging/r8188eu/os_dep/ |
D | usb_intf.c | 199 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_suspend() local 205 pwrpriv->bInSuspend = true; in rtw_suspend() 209 mutex_lock(&pwrpriv->lock); in rtw_suspend() 230 mutex_unlock(&pwrpriv->lock); in rtw_suspend() 247 struct pwrctrl_priv *pwrpriv = NULL; in rtw_resume() local 251 pwrpriv = &padapter->pwrctrlpriv; in rtw_resume() 253 mutex_lock(&pwrpriv->lock); in rtw_resume() 255 if (pwrpriv) in rtw_resume() 256 pwrpriv->bkeepfwalive = false; in rtw_resume() 259 mutex_unlock(&pwrpriv->lock); in rtw_resume() [all …]
|
D | os_intfs.c | 736 struct pwrctrl_priv *pwrpriv = &adapter->pwrctrlpriv; in rtw_fifo_cleanup() local 750 if (!pwrpriv->bkeepfwalive) { in rtw_fifo_cleanup()
|
D | ioctl_linux.c | 1531 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_wx_set_enc() local 1617 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
|
/Linux-v6.1/drivers/staging/rtl8723bs/os_dep/ |
D | os_intfs.c | 1133 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_suspend_common() local 1141 pwrpriv->bInSuspend = true; in rtw_suspend_common() 1143 while (pwrpriv->bips_processing) in rtw_suspend_common() 1179 struct pwrctrl_priv *pwrpriv; in rtw_resume_process_normal() local 1192 pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_process_normal() 1210 pwrpriv->bkeepfwalive = false; in rtw_resume_process_normal() 1239 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_common() local 1247 if (pwrpriv) { in rtw_resume_common() 1248 pwrpriv->bInSuspend = false; in rtw_resume_common()
|
D | sdio_intf.c | 438 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_sdio_suspend() local 445 if (pwrpriv->bInSuspend) { in rtw_sdio_suspend() 457 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_process() local 461 if (!pwrpriv->bInSuspend) { in rtw_resume_process()
|
/Linux-v6.1/drivers/staging/rtl8723bs/hal/ |
D | rtl8723b_cmd.c | 363 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_set_FwPwrMode_cmd() local 368 if (pwrpriv->dtim > 0 && pwrpriv->dtim < 16) in rtl8723b_set_FwPwrMode_cmd() 369 awake_intvl = pwrpriv->dtim+1;/* DTIM = (awake_intvl - 1) */ in rtl8723b_set_FwPwrMode_cmd() 401 SET_8723B_H2CCMD_PWRMODE_PARM_SMART_PS(u1H2CPwrModeParm, pwrpriv->smart_ps); in rtl8723b_set_FwPwrMode_cmd()
|
D | sdio_halinit.c | 799 struct pwrctrl_priv *pwrpriv; in rtl8723bs_hal_init() local 805 pwrpriv = adapter_to_pwrctl(padapter); in rtl8723bs_hal_init() 823 restore_iqk_rst = pwrpriv->bips_processing; in rtl8723bs_hal_init()
|
D | rtl8723b_hal_init.c | 3551 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in SetHwReg8723B() local 3560 if (!pwrpriv->bkeepfwalive) { in SetHwReg8723B()
|
/Linux-v6.1/drivers/staging/r8188eu/hal/ |
D | rtl8188e_cmd.c | 155 struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; in rtl8188e_set_FwPwrMode_cmd() local 181 H2CSetPwrMode.SmartPS_RLBM = (((pwrpriv->smart_ps << 4) & 0xf0) | (RLBM & 0x0f)); in rtl8188e_set_FwPwrMode_cmd()
|