Lines Matching refs:rtlhal
212 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_download_fw() local
218 enum version_8821ae version = rtlhal->version; in rtl8821ae_download_fw()
227 if (!rtlhal->wowlan_firmware) in rtl8821ae_download_fw()
231 (struct rtl8821a_firmware_header *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
232 rtlhal->fw_version = pfwheader->version; in rtl8821ae_download_fw()
233 rtlhal->fw_subversion = pfwheader->subversion; in rtl8821ae_download_fw()
234 pfwdata = (u8 *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
235 fwsize = rtlhal->wowlan_fwsize; in rtl8821ae_download_fw()
237 if (!rtlhal->pfirmware) in rtl8821ae_download_fw()
241 (struct rtl8821a_firmware_header *)rtlhal->pfirmware; in rtl8821ae_download_fw()
242 rtlhal->fw_version = pfwheader->version; in rtl8821ae_download_fw()
243 rtlhal->fw_subversion = pfwheader->subversion; in rtl8821ae_download_fw()
244 pfwdata = (u8 *)rtlhal->pfirmware; in rtl8821ae_download_fw()
245 fwsize = rtlhal->fwsize; in rtl8821ae_download_fw()
262 if (rtlhal->mac_func_enable) { in rtl8821ae_download_fw()
289 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_fw_related_for_wowlan() local
295 rtlhal->fw_ready = false; in rtl8821ae_set_fw_related_for_wowlan()
300 rtlhal->fw_ready = true; in rtl8821ae_set_fw_related_for_wowlan()
304 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_8821AE; in rtl8821ae_set_fw_related_for_wowlan()
305 rtlhal->fw_clk_change_in_progress = false; in rtl8821ae_set_fw_related_for_wowlan()
306 rtlhal->allow_sw_to_change_hwclc = false; in rtl8821ae_set_fw_related_for_wowlan()
307 rtlhal->last_hmeboxnum = 0; in rtl8821ae_set_fw_related_for_wowlan()
329 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8821ae_fill_h2c_command() local
347 if (rtlhal->h2c_setinprogress) { in _rtl8821ae_fill_h2c_command()
352 while (rtlhal->h2c_setinprogress) { in _rtl8821ae_fill_h2c_command()
368 rtlhal->h2c_setinprogress = true; in _rtl8821ae_fill_h2c_command()
375 boxnum = rtlhal->last_hmeboxnum; in _rtl8821ae_fill_h2c_command()
490 rtlhal->last_hmeboxnum = boxnum + 1; in _rtl8821ae_fill_h2c_command()
491 if (rtlhal->last_hmeboxnum == 4) in _rtl8821ae_fill_h2c_command()
492 rtlhal->last_hmeboxnum = 0; in _rtl8821ae_fill_h2c_command()
496 rtlhal->last_hmeboxnum); in _rtl8821ae_fill_h2c_command()
500 rtlhal->h2c_setinprogress = false; in _rtl8821ae_fill_h2c_command()
509 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_fill_h2c_cmd() local
512 if (!rtlhal->fw_ready) { in rtl8821ae_fill_h2c_cmd()
526 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_firmware_selfreset() local
529 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) { in rtl8821ae_firmware_selfreset()
541 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8812AE) { in rtl8821ae_firmware_selfreset()
658 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_fw_remote_wake_ctrl_cmd() local
671 (rtlhal->real_wow_v2_enable ? 1 : 0)); in rtl8821ae_set_fw_remote_wake_ctrl_cmd()
1718 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_set_p2p_ps_offload_cmd() local
1720 struct p2p_ps_offload_t *p2p_ps_offload = &rtlhal->p2p_ps_offload; in rtl8821ae_set_p2p_ps_offload_cmd()
1804 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_c2h_ra_report_handler() local
1807 rtlhal->current_ra_rate = rtl8821ae_hw_rate_to_mrate(hw, rate); in rtl8821ae_c2h_ra_report_handler()