Home
last modified time | relevance | path

Searched refs:rtlhal (Results 1 – 25 of 71) sorted by relevance

123

/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c102 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8821ae_set_fw_clock_on() local
110 if (!rtlhal->fw_ready) in _rtl8821ae_set_fw_clock_on()
117 if (rtlhal->fw_clk_change_in_progress) { in _rtl8821ae_set_fw_clock_on()
118 while (rtlhal->fw_clk_change_in_progress) { in _rtl8821ae_set_fw_clock_on()
128 rtlhal->fw_clk_change_in_progress = false; in _rtl8821ae_set_fw_clock_on()
134 if (IS_IN_LOW_POWER_STATE_8821AE(rtlhal->fw_ps_state)) { in _rtl8821ae_set_fw_clock_on()
148 rtlhal->fw_ps_state = FW_PS_STATE_RF_ON_8821AE; in _rtl8821ae_set_fw_clock_on()
151 rtlhal->fw_ps_state); in _rtl8821ae_set_fw_clock_on()
156 rtlhal->fw_clk_change_in_progress = false; in _rtl8821ae_set_fw_clock_on()
163 rtlhal->fw_clk_change_in_progress = false; in _rtl8821ae_set_fw_clock_on()
[all …]
Dfw.c121 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_download_fw() local
127 enum version_8821ae version = rtlhal->version; in rtl8821ae_download_fw()
136 if (!rtlhal->wowlan_firmware) in rtl8821ae_download_fw()
140 (struct rtlwifi_firmware_header *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
141 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl8821ae_download_fw()
142 rtlhal->fw_subversion = pfwheader->subversion; in rtl8821ae_download_fw()
143 pfwdata = (u8 *)rtlhal->wowlan_firmware; in rtl8821ae_download_fw()
144 fwsize = rtlhal->wowlan_fwsize; in rtl8821ae_download_fw()
146 if (!rtlhal->pfirmware) in rtl8821ae_download_fw()
150 (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl8821ae_download_fw()
[all …]
Dsw.c73 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8821ae_init_sw_vars() local
93 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl8821ae_init_sw_vars()
95 rtlpriv->rtlhal.bandset = BAND_ON_BOTH; in rtl8821ae_init_sw_vars()
96 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl8821ae_init_sw_vars()
165 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl8821ae_init_sw_vars()
166 if (!rtlpriv->rtlhal.pfirmware) { in rtl8821ae_init_sw_vars()
170 rtlpriv->rtlhal.wowlan_firmware = vzalloc(0x8000); in rtl8821ae_init_sw_vars()
171 if (!rtlpriv->rtlhal.wowlan_firmware) { in rtl8821ae_init_sw_vars()
173 vfree(rtlpriv->rtlhal.pfirmware); in rtl8821ae_init_sw_vars()
174 rtlpriv->rtlhal.pfirmware = NULL; in rtl8821ae_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dphy.c175 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92d_phy_query_bb_reg() local
180 if (rtlhal->during_mac1init_radioa || rtlhal->during_mac0init_radiob) { in rtl92d_phy_query_bb_reg()
185 if (rtlhal->during_mac1init_radioa) in rtl92d_phy_query_bb_reg()
187 else if (rtlhal->during_mac0init_radiob) in rtl92d_phy_query_bb_reg()
206 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92d_phy_set_bb_reg() local
213 if (rtlhal->during_mac1init_radioa) in rtl92d_phy_set_bb_reg()
215 else if (rtlhal->during_mac0init_radiob) in rtl92d_phy_set_bb_reg()
219 if (rtlhal->during_mac1init_radioa || in rtl92d_phy_set_bb_reg()
220 rtlhal->during_mac0init_radiob) in rtl92d_phy_set_bb_reg()
229 if (rtlhal->during_mac1init_radioa || rtlhal->during_mac0init_radiob) in rtl92d_phy_set_bb_reg()
[all …]
Dfw.c45 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92d_write_fw() local
51 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192DE) in _rtl92d_write_fw()
114 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92d_fw_init() local
121 if (rtlhal->interfaceindex == 0) { in _rtl92d_fw_init()
144 if (rtlhal->interfaceindex == 0) { in _rtl92d_fw_init()
162 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92d_download_fw() local
167 enum version_8192d version = rtlhal->version; in rtl92d_download_fw()
173 if (rtlpriv->max_fw_size == 0 || !rtlhal->pfirmware) in rtl92d_download_fw()
175 fwsize = rtlhal->fwsize; in rtl92d_download_fw()
176 pfwheader = rtlhal->pfirmware; in rtl92d_download_fw()
[all …]
Drf.c385 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_enable_anotherphy() local
392 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_enable_anotherphy()
393 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_enable_anotherphy()
416 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_powerdown_anotherphy() local
422 rtlhal->during_mac0init_radiob = false; in rtl92d_phy_powerdown_anotherphy()
423 rtlhal->during_mac1init_radioa = false; in rtl92d_phy_powerdown_anotherphy()
442 struct rtl_hal *rtlhal = &(rtlpriv->rtlhal); in rtl92d_phy_rf6052_config() local
460 if (rtlhal->macphymode == DUALMAC_DUALPHY) { in rtl92d_phy_rf6052_config()
461 if (rtlhal->current_bandtype == BAND_ON_2_4G && in rtl92d_phy_rf6052_config()
462 rtlhal->interfaceindex == 0) { in rtl92d_phy_rf6052_config()
[all …]
Dsw.c79 if (rtlpriv->rtlhal.current_bandtype == BAND_ON_5G) in rtl92d_init_sw_vars()
84 if (rtlpriv->rtlhal.macphymode != SINGLEMAC_SINGLEPHY) { in rtl92d_init_sw_vars()
85 rtlpriv->rtlhal.disable_amsdu_8k = true; in rtl92d_init_sw_vars()
144 rtlpriv->rtlhal.earlymode_enable = false; in rtl92d_init_sw_vars()
149 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl92d_init_sw_vars()
150 if (!rtlpriv->rtlhal.pfirmware) { in rtl92d_init_sw_vars()
165 vfree(rtlpriv->rtlhal.pfirmware); in rtl92d_init_sw_vars()
166 rtlpriv->rtlhal.pfirmware = NULL; in rtl92d_init_sw_vars()
178 if (rtlpriv->rtlhal.pfirmware) { in rtl92d_deinit_sw_vars()
179 vfree(rtlpriv->rtlhal.pfirmware); in rtl92d_deinit_sw_vars()
[all …]
Ddm.c161 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics()
189 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics()
297 IS_92D_SINGLEPHY(rtlpriv->rtlhal.version)); in rtl92d_dm_cck_packet_detection_thresh()
356 if (rtlpriv->rtlhal.earlymode_enable) { in rtl92d_dm_dig()
451 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) in rtl92d_dm_dig()
469 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92d_dm_dynamic_txpower() local
508 if (rtlhal->current_bandtype == BAND_ON_5G) { in rtl92d_dm_dynamic_txpower()
709 static void rtl92d_bandtype_5G(struct rtl_hal *rtlhal, u8 *ofdm_index, in rtl92d_bandtype_5G() argument
721 if (rtlhal->macphymode == DUALMAC_DUALPHY && in rtl92d_bandtype_5G()
722 rtlhal->interfaceindex == 1) /* MAC 1 5G */ in rtl92d_bandtype_5G()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dfw_common.c17 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92c_enable_fw_download() local
19 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192CU) { in _rtl92c_enable_fw_download()
27 } else if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192CE) { in _rtl92c_enable_fw_download()
53 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92c_write_fw() local
63 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192CE) in _rtl92c_write_fw()
132 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92c_download_fw() local
137 enum version_8192c version = rtlhal->version; in rtl92c_download_fw()
139 if (!rtlhal->pfirmware) in rtl92c_download_fw()
142 pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl92c_download_fw()
143 pfwdata = (u8 *)rtlhal->pfirmware; in rtl92c_download_fw()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dfw.c111 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_download_fw() local
116 enum version_8188e version = rtlhal->version; in rtl88e_download_fw()
118 if (!rtlhal->pfirmware) in rtl88e_download_fw()
121 pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl88e_download_fw()
122 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl88e_download_fw()
123 rtlhal->fw_subversion = pfwheader->subversion; in rtl88e_download_fw()
124 pfwdata = rtlhal->pfirmware; in rtl88e_download_fw()
125 fwsize = rtlhal->fwsize; in rtl88e_download_fw()
170 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88e_fill_h2c_command() local
188 if (rtlhal->h2c_setinprogress) { in _rtl88e_fill_h2c_command()
[all …]
Dhw.c101 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()
[all …]
Dsw.c77 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl88e_init_sw_vars()
78 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl88e_init_sw_vars()
79 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl88e_init_sw_vars()
138 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl88e_init_sw_vars()
139 if (!rtlpriv->rtlhal.pfirmware) { in rtl88e_init_sw_vars()
152 vfree(rtlpriv->rtlhal.pfirmware); in rtl88e_init_sw_vars()
153 rtlpriv->rtlhal.pfirmware = NULL; in rtl88e_init_sw_vars()
158 rtlpriv->rtlhal.earlymode_enable = false; in rtl88e_init_sw_vars()
159 rtlpriv->rtlhal.max_earlymode_num = 10; in rtl88e_init_sw_vars()
179 if (rtlpriv->rtlhal.pfirmware) { in rtl88e_deinit_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dfw.c107 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ee_download_fw() local
111 enum version_8192e version = rtlhal->version; in rtl92ee_download_fw()
113 if (!rtlhal->pfirmware) in rtl92ee_download_fw()
116 pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl92ee_download_fw()
117 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl92ee_download_fw()
118 rtlhal->fw_subversion = pfwheader->subversion; in rtl92ee_download_fw()
119 pfwdata = (u8 *)rtlhal->pfirmware; in rtl92ee_download_fw()
120 fwsize = rtlhal->fwsize; in rtl92ee_download_fw()
138 if (rtlhal->mac_func_enable) { in rtl92ee_download_fw()
167 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ee_fill_h2c_command() local
[all …]
Dsw.c84 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl92ee_init_sw_vars()
85 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl92ee_init_sw_vars()
86 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl92ee_init_sw_vars()
136 rtlpriv->rtlhal.earlymode_enable = false; in rtl92ee_init_sw_vars()
142 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl92ee_init_sw_vars()
143 if (!rtlpriv->rtlhal.pfirmware) { in rtl92ee_init_sw_vars()
158 vfree(rtlpriv->rtlhal.pfirmware); in rtl92ee_init_sw_vars()
159 rtlpriv->rtlhal.pfirmware = NULL; in rtl92ee_init_sw_vars()
170 if (rtlpriv->rtlhal.pfirmware) { in rtl92ee_deinit_sw_vars()
171 vfree(rtlpriv->rtlhal.pfirmware); in rtl92ee_deinit_sw_vars()
[all …]
Dhw.c75 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()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c106 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()
[all …]
Dfw.c30 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fill_h2c_command() local
48 if (rtlhal->h2c_setinprogress) { in _rtl8723be_fill_h2c_command()
53 while (rtlhal->h2c_setinprogress) { in _rtl8723be_fill_h2c_command()
69 rtlhal->h2c_setinprogress = true; in _rtl8723be_fill_h2c_command()
82 boxnum = rtlhal->last_hmeboxnum; in _rtl8723be_fill_h2c_command()
181 rtlhal->last_hmeboxnum = boxnum + 1; in _rtl8723be_fill_h2c_command()
182 if (rtlhal->last_hmeboxnum == 4) in _rtl8723be_fill_h2c_command()
183 rtlhal->last_hmeboxnum = 0; in _rtl8723be_fill_h2c_command()
187 rtlhal->last_hmeboxnum); in _rtl8723be_fill_h2c_command()
191 rtlhal->h2c_setinprogress = false; in _rtl8723be_fill_h2c_command()
[all …]
Dsw.c88 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl8723be_init_sw_vars()
89 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl8723be_init_sw_vars()
90 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl8723be_init_sw_vars()
149 rtlpriv->rtlhal.earlymode_enable = false; in rtl8723be_init_sw_vars()
152 rtlpriv->rtlhal.pfirmware = vzalloc(0x8000); in rtl8723be_init_sw_vars()
153 if (!rtlpriv->rtlhal.pfirmware) { in rtl8723be_init_sw_vars()
165 vfree(rtlpriv->rtlhal.pfirmware); in rtl8723be_init_sw_vars()
166 rtlpriv->rtlhal.pfirmware = NULL; in rtl8723be_init_sw_vars()
176 if (rtlpriv->rtlhal.pfirmware) { in rtl8723be_deinit_sw_vars()
177 vfree(rtlpriv->rtlhal.pfirmware); in rtl8723be_deinit_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dsw.c72 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92c_init_sw_vars() local
84 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl92c_init_sw_vars()
85 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl92c_init_sw_vars()
86 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl92c_init_sw_vars()
133 rtlpriv->rtlhal.pfirmware = vzalloc(0x4000); in rtl92c_init_sw_vars()
134 if (!rtlpriv->rtlhal.pfirmware) { in rtl92c_init_sw_vars()
140 if (IS_VENDOR_UMC_A_CUT(rtlhal->version) && in rtl92c_init_sw_vars()
141 !IS_92C_SERIAL(rtlhal->version)) in rtl92c_init_sw_vars()
143 else if (IS_81XXC_VENDOR_UMC_B_CUT(rtlhal->version)) in rtl92c_init_sw_vars()
155 vfree(rtlpriv->rtlhal.pfirmware); in rtl92c_init_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dfw.c32 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723e_fill_h2c_command() local
50 if (rtlhal->h2c_setinprogress) { in _rtl8723e_fill_h2c_command()
55 while (rtlhal->h2c_setinprogress) { in _rtl8723e_fill_h2c_command()
71 rtlhal->h2c_setinprogress = true; in _rtl8723e_fill_h2c_command()
84 boxnum = rtlhal->last_hmeboxnum; in _rtl8723e_fill_h2c_command()
216 rtlhal->last_hmeboxnum = boxnum + 1; in _rtl8723e_fill_h2c_command()
217 if (rtlhal->last_hmeboxnum == 4) in _rtl8723e_fill_h2c_command()
218 rtlhal->last_hmeboxnum = 0; in _rtl8723e_fill_h2c_command()
222 rtlhal->last_hmeboxnum); in _rtl8723e_fill_h2c_command()
226 rtlhal->h2c_setinprogress = false; in _rtl8723e_fill_h2c_command()
[all …]
Dsw.c73 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723e_init_sw_vars() local
88 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl8723e_init_sw_vars()
89 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl8723e_init_sw_vars()
90 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl8723e_init_sw_vars()
145 rtlpriv->rtlhal.pfirmware = vzalloc(0x6000); in rtl8723e_init_sw_vars()
146 if (!rtlpriv->rtlhal.pfirmware) { in rtl8723e_init_sw_vars()
151 if (IS_81XXC_VENDOR_UMC_B_CUT(rtlhal->version)) in rtl8723e_init_sw_vars()
161 vfree(rtlpriv->rtlhal.pfirmware); in rtl8723e_init_sw_vars()
162 rtlpriv->rtlhal.pfirmware = NULL; in rtl8723e_init_sw_vars()
172 if (rtlpriv->rtlhal.pfirmware) { in rtl8723e_deinit_sw_vars()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dhw.c303 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92cu_read_board_type() local
306 if (IS_NORMAL_CHIP(rtlhal->version)) { in _rtl92cu_read_board_type()
323 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92cu_read_adapter_info() local
342 if (rtlhal->oem_id == RT_CID_DEFAULT) { in _rtl92cu_read_adapter_info()
348 rtlhal->oem_id = RT_CID_819X_HP; in _rtl92cu_read_adapter_info()
350 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl92cu_read_adapter_info()
352 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl92cu_read_adapter_info()
356 rtlhal->oem_id = RT_CID_TOSHIBA; in _rtl92cu_read_adapter_info()
359 rtlhal->oem_id = RT_CID_819X_QMI; in _rtl92cu_read_adapter_info()
363 rtlhal->oem_id = RT_CID_DEFAULT; in _rtl92cu_read_adapter_info()
[all …]
/drivers/net/wireless/realtek/rtlwifi/
Dpci.c36 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_mac_to_hwqueue() local
45 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192SE) in _rtl_mac_to_hwqueue()
48 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8822BE) { in _rtl_mac_to_hwqueue()
155 if (rtlpriv->rtlhal.hw_type == HARDWARE_TYPE_RTL8192SE && in _rtl_pci_update_default_setting()
165 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_pci_platform_switch_device_pci_aspm() local
169 if (rtlhal->hw_type != HARDWARE_TYPE_RTL8192SE) in _rtl_pci_platform_switch_device_pci_aspm()
183 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_pci_switch_clk_req() local
191 if (rtlhal->hw_type == HARDWARE_TYPE_RTL8192SE) in _rtl_pci_switch_clk_req()
398 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl_update_earlymode_info() local
425 if (tcb_desc->empkt_num >= rtlhal->max_earlymode_num) in _rtl_update_earlymode_info()
[all …]
/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c169 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723_download_fw() local
174 enum version_8723e version = rtlhal->version; in rtl8723_download_fw()
177 if (rtlpriv->max_fw_size == 0 || !rtlhal->pfirmware) in rtl8723_download_fw()
180 pfwheader = (struct rtlwifi_firmware_header *)rtlhal->pfirmware; in rtl8723_download_fw()
181 rtlhal->fw_version = le16_to_cpu(pfwheader->version); in rtl8723_download_fw()
182 rtlhal->fw_subversion = pfwheader->subversion; in rtl8723_download_fw()
183 pfwdata = rtlhal->pfirmware; in rtl8723_download_fw()
184 fwsize = rtlhal->fwsize; in rtl8723_download_fw()
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dsw.c82 pfirmware = (struct rt_firmware *)rtlpriv->rtlhal.pfirmware; in rtl92se_fw_cb()
103 rtlpriv->rtlhal.current_bandtype = BAND_ON_2_4G; in rtl92s_init_sw_vars()
104 rtlpriv->rtlhal.bandset = BAND_ON_2_4G; in rtl92s_init_sw_vars()
105 rtlpriv->rtlhal.macphymode = SINGLEMAC_SINGLEPHY; in rtl92s_init_sw_vars()
181 rtlpriv->rtlhal.pfirmware = vzalloc(sizeof(struct rt_firmware)); in rtl92s_init_sw_vars()
182 if (!rtlpriv->rtlhal.pfirmware) in rtl92s_init_sw_vars()
195 vfree(rtlpriv->rtlhal.pfirmware); in rtl92s_init_sw_vars()
196 rtlpriv->rtlhal.pfirmware = NULL; in rtl92s_init_sw_vars()
207 if (rtlpriv->rtlhal.pfirmware) { in rtl92s_deinit_sw_vars()
208 vfree(rtlpriv->rtlhal.pfirmware); in rtl92s_deinit_sw_vars()
[all …]

123