Lines Matching refs:rtlhal
101 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_set_fw_clock_on() local
108 if (!rtlhal->fw_ready) in _rtl88ee_set_fw_clock_on()
115 if (rtlhal->fw_clk_change_in_progress) { in _rtl88ee_set_fw_clock_on()
116 while (rtlhal->fw_clk_change_in_progress) { in _rtl88ee_set_fw_clock_on()
126 rtlhal->fw_clk_change_in_progress = false; in _rtl88ee_set_fw_clock_on()
132 if (IS_IN_LOW_POWER_STATE_88E(rtlhal->fw_ps_state)) { in _rtl88ee_set_fw_clock_on()
145 rtlhal->fw_ps_state = FW_PS_STATE_RF_ON_88E; in _rtl88ee_set_fw_clock_on()
148 rtlhal->fw_ps_state); in _rtl88ee_set_fw_clock_on()
153 rtlhal->fw_clk_change_in_progress = false; in _rtl88ee_set_fw_clock_on()
162 rtlhal->fw_clk_change_in_progress = false; in _rtl88ee_set_fw_clock_on()
171 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_set_fw_clock_off() local
178 if (!rtlhal->fw_ready) in _rtl88ee_set_fw_clock_off()
182 if (!rtlhal->allow_sw_to_change_hwclc) in _rtl88ee_set_fw_clock_off()
202 if (FW_PS_STATE(rtlhal->fw_ps_state) != in _rtl88ee_set_fw_clock_off()
205 if (!rtlhal->fw_clk_change_in_progress) { in _rtl88ee_set_fw_clock_off()
206 rtlhal->fw_clk_change_in_progress = true; in _rtl88ee_set_fw_clock_off()
208 rtlhal->fw_ps_state = FW_PS_STATE(rpwm_val); in _rtl88ee_set_fw_clock_off()
213 rtlhal->fw_clk_change_in_progress = false; in _rtl88ee_set_fw_clock_off()
251 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_fwlps_leave() local
258 rtlhal->allow_sw_to_change_hwclc = false; in _rtl88ee_fwlps_leave()
277 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_fwlps_enter() local
287 rtlhal->allow_sw_to_change_hwclc = true; in _rtl88ee_fwlps_enter()
803 if (rtlpriv->rtlhal.up_first_time) in _rtl88ee_gen_refresh_led_state()
818 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_init_mac() local
869 if (!rtlhal->mac_func_enable) { in _rtl88ee_init_mac()
917 if (rtlhal->earlymode_enable) {/*Early mode enable*/ in _rtl88ee_init_mac()
1034 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_hw_init() local
1045 rtlpriv->rtlhal.being_init_adapter = true; in rtl88ee_hw_init()
1055 rtlhal->fw_ready = false; in rtl88ee_hw_init()
1062 rtlhal->mac_func_enable = true; in rtl88ee_hw_init()
1064 rtlhal->mac_func_enable = false; in rtl88ee_hw_init()
1065 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_88E; in rtl88ee_hw_init()
1082 rtlhal->fw_ready = true; in rtl88ee_hw_init()
1084 rtlhal->last_hmeboxnum = 0; in rtl88ee_hw_init()
1085 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_88E; in rtl88ee_hw_init()
1086 rtlhal->fw_clk_change_in_progress = false; in rtl88ee_hw_init()
1087 rtlhal->allow_sw_to_change_hwclc = false; in rtl88ee_hw_init()
1114 rtlhal->mac_func_enable = true; in rtl88ee_hw_init()
1124 (rtlhal->oem_id == RT_CID_819X_HP))) { in rtl88ee_hw_init()
1164 rtlpriv->rtlhal.being_init_adapter = false; in rtl88ee_hw_init()
1364 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_poweroff_adapter() local
1367 rtlhal->mac_func_enable = false; in _rtl88ee_poweroff_adapter()
1388 if ((rtl_read_byte(rtlpriv, REG_MCUFWDL) & BIT(7)) && rtlhal->fw_ready) in _rtl88ee_poweroff_adapter()
1434 if (rtlpriv->rtlhal.driver_is_goingto_unload || in rtl88ee_card_disable()
1809 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_read_adapter_info() local
1843 rtlhal->board_type = rtlefuse->board_type; in _rtl88ee_read_adapter_info()
1867 if (rtlhal->oem_id == RT_CID_DEFAULT) { in _rtl88ee_read_adapter_info()
1872 rtlhal->oem_id = RT_CID_819X_ACER; in _rtl88ee_read_adapter_info()
1877 rtlhal->oem_id = RT_CID_819X_LENOVO; in _rtl88ee_read_adapter_info()
1880 rtlhal->oem_id = RT_CID_819X_HP; in _rtl88ee_read_adapter_info()
1882 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl88ee_read_adapter_info()
1885 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl88ee_read_adapter_info()
1889 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl88ee_read_adapter_info()
1892 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl88ee_read_adapter_info()
1896 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl88ee_read_adapter_info()
1908 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_hal_customized_behavior() local
1912 switch (rtlhal->oem_id) { in _rtl88ee_hal_customized_behavior()
1926 "RT Customized ID: 0x%02X\n", rtlhal->oem_id); in _rtl88ee_hal_customized_behavior()
1934 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_read_eeprom_info() local
1937 rtlhal->version = _rtl88ee_read_chip_version(hw); in rtl88ee_read_eeprom_info()
1944 rtlhal->version); in rtl88ee_read_eeprom_info()
1969 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_update_hal_rate_table() local
1984 if (rtlhal->current_bandtype == BAND_ON_5G) in rtl88ee_update_hal_rate_table()
2059 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_update_hal_rate_mask() local
2084 if (rtlhal->current_bandtype == BAND_ON_5G) in rtl88ee_update_hal_rate_mask()
2217 if (rtlpriv->rtlhal.being_init_adapter) in rtl88ee_gpio_radio_on_off_checking()