Home
last modified time | relevance | path

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

/drivers/staging/rtl8188eu/core/
Drtw_pwrctrl.c25 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_suspend() local
41 mutex_lock(&pwrpriv->mutex_lock); in rtw_hw_suspend()
42 pwrpriv->bips_processing = true; in rtw_hw_suspend()
73 pwrpriv->rf_pwrstate = rf_off; in rtw_hw_suspend()
74 pwrpriv->bips_processing = false; in rtw_hw_suspend()
76 mutex_unlock(&pwrpriv->mutex_lock); in rtw_hw_suspend()
87 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_resume() local
93 mutex_lock(&pwrpriv->mutex_lock); in rtw_hw_resume()
94 pwrpriv->bips_processing = true; in rtw_hw_resume()
98 mutex_unlock(&pwrpriv->mutex_lock); in rtw_hw_resume()
[all …]
Drtw_cmd.c844 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in lps_ctrl_wk_hdl() local
875 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c25 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in _ips_enter() local
27 pwrpriv->bips_processing = true; in _ips_enter()
30 pwrpriv->ips_mode = pwrpriv->ips_mode_req; in _ips_enter()
32 pwrpriv->ips_enter_cnts++; in _ips_enter()
33 DBG_871X("==>ips_enter cnts:%d\n", pwrpriv->ips_enter_cnts); in _ips_enter()
35 if (rf_off == pwrpriv->change_rfpwrstate) { in _ips_enter()
36 pwrpriv->bpower_saving = true; in _ips_enter()
39 if (pwrpriv->ips_mode == IPS_LEVEL_2) in _ips_enter()
40 pwrpriv->bkeepfwalive = true; in _ips_enter()
43 pwrpriv->rf_pwrstate = rf_off; in _ips_enter()
[all …]
Drtw_btcoex.c220 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Enter() local
224 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Enter()
226 pwrpriv->bpower_saving = true; in rtw_btcoex_LPS_Enter()
233 struct pwrctrl_priv *pwrpriv; in rtw_btcoex_LPS_Leave() local
236 pwrpriv = adapter_to_pwrctl(padapter); in rtw_btcoex_LPS_Leave()
238 if (pwrpriv->pwr_mode != PS_MODE_ACTIVE) { in rtw_btcoex_LPS_Leave()
241 pwrpriv->bpower_saving = false; in rtw_btcoex_LPS_Leave()
Drtw_cmd.c1489 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in lps_ctrl_wk_hdl() local
1516 pwrpriv->LpsIdleCount = 0; in lps_ctrl_wk_hdl()
1529 pwrpriv->DelayLPSLastTimeStamp = jiffies; in lps_ctrl_wk_hdl()
1628 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_lps_change_dtim_hdl() local
1636 down(&pwrpriv->lock); in rtw_lps_change_dtim_hdl()
1638 if (pwrpriv->dtim != dtim) { in rtw_lps_change_dtim_hdl()
1639 DBG_871X("change DTIM from %d to %d, bFwCurrentInPSMode =%d, ps_mode =%d\n", pwrpriv->dtim, dtim, in rtw_lps_change_dtim_hdl()
1640 pwrpriv->bFwCurrentInPSMode, pwrpriv->pwr_mode); in rtw_lps_change_dtim_hdl()
1642 pwrpriv->dtim = dtim; in rtw_lps_change_dtim_hdl()
1645 if ((pwrpriv->bFwCurrentInPSMode == true) && (pwrpriv->pwr_mode > PS_MODE_ACTIVE)) { in rtw_lps_change_dtim_hdl()
[all …]
Drtw_wlan_util.c2159 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(adapter); in rtw_get_gpio() local
2163 DBG_871X("rf_pwrstate = 0x%02x\n", pwrpriv->rf_pwrstate); in rtw_get_gpio()
2302 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_set_sec_pn() local
2309 if (pwrpriv->wowlan_fw_iv > psta->dot11txpn.val) { in rtw_set_sec_pn()
2311 psta->dot11txpn.val = pwrpriv->wowlan_fw_iv + 2; in rtw_set_sec_pn()
Drtw_mlme.c1176 struct pwrctrl_priv *pwrpriv; in rtw_indicate_scan_done() local
1178 pwrpriv = adapter_to_pwrctl(padapter); in rtw_indicate_scan_done()
/drivers/staging/rtl8712/
Drtl871x_pwrctrl.c41 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_rpwm() local
43 if (pwrpriv->rpwm == val8) { in r8712_set_rpwm()
44 if (pwrpriv->rpwm_retry == 0) in r8712_set_rpwm()
49 rpwm = val8 | pwrpriv->tog; in r8712_set_rpwm()
52 pwrpriv->cpwm = val8; in r8712_set_rpwm()
59 pwrpriv->cpwm = val8; in r8712_set_rpwm()
64 pwrpriv->rpwm_retry = 0; in r8712_set_rpwm()
65 pwrpriv->rpwm = val8; in r8712_set_rpwm()
67 pwrpriv->tog += 0x80; in r8712_set_rpwm()
72 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_ps_mode() local
[all …]
/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c1346 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_suspend_wow() local
1353 DBG_871X("wowlan_mode: %d\n", pwrpriv->wowlan_mode); in rtw_suspend_wow()
1354 DBG_871X("wowlan_pno_enable: %d\n", pwrpriv->wowlan_pno_enable); in rtw_suspend_wow()
1356 if (pwrpriv->wowlan_mode == true) { in rtw_suspend_wow()
1409 if (pwrpriv->wowlan_pno_enable) in rtw_suspend_wow()
1410 DBG_871X_LEVEL(_drv_always_, "%s: pno: %d\n", __func__, pwrpriv->wowlan_pno_enable); in rtw_suspend_wow()
1417 …DBG_871X_LEVEL(_drv_always_, "%s: ### ERROR ### wowlan_mode =%d\n", __func__, pwrpriv->wowlan_mode… in rtw_suspend_wow()
1429 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_suspend_ap_wow() local
1435 pwrpriv->wowlan_ap_mode = true; in rtw_suspend_ap_wow()
1437 DBG_871X("wowlan_ap_mode: %d\n", pwrpriv->wowlan_ap_mode); in rtw_suspend_ap_wow()
[all …]
Dsdio_intf.c571 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_sdio_suspend() local
581 if (pwrpriv->bInSuspend == true) in rtw_sdio_suspend()
583 DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend); in rtw_sdio_suspend()
593 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_resume_process() local
597 if (pwrpriv->bInSuspend == false) in rtw_resume_process()
600 DBG_871X("%s bInSuspend = %d\n", __func__, pwrpriv->bInSuspend); in rtw_resume_process()
611 struct pwrctrl_priv *pwrpriv = dvobj_to_pwrctl(psdpriv); in rtw_sdio_resume() local
621 if (pwrpriv->bInternalAutoSuspend) in rtw_sdio_resume()
627 if (pwrpriv->wowlan_mode || pwrpriv->wowlan_ap_mode) in rtw_sdio_resume()
Dioctl_linux.c1931 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtw_wx_set_enc() local
2029 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
/drivers/staging/rtl8188eu/os_dep/
Dusb_intf.c212 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_suspend() local
225 pwrpriv->bInSuspend = true; in rtw_suspend()
229 mutex_lock(&pwrpriv->mutex_lock); in rtw_suspend()
258 mutex_unlock(&pwrpriv->mutex_lock); in rtw_suspend()
276 struct pwrctrl_priv *pwrpriv = NULL; in rtw_resume_process() local
284 pwrpriv = &padapter->pwrctrlpriv; in rtw_resume_process()
289 mutex_lock(&pwrpriv->mutex_lock); in rtw_resume_process()
291 pwrpriv->bkeepfwalive = false; in rtw_resume_process()
293 pr_debug("bkeepfwalive(%x)\n", pwrpriv->bkeepfwalive); in rtw_resume_process()
295 mutex_unlock(&pwrpriv->mutex_lock); in rtw_resume_process()
[all …]
Dioctl_linux.c1607 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_wx_set_enc() local
1702 if (rf_on == pwrpriv->rf_pwrstate) in rtw_wx_set_enc()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_cmd.c888 if (!pwrpriv->pno_in_resume) { in rtl8723b_set_FwAoacRsvdPage_cmd()
1027 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_set_FwPwrMode_cmd() local
1032 if (pwrpriv->dtim > 0) in rtl8723b_set_FwPwrMode_cmd()
1033 …): FW LPS mode = %d, SmartPS =%d, dtim =%d\n", __func__, psmode, pwrpriv->smart_ps, pwrpriv->dtim); in rtl8723b_set_FwPwrMode_cmd()
1035 DBG_871X("%s(): FW LPS mode = %d, SmartPS =%d\n", __func__, psmode, pwrpriv->smart_ps); in rtl8723b_set_FwPwrMode_cmd()
1044 if (pwrpriv->dtim > 0 && pwrpriv->dtim < 16) in rtl8723b_set_FwPwrMode_cmd()
1045 awake_intvl = pwrpriv->dtim+1;/* DTIM = (awake_intvl - 1) */ in rtl8723b_set_FwPwrMode_cmd()
1079 SET_8723B_H2CCMD_PWRMODE_PARM_SMART_PS(u1H2CPwrModeParm, pwrpriv->smart_ps); in rtl8723b_set_FwPwrMode_cmd()
1300 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_set_FwScanOffloadInfo_cmd() local
1945 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in rtl8723b_download_rsvd_page() local
[all …]
Dsdio_halinit.c998 struct pwrctrl_priv *pwrpriv; in rtl8723bs_hal_init() local
1004 pwrpriv = adapter_to_pwrctl(padapter); in rtl8723bs_hal_init()
1022 restore_iqk_rst = (pwrpriv->bips_processing == true) ? true : false; in rtl8723bs_hal_init()
Drtl8723b_hal_init.c3769 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in C2HPacketHandler_8723B() local
3771 if (pwrpriv->wowlan_mode == true) { in C2HPacketHandler_8723B()
4122 struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter); in SetHwReg8723B() local
4131 if (pwrpriv->bkeepfwalive != true) { in SetHwReg8723B()
/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c165 struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; in rtl8188e_set_FwPwrMode_cmd() local
169 Mode, pwrpriv->smart_ps, adapt->registrypriv.uapsd_enable); in rtl8188e_set_FwPwrMode_cmd()
194 H2CSetPwrMode.SmartPS_RLBM = (((pwrpriv->smart_ps<<4)&0xf0) | (RLBM & 0x0f)); in rtl8188e_set_FwPwrMode_cmd()
Dusb_halinit.c1691 struct pwrctrl_priv *pwrpriv = &Adapter->pwrctrlpriv; in rtw_hal_set_hwreg() local
1700 if (!pwrpriv->bkeepfwalive) { in rtw_hal_set_hwreg()