Home
last modified time | relevance | path

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

/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c15 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 …]
Drtw_btcoex.c55 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()
Drtw_cmd.c1372 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in lps_ctrl_wk_hdl() local
1396 pwrpriv->LpsIdleCount = 0; in lps_ctrl_wk_hdl()
1407 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
1506 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_lps_change_dtim_hdl() local
1514 mutex_lock(&pwrpriv->lock); in rtw_lps_change_dtim_hdl()
1516 if (pwrpriv->dtim != dtim) in rtw_lps_change_dtim_hdl()
1517 pwrpriv->dtim = dtim; in rtw_lps_change_dtim_hdl()
1519 if (pwrpriv->fw_current_in_ps_mode && (pwrpriv->pwr_mode > PS_MODE_ACTIVE)) { in rtw_lps_change_dtim_hdl()
1520 u8 ps_mode = pwrpriv->pwr_mode; in rtw_lps_change_dtim_hdl()
1525 mutex_unlock(&pwrpriv->lock); in rtw_lps_change_dtim_hdl()
/drivers/staging/r8188eu/core/
Drtw_pwrctrl.c13 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in ips_enter() local
27 _enter_pwrlock(&pwrpriv->lock); in ips_enter()
29 pwrpriv->bips_processing = true; in ips_enter()
32 pwrpriv->ips_mode = pwrpriv->ips_mode_req; in ips_enter()
34 pwrpriv->ips_enter_cnts++; in ips_enter()
35 DBG_88E("==>ips_enter cnts:%d\n", pwrpriv->ips_enter_cnts); in ips_enter()
36 if (rf_off == pwrpriv->change_rfpwrstate) { in ips_enter()
37 pwrpriv->bpower_saving = true; in ips_enter()
40 if (pwrpriv->ips_mode == IPS_LEVEL_2) in ips_enter()
41 pwrpriv->bkeepfwalive = true; in ips_enter()
[all …]
Drtw_p2p.c1638 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in p2p_ps_wk_hdl() local
1654 if (pwrpriv->smart_ps == 0) { in p2p_ps_wk_hdl()
1655 pwrpriv->smart_ps = 2; in p2p_ps_wk_hdl()
1665 if (pwrpriv->smart_ps != 0) { in p2p_ps_wk_hdl()
1666 pwrpriv->smart_ps = 0; in p2p_ps_wk_hdl()
Drtw_cmd.c1504 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in lps_ctrl_wk_hdl() local
1535 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
/drivers/staging/rtl8712/
Drtl871x_pwrctrl.c29 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 …]
/drivers/staging/r8188eu/os_dep/
Dusb_intf.c322 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_suspend() local
339 _enter_pwrlock(&pwrpriv->lock); in rtw_hw_suspend()
340 pwrpriv->bips_processing = true; in rtw_hw_suspend()
371 pwrpriv->rf_pwrstate = rf_off; in rtw_hw_suspend()
372 pwrpriv->bips_processing = false; in rtw_hw_suspend()
374 _exit_pwrlock(&pwrpriv->lock); in rtw_hw_suspend()
384 struct pwrctrl_priv *pwrpriv; in rtw_hw_resume() local
389 pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_resume()
391 _enter_pwrlock(&pwrpriv->lock); in rtw_hw_resume()
392 pwrpriv->bips_processing = true; in rtw_hw_resume()
[all …]
Dioctl_linux.c1693 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_wx_set_enc() local
1788 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
4228 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_dbg_port() local
4229 DBG_88E("==>silent resete cnts:%d\n", pwrpriv->ips_enter_cnts); in rtw_dbg_port()
/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c1137 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_suspend_common() local
1145 pwrpriv->bInSuspend = true; in rtw_suspend_common()
1147 while (pwrpriv->bips_processing) in rtw_suspend_common()
1183 struct pwrctrl_priv *pwrpriv; in rtw_resume_process_normal() local
1196 pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_process_normal()
1214 pwrpriv->bkeepfwalive = false; in rtw_resume_process_normal()
1243 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_common() local
1251 if (pwrpriv) { in rtw_resume_common()
1252 pwrpriv->bInSuspend = false; in rtw_resume_common()
Dsdio_intf.c438 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()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c363 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()
Dsdio_halinit.c799 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()
Drtl8723b_hal_init.c3563 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in SetHwReg8723B() local
3572 if (!pwrpriv->bkeepfwalive) { in SetHwReg8723B()
/drivers/staging/r8188eu/hal/
Drtl8188e_cmd.c181 struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; in rtl8188e_set_FwPwrMode_cmd() local
185 Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable); in rtl8188e_set_FwPwrMode_cmd()
210 H2CSetPwrMode.SmartPS_RLBM = (((pwrpriv->smart_ps << 4) & 0xf0) | (RLBM & 0x0f)); in rtl8188e_set_FwPwrMode_cmd()
Dusb_halinit.c1827 struct pwrctrl_priv *pwrpriv = &Adapter->pwrctrlpriv; in SetHwReg8188EU() local
1836 if (!pwrpriv->bkeepfwalive) { in SetHwReg8188EU()