Lines Matching refs:rtlhal
75 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_set_fw_clock_on() local
83 if (!rtlhal->fw_ready) in _rtl92ee_set_fw_clock_on()
90 if (rtlhal->fw_clk_change_in_progress) { in _rtl92ee_set_fw_clock_on()
91 while (rtlhal->fw_clk_change_in_progress) { in _rtl92ee_set_fw_clock_on()
101 rtlhal->fw_clk_change_in_progress = false; in _rtl92ee_set_fw_clock_on()
107 if (IS_IN_LOW_POWER_STATE_92E(rtlhal->fw_ps_state)) { in _rtl92ee_set_fw_clock_on()
121 rtlhal->fw_ps_state = FW_PS_STATE_RF_ON_92E; in _rtl92ee_set_fw_clock_on()
124 rtlhal->fw_ps_state); in _rtl92ee_set_fw_clock_on()
129 rtlhal->fw_clk_change_in_progress = false; in _rtl92ee_set_fw_clock_on()
137 rtlhal->fw_clk_change_in_progress = false; in _rtl92ee_set_fw_clock_on()
145 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_set_fw_clock_off() local
152 if (!rtlhal->fw_ready) in _rtl92ee_set_fw_clock_off()
156 if (!rtlhal->allow_sw_to_change_hwclc) in _rtl92ee_set_fw_clock_off()
177 if (FW_PS_STATE(rtlhal->fw_ps_state) != FW_PS_STATE_RF_OFF_LOW_PWR) { in _rtl92ee_set_fw_clock_off()
179 if (!rtlhal->fw_clk_change_in_progress) { in _rtl92ee_set_fw_clock_off()
180 rtlhal->fw_clk_change_in_progress = true; in _rtl92ee_set_fw_clock_off()
182 rtlhal->fw_ps_state = FW_PS_STATE(rpwm_val); in _rtl92ee_set_fw_clock_off()
187 rtlhal->fw_clk_change_in_progress = false; in _rtl92ee_set_fw_clock_off()
224 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_fwlps_leave() local
231 rtlhal->allow_sw_to_change_hwclc = false; in _rtl92ee_fwlps_leave()
251 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_fwlps_enter() local
261 rtlhal->allow_sw_to_change_hwclc = true; in _rtl92ee_fwlps_enter()
719 if (rtlpriv->rtlhal.up_first_time) in _rtl92ee_gen_refresh_led_state()
734 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_init_mac() local
796 if (!rtlhal->mac_func_enable) { in _rtl92ee_init_mac()
1275 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ee_hw_init() local
1285 rtlpriv->rtlhal.being_init_adapter = true; in rtl92ee_hw_init()
1291 rtlhal->mac_func_enable = true; in rtl92ee_hw_init()
1293 rtlhal->mac_func_enable = false; in rtl92ee_hw_init()
1294 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_92E; in rtl92ee_hw_init()
1300 rtlhal->mac_func_enable); in rtl92ee_hw_init()
1301 rtlhal->mac_func_enable = false; in rtl92ee_hw_init()
1323 rtlhal->rx_tag = 0; in rtl92ee_hw_init()
1330 rtlhal->fw_ready = false; in rtl92ee_hw_init()
1333 rtlhal->fw_ready = true; in rtl92ee_hw_init()
1336 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON_92E; in rtl92ee_hw_init()
1337 rtlhal->fw_clk_change_in_progress = false; in rtl92ee_hw_init()
1338 rtlhal->allow_sw_to_change_hwclc = false; in rtl92ee_hw_init()
1339 rtlhal->last_hmeboxnum = 0; in rtl92ee_hw_init()
1373 rtlhal->mac_func_enable = true; in rtl92ee_hw_init()
1386 rtlpriv->rtlhal.being_init_adapter = false; in rtl92ee_hw_init()
1609 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_poweroff_adapter() local
1612 rtlhal->mac_func_enable = false; in _rtl92ee_poweroff_adapter()
1623 if ((rtl_read_byte(rtlpriv, REG_MCUFWDL) & BIT(7)) && rtlhal->fw_ready) in _rtl92ee_poweroff_adapter()
1663 if (rtlpriv->rtlhal.driver_is_goingto_unload || in rtl92ee_card_disable()
2099 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_read_adapter_info() local
2136 rtlhal->board_type = rtlefuse->board_type; in _rtl92ee_read_adapter_info()
2148 if (rtlhal->oem_id == RT_CID_DEFAULT) { in _rtl92ee_read_adapter_info()
2154 rtlhal->oem_id = RT_CID_819X_LENOVO; in _rtl92ee_read_adapter_info()
2156 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl92ee_read_adapter_info()
2160 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl92ee_read_adapter_info()
2171 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_hal_customized_behavior() local
2176 "RT Customized ID: 0x%02X\n", rtlhal->oem_id); in _rtl92ee_hal_customized_behavior()
2184 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ee_read_eeprom_info() local
2187 rtlhal->version = _rtl92ee_read_chip_version(hw); in rtl92ee_read_eeprom_info()
2195 rtlhal->version); in rtl92ee_read_eeprom_info()