Home
last modified time | relevance | path

Searched refs:pwrctrlpriv (Results 1 – 25 of 25) sorted by relevance

/Linux-v5.10/drivers/staging/rtl8188eu/core/
Drtw_pwrctrl.c17 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_suspend()
78 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_hw_resume()
116 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in ips_enter()
156 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in ips_leave()
205 if (time_after_eq(adapter->pwrctrlpriv.ips_deny_time, jiffies)) in rtw_pwr_unassociated_idle()
219 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_ps_processor()
228 if (padapter->pwrctrlpriv.bHWPwrPindetect) { in rtw_ps_processor()
259 rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv); in rtw_ps_processor()
267 pwrctrlpriv.pwr_state_check_timer); in pwr_state_check_handler()
282 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_set_rpwm()
[all …]
Drtw_led.c105 if (padapter->pwrctrlpriv.rf_pwrstate != rf_on) { in SwLedBlink1()
463 if ((padapter->pwrctrlpriv.rf_pwrstate != rf_on && in led_control_8188eu()
464 padapter->pwrctrlpriv.rfoff_reason > RF_CHANGE_BY_PS) && in led_control_8188eu()
Drtw_cmd.c75 if ((pcmdpriv->padapter->pwrctrlpriv.bHWPwrPindetect) && in rtw_cmd_filter()
477 padapter->pwrctrlpriv.smart_ps = 0; in rtw_joinbss_cmd()
479 padapter->pwrctrlpriv.smart_ps = padapter->registrypriv.smart_ps; in rtw_joinbss_cmd()
481 DBG_88E("%s: smart_ps =%d\n", __func__, padapter->pwrctrlpriv.smart_ps); in rtw_joinbss_cmd()
848 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in lps_ctrl_wk_hdl()
869 padapter->pwrctrlpriv.LpsIdleCount = 0; in lps_ctrl_wk_hdl()
/Linux-v5.10/drivers/staging/rtl8712/
Drtl871x_pwrctrl.c29 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_rpwm()
60 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in r8712_set_ps_mode()
89 struct pwrctrl_priv *pwrpriv = &(padapter->pwrctrlpriv); in r8712_cpwm_int_hdl()
94 del_timer(&padapter->pwrctrlpriv.rpwm_check_timer); in r8712_cpwm_int_hdl()
118 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in _rpwm_check_handler()
131 struct _adapter, pwrctrlpriv); in SetPSModeWorkItemCallback()
145 struct _adapter, pwrctrlpriv); in rpwm_workitem_callback()
158 from_timer(adapter, t, pwrctrlpriv.rpwm_check_timer); in rpwm_check_handler()
165 struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv; in r8712_init_pwrctrl_priv() local
167 memset((unsigned char *)pwrctrlpriv, 0, sizeof(struct pwrctrl_priv)); in r8712_init_pwrctrl_priv()
[all …]
Drtl8712_cmd.c246 if (padapter->pwrctrlpriv.pwr_mode > PS_MODE_ACTIVE) { in cmd_hdl_filter()
247 padapter->pwrctrlpriv.pwr_mode = PS_MODE_ACTIVE; in cmd_hdl_filter()
248 mutex_lock(&padapter->pwrctrlpriv.mutex_lock); in cmd_hdl_filter()
250 mutex_unlock(&padapter->pwrctrlpriv.mutex_lock); in cmd_hdl_filter()
301 struct mutex *pwctrl_lock = &padapter->pwrctrlpriv.mutex_lock; in r8712_cmd_thread()
370 if (padapter->pwrctrlpriv.bSleep) { in r8712_cmd_thread()
Dusb_ops_linux.c168 (padapter->pwrctrlpriv.pnp_bstop_trx)) in r8712_usb_write_mem()
258 adapter->pwrctrlpriv.pnp_bstop_trx || !precvbuf) in r8712_usb_read_port()
395 (padapter->pwrctrlpriv.pnp_bstop_trx)) in r8712_usb_write_port()
Ddrv_types.h143 struct pwrctrl_priv pwrctrlpriv; member
Drtl871x_mlme.c637 if (padapter->pwrctrlpriv.pwr_mode != in r8712_ind_disconnect()
968 preportpwrstate->state |= (u8)(adapter->pwrctrlpriv.cpwm_tog + 0x80); in r8712_cpwm_event_callback()
1041 if (adapter->pwrctrlpriv.pwr_mode != adapter->registrypriv.power_mgnt) { in _r8712_join_timeout_handler()
1063 if (adapter->pwrctrlpriv.pwr_mode != adapter->registrypriv.power_mgnt) in _r8712_dhcp_timeout_handler()
Drtl871x_xmit.c201 if (padapter->pwrctrlpriv.pwr_mode != in r8712_update_attrib()
Drtl871x_ioctl_linux.c120 padapter->pwrctrlpriv.pwr_mode) in handle_group_key()
/Linux-v5.10/drivers/staging/rtl8723bs/core/
Drtw_pwrctrl.c197 struct pwrctrl_priv *pwrctrlpriv = in pwr_state_check_handler() local
198 from_timer(pwrctrlpriv, t, pwr_state_check_timer); in pwr_state_check_handler()
199 struct adapter *padapter = pwrctrlpriv->adapter; in pwr_state_check_handler()
1116 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); in rtw_init_pwrctrl_priv() local
1118 mutex_init(&pwrctrlpriv->lock); in rtw_init_pwrctrl_priv()
1119 pwrctrlpriv->rf_pwrstate = rf_on; in rtw_init_pwrctrl_priv()
1120 pwrctrlpriv->ips_enter_cnts = 0; in rtw_init_pwrctrl_priv()
1121 pwrctrlpriv->ips_leave_cnts = 0; in rtw_init_pwrctrl_priv()
1122 pwrctrlpriv->bips_processing = false; in rtw_init_pwrctrl_priv()
1124 pwrctrlpriv->ips_mode = padapter->registrypriv.ips_mode; in rtw_init_pwrctrl_priv()
[all …]
/Linux-v5.10/drivers/staging/rtl8188eu/include/
Drtw_pwrctrl.h203 #define rtw_get_ips_mode_req(pwrctrlpriv) \ argument
204 (pwrctrlpriv)->ips_mode_req
206 #define rtw_ips_mode_req(pwrctrlpriv, ips_mode) \ argument
207 ((pwrctrlpriv)->ips_mode_req = (ips_mode))
211 #define _rtw_set_pwr_state_check_timer(pwrctrlpriv, ms) \ argument
212 mod_timer(&pwrctrlpriv->pwr_state_check_timer, \
Ddrv_types.h142 struct pwrctrl_priv pwrctrlpriv; member
/Linux-v5.10/drivers/staging/rtl8188eu/os_dep/
Dos_intfs.c407 struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv; in rtw_reset_drv_sw() local
422 pwrctrlpriv->pwr_state_check_cnts = 0; in rtw_reset_drv_sw()
512 del_timer_sync(&padapter->pwrctrlpriv.pwr_state_check_timer); in rtw_cancel_all_timer()
547 struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv; in _netdev_open() local
552 if (pwrctrlpriv->ps_flag) { in _netdev_open()
590 padapter->pwrctrlpriv.bips_processing = false; in _netdev_open()
591 rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv); in _netdev_open()
642 rtw_set_pwr_state_check_timer(&padapter->pwrctrlpriv); in ips_netdrv_open()
705 if (padapter->pwrctrlpriv.bInternalAutoSuspend) { in netdev_close()
706 if (padapter->pwrctrlpriv.rf_pwrstate == rf_off) in netdev_close()
[all …]
Dusb_intf.c178 if (!padapter->pwrctrlpriv.bInternalAutoSuspend) in rtw_dev_unload()
204 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_suspend()
276 pwrpriv = &padapter->pwrctrlpriv; in rtw_resume_process()
378 if (padapter->pwrctrlpriv.bSupportRemoteWakeup) { in rtw_usb_if1_init()
Dusb_ops_linux.c211 if ((adapt->bSurpriseRemoved) || (adapt->pwrctrlpriv.pnp_bstop_trx)) { in usbctrl_vendorreq()
435 adapter->pwrctrlpriv.pnp_bstop_trx) { in usb_read_port()
671 (padapter->pwrctrlpriv.pnp_bstop_trx)) { in usb_write_port()
Dioctl_linux.c1204 if (padapter->pwrctrlpriv.brfoffbyhw && padapter->bDriverStopped) { in rtw_wx_get_scan()
1569 struct pwrctrl_priv *pwrpriv = &padapter->pwrctrlpriv; in rtw_wx_set_enc()
/Linux-v5.10/drivers/staging/rtl8188eu/hal/
Drtl8188e_hal_init.c104 padapter->pwrctrlpriv.bFwCurrentInPSMode = false; in rtl8188e_InitializeFirmwareVars()
394 padapter->pwrctrlpriv.bHWPowerdown = false; in Hal_ReadPowerSavingMode88E()
395 padapter->pwrctrlpriv.bSupportRemoteWakeup = false; in Hal_ReadPowerSavingMode88E()
400 padapter->pwrctrlpriv.bHWPowerdown = (hwinfo[EEPROM_RF_FEATURE_OPTION_88E] & BIT(4)); in Hal_ReadPowerSavingMode88E()
402 padapter->pwrctrlpriv.bHWPowerdown = padapter->registrypriv.hwpdn_mode; in Hal_ReadPowerSavingMode88E()
406 …padapter->pwrctrlpriv.bSupportRemoteWakeup = (hwinfo[EEPROM_USB_OPTIONAL_FUNCTION0] & BIT(1)) ? tr… in Hal_ReadPowerSavingMode88E()
409 …padapter->pwrctrlpriv.bHWPwrPindetect, padapter->pwrctrlpriv.bHWPowerdown, padapter->pwrctrlpriv.b… in Hal_ReadPowerSavingMode88E()
Dusb_halinit.c631 if (adapt->pwrctrlpriv.bHWPowerdown) { in RfOnOffDetect()
651 struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv; in rtl8188eu_hal_init() local
659 if (Adapter->pwrctrlpriv.bkeepfwalive) { in rtl8188eu_hal_init()
683 if (pwrctrlpriv->reg_rfoff) in rtl8188eu_hal_init()
684 pwrctrlpriv->rf_pwrstate = rf_off; in rtl8188eu_hal_init()
827 pwrctrlpriv->rf_pwrstate = rf_on; in rtl8188eu_hal_init()
843 if (pwrctrlpriv->rf_pwrstate == rf_on) { in rtl8188eu_hal_init()
951 DBG_88E("bkeepfwalive(%x)\n", Adapter->pwrctrlpriv.bkeepfwalive); in rtl8188eu_hal_deinit()
952 if (Adapter->pwrctrlpriv.bkeepfwalive) { in rtl8188eu_hal_deinit()
953 if ((Adapter->pwrctrlpriv.bHWPwrPindetect) && (Adapter->pwrctrlpriv.bHWPowerdown)) in rtl8188eu_hal_deinit()
[all …]
Drtl8188e_dm.c69 struct pwrctrl_priv *pwrctrlpriv = &Adapter->pwrctrlpriv; in Update_ODM_ComInfo_88E() local
105 dm_odm->pbPowerSaving = (bool *)&pwrctrlpriv->bpower_saving; in Update_ODM_ComInfo_88E()
Drtl8188e_cmd.c146 struct pwrctrl_priv *pwrpriv = &adapt->pwrctrlpriv; in rtl8188e_set_FwPwrMode_cmd()
/Linux-v5.10/drivers/staging/rtl8723bs/hal/
Dhal_com.c1570 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); in linked_info_dump() local
1578 pwrctrlpriv->org_power_mgnt = pwrctrlpriv->power_mgnt;/* keep org value */ in linked_info_dump()
1581 pwrctrlpriv->ips_org_mode = pwrctrlpriv->ips_mode;/* keep org value */ in linked_info_dump()
1584 rtw_pm_set_ips(padapter, pwrctrlpriv->ips_org_mode); in linked_info_dump()
1586 rtw_pm_set_lps(padapter, pwrctrlpriv->ips_org_mode); in linked_info_dump()
Drtl8723b_dm.c75 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(Adapter); in Update_ODM_ComInfo_8723b() local
121 ODM_CmnInfoHook(pDM_Odm, ODM_CMNINFO_POWER_SAVING, &(pwrctrlpriv->bpower_saving)); in Update_ODM_ComInfo_8723b()
Dsdio_halinit.c678 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(Adapter); in HalDetectPwrDownMode() local
684 if (tmpvalue & BIT4 && pwrctrlpriv->reg_pdnmode) in HalDetectPwrDownMode()
698 struct pwrctrl_priv *pwrctrlpriv; in rtl8723bs_hal_init() local
703 pwrctrlpriv = adapter_to_pwrctl(padapter); in rtl8723bs_hal_init()
804 if (pwrctrlpriv->reg_rfoff) in rtl8723bs_hal_init()
805 pwrctrlpriv->rf_pwrstate = rf_off; in rtl8723bs_hal_init()
950 pwrctrlpriv->rf_pwrstate = rf_on; in rtl8723bs_hal_init()
952 if (pwrctrlpriv->rf_pwrstate == rf_on) { in rtl8723bs_hal_init()
/Linux-v5.10/drivers/staging/rtl8723bs/os_dep/
Dos_intfs.c678 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); in rtw_reset_drv_sw() local
699 pwrctrlpriv->pwr_state_check_cnts = 0; in rtw_reset_drv_sw()
893 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); in _netdev_open() local
900 if (pwrctrlpriv->ps_flag) { in _netdev_open()
930 pwrctrlpriv->bips_processing = false; in _netdev_open()
965 struct pwrctrl_priv *pwrctrlpriv = adapter_to_pwrctl(padapter); in netdev_open() local
967 if (pwrctrlpriv->bInSuspend) { in netdev_open()
968 DBG_871X("+871x_drv - drv_open, bInSuspend =%d\n", pwrctrlpriv->bInSuspend); in netdev_open()