Lines Matching refs:rtlhal
121 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_download_fw() local
127 enum version_8821ae version = rtlhal->version; in rtl8821ae_download_fw()
136 if (!rtlhal->wowlan_firmware) in rtl8821ae_download_fw()
140 (struct rtlwifi_firmware_header *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
141 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl8821ae_download_fw()
142 rtlhal->fw_subversion = pfwheader->subversion; in rtl8821ae_download_fw()
143 pfwdata = (u8 *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
144 fwsize = rtlhal->wowlan_fwsize; in rtl8821ae_download_fw()
146 if (!rtlhal->pfirmware) in rtl8821ae_download_fw()
150 (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl8821ae_download_fw()
151 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl8821ae_download_fw()
152 rtlhal->fw_subversion = pfwheader->subversion; in rtl8821ae_download_fw()
153 pfwdata = (u8 *)rtlhal->pfirmware; in rtl8821ae_download_fw()
154 fwsize = rtlhal->fwsize; in rtl8821ae_download_fw()
171 if (rtlhal->mac_func_enable) { in rtl8821ae_download_fw()
198 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_fw_related_for_wowlan() local
204 rtlhal->fw_ready = false; in rtl8821ae_set_fw_related_for_wowlan()
209 rtlhal->fw_ready = true; in rtl8821ae_set_fw_related_for_wowlan()
213 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_8821AE; in rtl8821ae_set_fw_related_for_wowlan()
214 rtlhal->fw_clk_change_in_progress = false; in rtl8821ae_set_fw_related_for_wowlan()
215 rtlhal->allow_sw_to_change_hwclc = false; in rtl8821ae_set_fw_related_for_wowlan()
216 rtlhal->last_hmeboxnum = 0; in rtl8821ae_set_fw_related_for_wowlan()
238 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8821ae_fill_h2c_command() local
256 if (rtlhal->h2c_setinprogress) { in _rtl8821ae_fill_h2c_command()
261 while (rtlhal->h2c_setinprogress) { in _rtl8821ae_fill_h2c_command()
277 rtlhal->h2c_setinprogress = true; in _rtl8821ae_fill_h2c_command()
284 boxnum = rtlhal->last_hmeboxnum; in _rtl8821ae_fill_h2c_command()
399 rtlhal->last_hmeboxnum = boxnum + 1; in _rtl8821ae_fill_h2c_command()
400 if (rtlhal->last_hmeboxnum == 4) in _rtl8821ae_fill_h2c_command()
401 rtlhal->last_hmeboxnum = 0; in _rtl8821ae_fill_h2c_command()
405 rtlhal->last_hmeboxnum); in _rtl8821ae_fill_h2c_command()
409 rtlhal->h2c_setinprogress = false; in _rtl8821ae_fill_h2c_command()
418 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_fill_h2c_cmd() local
421 if (!rtlhal->fw_ready) { in rtl8821ae_fill_h2c_cmd()
435 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_firmware_selfreset() local
438 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) { in rtl8821ae_firmware_selfreset()
450 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) { in rtl8821ae_firmware_selfreset()
624 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_fw_remote_wake_ctrl_cmd() local
637 (rtlhal->real_wow_v2_enable ? 1 : 0)); in rtl8821ae_set_fw_remote_wake_ctrl_cmd()
1809 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_p2p_ps_offload_cmd() local
1811 struct p2p_ps_offload_t *p2p_ps_offload = &rtlhal->p2p_ps_offload; in rtl8821ae_set_p2p_ps_offload_cmd()
1895 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_c2h_ra_report_handler() local
1898 rtlhal->current_ra_rate = rtl8821ae_hw_rate_to_mrate(hw, rate); in rtl8821ae_c2h_ra_report_handler()