Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_pwrctrl.c17 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_suspend() local
32 mutex_lock(&pwrpriv->mutex_lock); in rtw_hw_suspend()
33 pwrpriv->bips_processing = true; in rtw_hw_suspend()
64 pwrpriv->rf_pwrstate = rf_off; in rtw_hw_suspend()
65 pwrpriv->bips_processing = false; in rtw_hw_suspend()
67 mutex_unlock(&pwrpriv->mutex_lock); in rtw_hw_suspend()
78 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_resume() local
83 mutex_lock(&pwrpriv->mutex_lock); in rtw_hw_resume()
84 pwrpriv->bips_processing = true; in rtw_hw_resume()
88 mutex_unlock(&pwrpriv->mutex_lock); in rtw_hw_resume()
[all …]
Drtw_cmd.c848 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in lps_ctrl_wk_hdl() local
878 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c17 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in _ips_enter() local
19 pwrpriv->bips_processing = true; in _ips_enter()
22 pwrpriv->ips_mode = pwrpriv->ips_mode_req; in _ips_enter()
24 pwrpriv->ips_enter_cnts++; in _ips_enter()
25 DBG_871X("==>ips_enter cnts:%d\n", pwrpriv->ips_enter_cnts); in _ips_enter()
27 if (rf_off == pwrpriv->change_rfpwrstate) { in _ips_enter()
28 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 …]
Drtw_btcoex.c63 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Enter() local
67 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Enter()
69 pwrpriv->bpower_saving = true; in rtw_btcoex_LPS_Enter()
76 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Leave() local
79 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Leave()
81 if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { in rtw_btcoex_LPS_Leave()
84 pwrpriv->bpower_saving = false; in rtw_btcoex_LPS_Leave()
Drtw_cmd.c1440 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in lps_ctrl_wk_hdl() local
1467 pwrpriv->LpsIdleCount = 0; in lps_ctrl_wk_hdl()
1480 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
1579 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_lps_change_dtim_hdl() local
1587 mutex_lock(&pwrpriv->lock); in rtw_lps_change_dtim_hdl()
1589 if (pwrpriv->dtim != dtim) { in rtw_lps_change_dtim_hdl()
1590 DBG_871X("change DTIM from %d to %d, bFwCurrentInPSMode =%d, ps_mode =%d\n", pwrpriv->dtim, dtim, in rtw_lps_change_dtim_hdl()
1591 pwrpriv->bFwCurrentInPSMode, pwrpriv->pwr_mode); in rtw_lps_change_dtim_hdl()
1593 pwrpriv->dtim = dtim; in rtw_lps_change_dtim_hdl()
1596 if ((pwrpriv->bFwCurrentInPSMode == true) && (pwrpriv->pwr_mode > PS_MODE_ACTIVE)) { in rtw_lps_change_dtim_hdl()
[all …]
Drtw_wlan_util.c2014 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(adapter); in rtw_get_gpio() local
2018 DBG_871X("rf_pwrstate = 0x%02x\n", pwrpriv->rf_pwrstate); in rtw_get_gpio()
2157 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_set_sec_pn() local
2164 if (pwrpriv->wowlan_fw_iv > psta->dot11txpn.val) { in rtw_set_sec_pn()
2166 psta->dot11txpn.val = pwrpriv->wowlan_fw_iv + 2; in rtw_set_sec_pn()
/Linux-v5.10/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 …]
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c1253 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_suspend_wow() local
1259 DBG_871X("wowlan_mode: %d\n", pwrpriv->wowlan_mode); in rtw_suspend_wow()
1260 DBG_871X("wowlan_pno_enable: %d\n", pwrpriv->wowlan_pno_enable); in rtw_suspend_wow()
1262 if (pwrpriv->wowlan_mode) { in rtw_suspend_wow()
1311 if (pwrpriv->wowlan_pno_enable) in rtw_suspend_wow()
1312 DBG_871X_LEVEL(_drv_always_, "%s: pno: %d\n", __func__, pwrpriv->wowlan_pno_enable); in rtw_suspend_wow()
1316 …DBG_871X_LEVEL(_drv_always_, "%s: ### ERROR ### wowlan_mode =%d\n", __func__, pwrpriv->wowlan_mode… in rtw_suspend_wow()
1327 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_suspend_ap_wow() local
1332 pwrpriv->wowlan_ap_mode = true; in rtw_suspend_ap_wow()
1334 DBG_871X("wowlan_ap_mode: %d\n", pwrpriv->wowlan_ap_mode); in rtw_suspend_ap_wow()
[all …]
Dsdio_intf.c554 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_sdio_suspend() local
563 if (pwrpriv->bInSuspend) { in rtw_sdio_suspend()
564 DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend); in rtw_sdio_suspend()
574 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_process() local
578 if (!pwrpriv->bInSuspend) { in rtw_resume_process()
580 DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend); in rtw_resume_process()
Dioctl_linux.c1844 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_wx_set_enc() local
1942 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dusb_intf.c204 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_suspend() local
217 pwrpriv->bInSuspend = true; in rtw_suspend()
221 mutex_lock(&pwrpriv->mutex_lock); in rtw_suspend()
250 mutex_unlock(&pwrpriv->mutex_lock); in rtw_suspend()
268 struct pwrctrl_priv *pwrpriv = NULL; in rtw_resume_process() local
276 pwrpriv = &padapter->pwrctrlpriv; in rtw_resume_process()
281 mutex_lock(&pwrpriv->mutex_lock); in rtw_resume_process()
283 pwrpriv->bkeepfwalive = false; in rtw_resume_process()
285 pr_debug("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); in rtw_resume_process()
287 mutex_unlock(&pwrpriv->mutex_lock); in rtw_resume_process()
[all …]
Dioctl_linux.c1569 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_wx_set_enc() local
1663 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c879 if (!pwrpriv->pno_in_resume) { in rtl8723b_set_FwAoacRsvdPage_cmd()
1018 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_set_FwPwrMode_cmd() local
1023 if (pwrpriv->dtim > 0) in rtl8723b_set_FwPwrMode_cmd()
1024 …): FW LPS mode = %d, SmartPS =%d, dtim =%d\n", __func__, psmode, pwrpriv->smart_ps, pwrpriv->dtim); in rtl8723b_set_FwPwrMode_cmd()
1026 DBG_871X("%s(): FW LPS mode = %d, SmartPS =%d\n", __func__, psmode, pwrpriv->smart_ps); in rtl8723b_set_FwPwrMode_cmd()
1035 if (pwrpriv->dtim > 0 && pwrpriv->dtim < 16) in rtl8723b_set_FwPwrMode_cmd()
1036 awake_intvl = pwrpriv->dtim+1;/* DTIM = (awake_intvl - 1) */ in rtl8723b_set_FwPwrMode_cmd()
1070 SET_8723B_H2CCMD_PWRMODE_PARM_SMART_PS(u1H2CPwrModeParm, pwrpriv->smart_ps); in rtl8723b_set_FwPwrMode_cmd()
1926 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_download_rsvd_page() local
1975 if (pwrpriv->wowlan_ap_mode) in rtl8723b_download_rsvd_page()
Dsdio_halinit.c953 struct pwrctrl_priv *pwrpriv; in rtl8723bs_hal_init() local
959 pwrpriv = adapter_to_pwrctl(padapter); in rtl8723bs_hal_init()
977 restore_iqk_rst = pwrpriv->bips_processing; in rtl8723bs_hal_init()
Drtl8723b_hal_init.c3756 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in C2HPacketHandler_8723B() local
3758 if (pwrpriv->wowlan_mode) { in C2HPacketHandler_8723B()
4108 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in SetHwReg8723B() local
4117 if (!pwrpriv->bkeepfwalive) { in SetHwReg8723B()
/Linux-v5.10/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c146 struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; in rtl8188e_set_FwPwrMode_cmd() local
150 Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable); in rtl8188e_set_FwPwrMode_cmd()
175 H2CSetPwrMode.SmartPS_RLBM = (((pwrpriv->smart_ps << 4) & 0xf0) | (RLBM & 0x0f)); in rtl8188e_set_FwPwrMode_cmd()
Dusb_halinit.c1673 struct pwrctrl_priv *pwrpriv = &Adapter->pwrctrlpriv; in rtw_hal_set_hwreg() local
1682 if (!pwrpriv->bkeepfwalive) { in rtw_hal_set_hwreg()