Lines Matching refs:rtlhal
102 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_set_fw_clock_on() local
109 if (!rtlhal->fw_ready) in _rtl8723be_set_fw_clock_on()
116 if (rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_on()
117 while (rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_on()
127 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
133 if (IS_IN_LOW_POWER_STATE(rtlhal->fw_ps_state)) { in _rtl8723be_set_fw_clock_on()
147 rtlhal->fw_ps_state = FW_PS_STATE_RF_ON; in _rtl8723be_set_fw_clock_on()
150 rtlhal->fw_ps_state); in _rtl8723be_set_fw_clock_on()
155 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
162 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_on()
170 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_set_fw_clock_off() local
177 if (!rtlhal->fw_ready) in _rtl8723be_set_fw_clock_off()
181 if (!rtlhal->allow_sw_to_change_hwclc) in _rtl8723be_set_fw_clock_off()
201 if (FW_PS_STATE(rtlhal->fw_ps_state) != FW_PS_STATE_RF_OFF_LOW_PWR) { in _rtl8723be_set_fw_clock_off()
203 if (!rtlhal->fw_clk_change_in_progress) { in _rtl8723be_set_fw_clock_off()
204 rtlhal->fw_clk_change_in_progress = true; in _rtl8723be_set_fw_clock_off()
206 rtlhal->fw_ps_state = FW_PS_STATE(rpwm_val); in _rtl8723be_set_fw_clock_off()
211 rtlhal->fw_clk_change_in_progress = false; in _rtl8723be_set_fw_clock_off()
233 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_leave() local
240 rtlhal->allow_sw_to_change_hwclc = false; in _rtl8723be_fwlps_leave()
261 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_enter() local
271 rtlhal->allow_sw_to_change_hwclc = true; in _rtl8723be_fwlps_enter()
794 if (rtlpriv->rtlhal.up_first_time) in _rtl8723be_gen_refresh_led_state()
809 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in _rtl8723be_init_mac() local
860 if (!rtlhal->mac_func_enable) { in _rtl8723be_init_mac()
1154 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_poweroff_adapter() local
1157 rtlhal->mac_func_enable = false; in _rtl8723be_poweroff_adapter()
1167 rtlhal->fw_ready) { in _rtl8723be_poweroff_adapter()
1330 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_hw_init() local
1344 rtlhal->fw_ready = false; in rtl8723be_hw_init()
1345 rtlpriv->rtlhal.being_init_adapter = true; in rtl8723be_hw_init()
1350 rtlhal->mac_func_enable = true; in rtl8723be_hw_init()
1352 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1353 rtlhal->fw_ps_state = FW_PS_STATE_ALL_ON; in rtl8723be_hw_init()
1358 rtlhal->mac_func_enable); in rtl8723be_hw_init()
1359 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1361 if (rtlhal->mac_func_enable) { in rtl8723be_hw_init()
1363 rtlhal->mac_func_enable = false; in rtl8723be_hw_init()
1382 rtlhal->fw_ready = true; in rtl8723be_hw_init()
1384 rtlhal->last_hmeboxnum = 0; in rtl8723be_hw_init()
1406 rtlhal->mac_func_enable = true; in rtl8723be_hw_init()
1449 rtlpriv->rtlhal.being_init_adapter = false; in rtl8723be_hw_init()
1655 if (rtlpriv->rtlhal.driver_is_goingto_unload || in rtl8723be_card_disable()
2044 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_read_adapter_info() local
2100 rtlhal->board_type = rtlefuse->board_type; in _rtl8723be_read_adapter_info()
2104 rtlhal->package_type = _rtl8723be_read_package_type(hw); in _rtl8723be_read_adapter_info()
2109 if (rtlhal->oem_id == RT_CID_DEFAULT) { in _rtl8723be_read_adapter_info()
2143 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2145 rtlhal->oem_id = RT_CID_819X_ACER; in _rtl8723be_read_adapter_info()
2148 rtlhal->oem_id = RT_CID_819X_SAMSUNG; in _rtl8723be_read_adapter_info()
2151 rtlhal->oem_id = RT_CID_819X_LENOVO; in _rtl8723be_read_adapter_info()
2156 rtlhal->oem_id = RT_CID_819X_CLEVO; in _rtl8723be_read_adapter_info()
2165 rtlhal->oem_id = RT_CID_819X_DELL; in _rtl8723be_read_adapter_info()
2168 rtlhal->oem_id = RT_CID_819X_HP; in _rtl8723be_read_adapter_info()
2171 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl8723be_read_adapter_info()
2174 rtlhal->oem_id = RT_CID_819X_PRONETS; in _rtl8723be_read_adapter_info()
2177 rtlhal->oem_id = RT_CID_819X_EDIMAX_ASUS; in _rtl8723be_read_adapter_info()
2179 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2184 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2186 rtlhal->oem_id = RT_CID_819X_ACER; in _rtl8723be_read_adapter_info()
2189 rtlhal->oem_id = RT_CID_819X_PRONETS; in _rtl8723be_read_adapter_info()
2192 rtlhal->oem_id = in _rtl8723be_read_adapter_info()
2195 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2197 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2201 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl8723be_read_adapter_info()
2204 rtlhal->oem_id = RT_CID_CCX; in _rtl8723be_read_adapter_info()
2207 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl8723be_read_adapter_info()
2212 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl8723be_read_adapter_info()
2223 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_hal_customized_behavior() local
2226 switch (rtlhal->oem_id) { in _rtl8723be_hal_customized_behavior()
2240 "RT Customized ID: 0x%02X\n", rtlhal->oem_id); in _rtl8723be_hal_customized_behavior()
2248 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_read_eeprom_info() local
2251 rtlhal->version = _rtl8723be_read_chip_version(hw); in rtl8723be_read_eeprom_info()
2258 rtlhal->version); in rtl8723be_read_eeprom_info()
2476 if (rtlpriv->rtlhal.being_init_adapter) in rtl8723be_gpio_radio_on_off_checking()