Lines Matching refs:rtlhal

106 	struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw));  in _rtl8723be_set_fw_clock_on()  local
113 if (!rtlhal->fw_ready) in _rtl8723be_set_fw_clock_on()
120 if (rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_on()
121 while (rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_on()
131 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
137 if (IS_IN_LOW_POWER_STATE(rtlhal->fw_ps_state)) { in _rtl8723be_set_fw_clock_on()
151 rtlhal->fw_ps_state = FW_PS_STATE_RF_ON; in _rtl8723be_set_fw_clock_on()
154 rtlhal->fw_ps_state); in _rtl8723be_set_fw_clock_on()
159 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
166 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
174 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_set_fw_clock_off() local
181 if (!rtlhal->fw_ready) in _rtl8723be_set_fw_clock_off()
185 if (!rtlhal->allow_sw_to_change_hwclc) in _rtl8723be_set_fw_clock_off()
205 if (FW_PS_STATE(rtlhal->fw_ps_state) != FW_PS_STATE_RF_OFF_LOW_PWR) { in _rtl8723be_set_fw_clock_off()
207 if (!rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_off()
208 rtlhal->fw_clk_change_in_progress = true; in _rtl8723be_set_fw_clock_off()
210 rtlhal->fw_ps_state = FW_PS_STATE(rpwm_val); in _rtl8723be_set_fw_clock_off()
215 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_off()
237 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_leave() local
244 rtlhal->allow_sw_to_change_hwclc = false; in _rtl8723be_fwlps_leave()
265 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_enter() local
275 rtlhal->allow_sw_to_change_hwclc = true; in _rtl8723be_fwlps_enter()
798 if (rtlpriv->rtlhal.up_first_time) in _rtl8723be_gen_refresh_led_state()
813 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in _rtl8723be_init_mac() local
864 if (!rtlhal->mac_func_enable) { in _rtl8723be_init_mac()
1158 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_poweroff_adapter() local
1161 rtlhal->mac_func_enable = false; in _rtl8723be_poweroff_adapter()
1171 rtlhal->fw_ready) { in _rtl8723be_poweroff_adapter()
1334 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_hw_init() local
1348 rtlhal->fw_ready = false; in rtl8723be_hw_init()
1349 rtlpriv->rtlhal.being_init_adapter = true; in rtl8723be_hw_init()
1354 rtlhal->mac_func_enable = true; in rtl8723be_hw_init()
1356 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1357 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON; in rtl8723be_hw_init()
1362 rtlhal->mac_func_enable); in rtl8723be_hw_init()
1363 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1365 if (rtlhal->mac_func_enable) { in rtl8723be_hw_init()
1367 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1386 rtlhal->fw_ready = true; in rtl8723be_hw_init()
1388 rtlhal->last_hmeboxnum = 0; in rtl8723be_hw_init()
1410 rtlhal->mac_func_enable = true; in rtl8723be_hw_init()
1453 rtlpriv->rtlhal.being_init_adapter = false; in rtl8723be_hw_init()
1659 if (rtlpriv->rtlhal.driver_is_goingto_unload || in rtl8723be_card_disable()
2048 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_read_adapter_info() local
2104 rtlhal->board_type = rtlefuse->board_type; in _rtl8723be_read_adapter_info()
2108 rtlhal->package_type = _rtl8723be_read_package_type(hw); in _rtl8723be_read_adapter_info()
2113 if (rtlhal->oem_id == RT_CID_DEFAULT) { in _rtl8723be_read_adapter_info()
2147 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2149 rtlhal->oem_id = RT_CID_819X_ACER; in _rtl8723be_read_adapter_info()
2152 rtlhal->oem_id = RT_CID_819X_SAMSUNG; in _rtl8723be_read_adapter_info()
2155 rtlhal->oem_id = RT_CID_819X_LENOVO; in _rtl8723be_read_adapter_info()
2160 rtlhal->oem_id = RT_CID_819X_CLEVO; in _rtl8723be_read_adapter_info()
2169 rtlhal->oem_id = RT_CID_819X_DELL; in _rtl8723be_read_adapter_info()
2172 rtlhal->oem_id = RT_CID_819X_HP; in _rtl8723be_read_adapter_info()
2175 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl8723be_read_adapter_info()
2178 rtlhal->oem_id = RT_CID_819X_PRONETS; in _rtl8723be_read_adapter_info()
2181 rtlhal->oem_id = RT_CID_819X_EDIMAX_ASUS; in _rtl8723be_read_adapter_info()
2183 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2188 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2190 rtlhal->oem_id = RT_CID_819X_ACER; in _rtl8723be_read_adapter_info()
2193 rtlhal->oem_id = RT_CID_819X_PRONETS; in _rtl8723be_read_adapter_info()
2196 rtlhal->oem_id = in _rtl8723be_read_adapter_info()
2199 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2201 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2205 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2208 rtlhal->oem_id = RT_CID_CCX; in _rtl8723be_read_adapter_info()
2211 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl8723be_read_adapter_info()
2216 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2227 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_hal_customized_behavior() local
2230 switch (rtlhal->oem_id) { in _rtl8723be_hal_customized_behavior()
2244 "RT Customized ID: 0x%02X\n", rtlhal->oem_id); in _rtl8723be_hal_customized_behavior()
2252 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_read_eeprom_info() local
2255 rtlhal->version = _rtl8723be_read_chip_version(hw); in rtl8723be_read_eeprom_info()
2262 rtlhal->version); in rtl8723be_read_eeprom_info()
2480 if (rtlpriv->rtlhal.being_init_adapter) in rtl8723be_gpio_radio_on_off_checking()