Lines Matching refs:hw
36 static u32 _rtl88e_phy_rf_serial_read(struct ieee80211_hw *hw,
38 static void _rtl88e_phy_rf_serial_write(struct ieee80211_hw *hw,
42 static bool _rtl88e_phy_bb8188e_config_parafile(struct ieee80211_hw *hw);
43 static bool _rtl88e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw);
44 static bool phy_config_bb_with_headerfile(struct ieee80211_hw *hw,
46 static bool phy_config_bb_with_pghdr(struct ieee80211_hw *hw,
48 static void _rtl88e_phy_init_bb_rf_register_definition(struct ieee80211_hw *hw);
53 static bool _rtl88e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw,
57 static long _rtl88e_phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw,
60 static void rtl88ee_phy_set_rf_on(struct ieee80211_hw *hw);
61 static void rtl88e_phy_set_io(struct ieee80211_hw *hw);
63 u32 rtl88e_phy_query_bb_reg(struct ieee80211_hw *hw, u32 regaddr, u32 bitmask) in rtl88e_phy_query_bb_reg() argument
65 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_query_bb_reg()
82 void rtl88e_phy_set_bb_reg(struct ieee80211_hw *hw, in rtl88e_phy_set_bb_reg() argument
85 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_bb_reg()
105 u32 rtl88e_phy_query_rf_reg(struct ieee80211_hw *hw, in rtl88e_phy_query_rf_reg() argument
108 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_query_rf_reg()
119 original_value = _rtl88e_phy_rf_serial_read(hw, rfpath, regaddr); in rtl88e_phy_query_rf_reg()
131 void rtl88e_phy_set_rf_reg(struct ieee80211_hw *hw, in rtl88e_phy_set_rf_reg() argument
135 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_rf_reg()
146 original_value = _rtl88e_phy_rf_serial_read(hw, in rtl88e_phy_set_rf_reg()
155 _rtl88e_phy_rf_serial_write(hw, rfpath, regaddr, data); in rtl88e_phy_set_rf_reg()
165 static u32 _rtl88e_phy_rf_serial_read(struct ieee80211_hw *hw, in _rtl88e_phy_rf_serial_read() argument
168 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_rf_serial_read()
178 if (RT_CANNOT_IO(hw)) { in _rtl88e_phy_rf_serial_read()
182 tmplong = rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD); in _rtl88e_phy_rf_serial_read()
186 tmplong2 = rtl_get_bbreg(hw, pphyreg->rfhssi_para2, MASKDWORD); in _rtl88e_phy_rf_serial_read()
189 rtl_set_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, MASKDWORD, in _rtl88e_phy_rf_serial_read()
192 rtl_set_bbreg(hw, pphyreg->rfhssi_para2, MASKDWORD, tmplong2); in _rtl88e_phy_rf_serial_read()
195 rfpi_enable = (u8)rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER1, in _rtl88e_phy_rf_serial_read()
198 rfpi_enable = (u8)rtl_get_bbreg(hw, RFPGA0_XB_HSSIPARAMETER1, in _rtl88e_phy_rf_serial_read()
201 retvalue = rtl_get_bbreg(hw, pphyreg->rf_rbpi, in _rtl88e_phy_rf_serial_read()
204 retvalue = rtl_get_bbreg(hw, pphyreg->rf_rb, in _rtl88e_phy_rf_serial_read()
212 static void _rtl88e_phy_rf_serial_write(struct ieee80211_hw *hw, in _rtl88e_phy_rf_serial_write() argument
218 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_rf_serial_write()
222 if (RT_CANNOT_IO(hw)) { in _rtl88e_phy_rf_serial_write()
229 rtl_set_bbreg(hw, pphyreg->rf3wire_offset, MASKDWORD, data_and_addr); in _rtl88e_phy_rf_serial_write()
246 bool rtl88e_phy_mac_config(struct ieee80211_hw *hw) in rtl88e_phy_mac_config() argument
248 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_mac_config()
249 bool rtstatus = _rtl88e_phy_config_mac_with_headerfile(hw); in rtl88e_phy_mac_config()
255 bool rtl88e_phy_bb_config(struct ieee80211_hw *hw) in rtl88e_phy_bb_config() argument
258 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_bb_config()
262 _rtl88e_phy_init_bb_rf_register_definition(hw); in rtl88e_phy_bb_config()
274 rtstatus = _rtl88e_phy_bb8188e_config_parafile(hw); in rtl88e_phy_bb_config()
278 bool rtl88e_phy_rf_config(struct ieee80211_hw *hw) in rtl88e_phy_rf_config() argument
280 return rtl88e_phy_rf6052_config(hw); in rtl88e_phy_rf_config()
283 static bool _rtl88e_check_condition(struct ieee80211_hw *hw, in _rtl88e_check_condition() argument
286 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88e_check_condition()
287 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_check_condition()
312 static void _rtl8188e_config_rf_reg(struct ieee80211_hw *hw, u32 addr, in _rtl8188e_config_rf_reg() argument
329 rtl_set_rfreg(hw, rfpath, regaddr, in _rtl8188e_config_rf_reg()
336 static void _rtl8188e_config_rf_radio_a(struct ieee80211_hw *hw, in _rtl8188e_config_rf_radio_a() argument
342 _rtl8188e_config_rf_reg(hw, addr, data, RF90_PATH_A, in _rtl8188e_config_rf_radio_a()
346 static void _rtl8188e_config_bb_reg(struct ieee80211_hw *hw, in _rtl8188e_config_bb_reg() argument
362 rtl_set_bbreg(hw, addr, MASKDWORD, data); in _rtl8188e_config_bb_reg()
367 static bool _rtl88e_phy_bb8188e_config_parafile(struct ieee80211_hw *hw) in _rtl88e_phy_bb8188e_config_parafile() argument
369 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_bb8188e_config_parafile()
371 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_phy_bb8188e_config_parafile()
374 rtstatus = phy_config_bb_with_headerfile(hw, BASEBAND_CONFIG_PHY_REG); in _rtl88e_phy_bb8188e_config_parafile()
383 phy_config_bb_with_pghdr(hw, BASEBAND_CONFIG_PHY_REG); in _rtl88e_phy_bb8188e_config_parafile()
390 phy_config_bb_with_headerfile(hw, BASEBAND_CONFIG_AGC_TAB); in _rtl88e_phy_bb8188e_config_parafile()
396 (bool)(rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER2, 0x200)); in _rtl88e_phy_bb8188e_config_parafile()
401 static bool _rtl88e_phy_config_mac_with_headerfile(struct ieee80211_hw *hw) in _rtl88e_phy_config_mac_with_headerfile() argument
403 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_config_mac_with_headerfile()
424 static void handle_branch1(struct ieee80211_hw *hw, u16 arraylen, in handle_branch1() argument
435 _rtl8188e_config_bb_reg(hw, v1, v2); in handle_branch1()
441 if (!_rtl88e_check_condition(hw, array_table[i])) { in handle_branch1()
456 _rtl8188e_config_bb_reg(hw, v1, v2); in handle_branch1()
467 static void handle_branch2(struct ieee80211_hw *hw, u16 arraylen, in handle_branch2() argument
470 struct rtl_priv *rtlpriv = rtl_priv(hw); in handle_branch2()
479 rtl_set_bbreg(hw, array_table[i], MASKDWORD, in handle_branch2()
488 if (!_rtl88e_check_condition(hw, array_table[i])) { in handle_branch2()
503 rtl_set_bbreg(hw, array_table[i], in handle_branch2()
520 static bool phy_config_bb_with_headerfile(struct ieee80211_hw *hw, in phy_config_bb_with_headerfile() argument
529 handle_branch1(hw, arraylen, array_table); in phy_config_bb_with_headerfile()
533 handle_branch2(hw, arraylen, array_table); in phy_config_bb_with_headerfile()
538 static void store_pwrindex_rate_offset(struct ieee80211_hw *hw, in store_pwrindex_rate_offset() argument
542 struct rtl_priv *rtlpriv = rtl_priv(hw); in store_pwrindex_rate_offset()
668 static bool phy_config_bb_with_pghdr(struct ieee80211_hw *hw, u8 configtype) in phy_config_bb_with_pghdr() argument
670 struct rtl_priv *rtlpriv = rtl_priv(hw); in phy_config_bb_with_pghdr()
699 store_pwrindex_rate_offset(hw, phy_reg_page[i], in phy_config_bb_with_pghdr()
704 if (!_rtl88e_check_condition(hw, in phy_config_bb_with_pghdr()
739 static void process_path_a(struct ieee80211_hw *hw, in process_path_a() argument
743 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in process_path_a()
751 _rtl8188e_config_rf_radio_a(hw, v1, v2); in process_path_a()
757 if (!_rtl88e_check_condition(hw, radioa_array_table[i])) { in process_path_a()
775 _rtl8188e_config_rf_radio_a(hw, v1, v2); in process_path_a()
787 _rtl8188e_config_rf_radio_a(hw, 0x52, 0x7E4BD); in process_path_a()
790 bool rtl88e_phy_config_rf_with_headerfile(struct ieee80211_hw *hw, in rtl88e_phy_config_rf_with_headerfile() argument
793 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_config_rf_with_headerfile()
806 process_path_a(hw, radioa_arraylen, radioa_array_table); in rtl88e_phy_config_rf_with_headerfile()
816 void rtl88e_phy_get_hw_reg_originalvalue(struct ieee80211_hw *hw) in rtl88e_phy_get_hw_reg_originalvalue() argument
818 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_get_hw_reg_originalvalue()
822 (u8)rtl_get_bbreg(hw, ROFDM0_XAAGCCORE1, MASKBYTE0); in rtl88e_phy_get_hw_reg_originalvalue()
824 (u8)rtl_get_bbreg(hw, ROFDM0_XBAGCCORE1, MASKBYTE0); in rtl88e_phy_get_hw_reg_originalvalue()
826 (u8)rtl_get_bbreg(hw, ROFDM0_XCAGCCORE1, MASKBYTE0); in rtl88e_phy_get_hw_reg_originalvalue()
828 (u8)rtl_get_bbreg(hw, ROFDM0_XDAGCCORE1, MASKBYTE0); in rtl88e_phy_get_hw_reg_originalvalue()
837 rtlphy->framesync = (u8)rtl_get_bbreg(hw, ROFDM0_RXDETECTOR3, in rtl88e_phy_get_hw_reg_originalvalue()
839 rtlphy->framesync_c34 = rtl_get_bbreg(hw, ROFDM0_RXDETECTOR2, in rtl88e_phy_get_hw_reg_originalvalue()
847 static void _rtl88e_phy_init_bb_rf_register_definition(struct ieee80211_hw *hw) in _rtl88e_phy_init_bb_rf_register_definition() argument
849 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_init_bb_rf_register_definition()
933 void rtl88e_phy_get_txpower_level(struct ieee80211_hw *hw, long *powerlevel) in rtl88e_phy_get_txpower_level() argument
935 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_get_txpower_level()
941 txpwr_dbm = _rtl88e_phy_txpwr_idx_to_dbm(hw, in rtl88e_phy_get_txpower_level()
944 if (_rtl88e_phy_txpwr_idx_to_dbm(hw, in rtl88e_phy_get_txpower_level()
948 _rtl88e_phy_txpwr_idx_to_dbm(hw, WIRELESS_MODE_G, in rtl88e_phy_get_txpower_level()
951 if (_rtl88e_phy_txpwr_idx_to_dbm(hw, in rtl88e_phy_get_txpower_level()
955 _rtl88e_phy_txpwr_idx_to_dbm(hw, WIRELESS_MODE_N_24G, in rtl88e_phy_get_txpower_level()
987 static void _rtl88e_get_txpower_index(struct ieee80211_hw *hw, u8 channel, in _rtl88e_get_txpower_index() argument
991 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_get_txpower_index()
1016 static void _rtl88e_ccxpower_index_check(struct ieee80211_hw *hw, in _rtl88e_ccxpower_index_check() argument
1021 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_ccxpower_index_check()
1031 void rtl88e_phy_set_txpower_level(struct ieee80211_hw *hw, u8 channel) in rtl88e_phy_set_txpower_level() argument
1033 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88e_phy_set_txpower_level()
1041 _rtl88e_get_txpower_index(hw, channel, in rtl88e_phy_set_txpower_level()
1044 _rtl88e_ccxpower_index_check(hw, channel, in rtl88e_phy_set_txpower_level()
1047 rtl88e_phy_rf6052_set_cck_txpower(hw, &cckpowerlevel[0]); in rtl88e_phy_set_txpower_level()
1048 rtl88e_phy_rf6052_set_ofdm_txpower(hw, &ofdmpowerlevel[0], in rtl88e_phy_set_txpower_level()
1053 static long _rtl88e_phy_txpwr_idx_to_dbm(struct ieee80211_hw *hw, in _rtl88e_phy_txpwr_idx_to_dbm() argument
1076 void rtl88e_phy_scan_operation_backup(struct ieee80211_hw *hw, u8 operation) in rtl88e_phy_scan_operation_backup() argument
1078 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_scan_operation_backup()
1079 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_phy_scan_operation_backup()
1086 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl88e_phy_scan_operation_backup()
1093 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl88e_phy_scan_operation_backup()
1105 void rtl88e_phy_set_bw_mode_callback(struct ieee80211_hw *hw) in rtl88e_phy_set_bw_mode_callback() argument
1107 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_bw_mode_callback()
1108 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_phy_set_bw_mode_callback()
1110 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88e_phy_set_bw_mode_callback()
1147 rtl_set_bbreg(hw, RFPGA0_RFMOD, BRFMOD, 0x0); in rtl88e_phy_set_bw_mode_callback()
1148 rtl_set_bbreg(hw, RFPGA1_RFMOD, BRFMOD, 0x0); in rtl88e_phy_set_bw_mode_callback()
1152 rtl_set_bbreg(hw, RFPGA0_RFMOD, BRFMOD, 0x1); in rtl88e_phy_set_bw_mode_callback()
1153 rtl_set_bbreg(hw, RFPGA1_RFMOD, BRFMOD, 0x1); in rtl88e_phy_set_bw_mode_callback()
1155 rtl_set_bbreg(hw, RCCK0_SYSTEM, BCCK_SIDEBAND, in rtl88e_phy_set_bw_mode_callback()
1157 rtl_set_bbreg(hw, ROFDM1_LSTF, 0xC00, mac->cur_40_prime_sc); in rtl88e_phy_set_bw_mode_callback()
1160 rtl_set_bbreg(hw, 0x818, (BIT(26) | BIT(27)), in rtl88e_phy_set_bw_mode_callback()
1169 rtl88e_phy_rf6052_set_bandwidth(hw, rtlphy->current_chan_bw); in rtl88e_phy_set_bw_mode_callback()
1174 void rtl88e_phy_set_bw_mode(struct ieee80211_hw *hw, in rtl88e_phy_set_bw_mode() argument
1177 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_bw_mode()
1179 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_phy_set_bw_mode()
1185 if ((!is_hal_stop(rtlhal)) && !(RT_CANNOT_IO(hw))) { in rtl88e_phy_set_bw_mode()
1186 rtl88e_phy_set_bw_mode_callback(hw); in rtl88e_phy_set_bw_mode()
1195 void rtl88e_phy_sw_chnl_callback(struct ieee80211_hw *hw) in rtl88e_phy_sw_chnl_callback() argument
1197 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_sw_chnl_callback()
1198 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_phy_sw_chnl_callback()
1210 (hw, rtlphy->current_channel, &rtlphy->sw_chnl_stage, in rtl88e_phy_sw_chnl_callback()
1224 u8 rtl88e_phy_sw_chnl(struct ieee80211_hw *hw) in rtl88e_phy_sw_chnl() argument
1226 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_sw_chnl()
1228 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88e_phy_sw_chnl()
1239 if (!(is_hal_stop(rtlhal)) && !(RT_CANNOT_IO(hw))) { in rtl88e_phy_sw_chnl()
1240 rtl88e_phy_sw_chnl_callback(hw); in rtl88e_phy_sw_chnl()
1253 static bool _rtl88e_phy_sw_chnl_step_by_step(struct ieee80211_hw *hw, in _rtl88e_phy_sw_chnl_step_by_step() argument
1257 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_sw_chnl_step_by_step()
1321 rtl88e_phy_set_txpower_level(hw, channel); in _rtl88e_phy_sw_chnl_step_by_step()
1341 rtl_set_rfreg(hw, (enum radio_path)rfpath, in _rtl88e_phy_sw_chnl_step_by_step()
1384 static u8 _rtl88e_phy_path_a_iqk(struct ieee80211_hw *hw, bool config_pathb) in _rtl88e_phy_path_a_iqk() argument
1389 rtl_set_bbreg(hw, 0xe30, MASKDWORD, 0x10008c1c); in _rtl88e_phy_path_a_iqk()
1390 rtl_set_bbreg(hw, 0xe34, MASKDWORD, 0x30008c1c); in _rtl88e_phy_path_a_iqk()
1391 rtl_set_bbreg(hw, 0xe38, MASKDWORD, 0x8214032a); in _rtl88e_phy_path_a_iqk()
1392 rtl_set_bbreg(hw, 0xe3c, MASKDWORD, 0x28160000); in _rtl88e_phy_path_a_iqk()
1394 rtl_set_bbreg(hw, 0xe4c, MASKDWORD, 0x00462911); in _rtl88e_phy_path_a_iqk()
1395 rtl_set_bbreg(hw, 0xe48, MASKDWORD, 0xf9000000); in _rtl88e_phy_path_a_iqk()
1396 rtl_set_bbreg(hw, 0xe48, MASKDWORD, 0xf8000000); in _rtl88e_phy_path_a_iqk()
1400 reg_eac = rtl_get_bbreg(hw, 0xeac, MASKDWORD); in _rtl88e_phy_path_a_iqk()
1401 reg_e94 = rtl_get_bbreg(hw, 0xe94, MASKDWORD); in _rtl88e_phy_path_a_iqk()
1402 reg_e9c = rtl_get_bbreg(hw, 0xe9c, MASKDWORD); in _rtl88e_phy_path_a_iqk()
1403 reg_ea4 = rtl_get_bbreg(hw, 0xea4, MASKDWORD); in _rtl88e_phy_path_a_iqk()
1412 static u8 _rtl88e_phy_path_b_iqk(struct ieee80211_hw *hw) in _rtl88e_phy_path_b_iqk() argument
1417 rtl_set_bbreg(hw, 0xe60, MASKDWORD, 0x00000002); in _rtl88e_phy_path_b_iqk()
1418 rtl_set_bbreg(hw, 0xe60, MASKDWORD, 0x00000000); in _rtl88e_phy_path_b_iqk()
1420 reg_eac = rtl_get_bbreg(hw, 0xeac, MASKDWORD); in _rtl88e_phy_path_b_iqk()
1421 reg_eb4 = rtl_get_bbreg(hw, 0xeb4, MASKDWORD); in _rtl88e_phy_path_b_iqk()
1422 reg_ebc = rtl_get_bbreg(hw, 0xebc, MASKDWORD); in _rtl88e_phy_path_b_iqk()
1423 reg_ec4 = rtl_get_bbreg(hw, 0xec4, MASKDWORD); in _rtl88e_phy_path_b_iqk()
1424 reg_ecc = rtl_get_bbreg(hw, 0xecc, MASKDWORD); in _rtl88e_phy_path_b_iqk()
1439 static u8 _rtl88e_phy_path_a_rx_iqk(struct ieee80211_hw *hw, bool config_pathb) in _rtl88e_phy_path_a_rx_iqk() argument
1446 rtl_set_bbreg(hw, RFPGA0_IQK, MASKDWORD, 0x00000000); in _rtl88e_phy_path_a_rx_iqk()
1447 rtl_set_rfreg(hw, RF90_PATH_A, RF_WE_LUT, RFREG_OFFSET_MASK, 0x800a0); in _rtl88e_phy_path_a_rx_iqk()
1448 rtl_set_rfreg(hw, RF90_PATH_A, RF_RCK_OS, RFREG_OFFSET_MASK, 0x30000); in _rtl88e_phy_path_a_rx_iqk()
1449 rtl_set_rfreg(hw, RF90_PATH_A, RF_TXPA_G1, RFREG_OFFSET_MASK, 0x0000f); in _rtl88e_phy_path_a_rx_iqk()
1450 rtl_set_rfreg(hw, RF90_PATH_A, RF_TXPA_G2, RFREG_OFFSET_MASK, 0xf117b); in _rtl88e_phy_path_a_rx_iqk()
1451 rtl_set_bbreg(hw, RFPGA0_IQK, MASKDWORD, 0x80800000); in _rtl88e_phy_path_a_rx_iqk()
1454 rtl_set_bbreg(hw, RTX_IQK, MASKDWORD, 0x01007c00); in _rtl88e_phy_path_a_rx_iqk()
1455 rtl_set_bbreg(hw, RRX_IQK, MASKDWORD, 0x81004800); in _rtl88e_phy_path_a_rx_iqk()
1458 rtl_set_bbreg(hw, RTX_IQK_TONE_A, MASKDWORD, 0x10008c1c); in _rtl88e_phy_path_a_rx_iqk()
1459 rtl_set_bbreg(hw, RRX_IQK_TONE_A, MASKDWORD, 0x30008c1c); in _rtl88e_phy_path_a_rx_iqk()
1460 rtl_set_bbreg(hw, RTX_IQK_PI_A, MASKDWORD, 0x82160804); in _rtl88e_phy_path_a_rx_iqk()
1461 rtl_set_bbreg(hw, RRX_IQK_PI_A, MASKDWORD, 0x28160000); in _rtl88e_phy_path_a_rx_iqk()
1464 rtl_set_bbreg(hw, RIQK_AGC_RSP, MASKDWORD, 0x0046a911); in _rtl88e_phy_path_a_rx_iqk()
1466 rtl_set_bbreg(hw, RIQK_AGC_PTS, MASKDWORD, 0xf9000000); in _rtl88e_phy_path_a_rx_iqk()
1467 rtl_set_bbreg(hw, RIQK_AGC_PTS, MASKDWORD, 0xf8000000); in _rtl88e_phy_path_a_rx_iqk()
1471 reg_eac = rtl_get_bbreg(hw, RRX_POWER_AFTER_IQK_A_2, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1472 reg_e94 = rtl_get_bbreg(hw, RTX_POWER_BEFORE_IQK_A, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1473 reg_e9c = rtl_get_bbreg(hw, RTX_POWER_AFTER_IQK_A, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1485 rtl_set_bbreg(hw, RTX_IQK, MASKDWORD, u32temp); in _rtl88e_phy_path_a_rx_iqk()
1488 rtl_set_bbreg(hw, RFPGA0_IQK, MASKDWORD, 0x00000000); in _rtl88e_phy_path_a_rx_iqk()
1489 rtl_set_rfreg(hw, RF90_PATH_A, RF_WE_LUT, RFREG_OFFSET_MASK, 0x800a0); in _rtl88e_phy_path_a_rx_iqk()
1490 rtl_set_rfreg(hw, RF90_PATH_A, RF_RCK_OS, RFREG_OFFSET_MASK, 0x30000); in _rtl88e_phy_path_a_rx_iqk()
1491 rtl_set_rfreg(hw, RF90_PATH_A, RF_TXPA_G1, RFREG_OFFSET_MASK, 0x0000f); in _rtl88e_phy_path_a_rx_iqk()
1492 rtl_set_rfreg(hw, RF90_PATH_A, RF_TXPA_G2, RFREG_OFFSET_MASK, 0xf7ffa); in _rtl88e_phy_path_a_rx_iqk()
1493 rtl_set_bbreg(hw, RFPGA0_IQK, MASKDWORD, 0x80800000); in _rtl88e_phy_path_a_rx_iqk()
1496 rtl_set_bbreg(hw, RRX_IQK, MASKDWORD, 0x01004800); in _rtl88e_phy_path_a_rx_iqk()
1499 rtl_set_bbreg(hw, RTX_IQK_TONE_A, MASKDWORD, 0x30008c1c); in _rtl88e_phy_path_a_rx_iqk()
1500 rtl_set_bbreg(hw, RRX_IQK_TONE_A, MASKDWORD, 0x10008c1c); in _rtl88e_phy_path_a_rx_iqk()
1501 rtl_set_bbreg(hw, RTX_IQK_PI_A, MASKDWORD, 0x82160c05); in _rtl88e_phy_path_a_rx_iqk()
1502 rtl_set_bbreg(hw, RRX_IQK_PI_A, MASKDWORD, 0x28160c05); in _rtl88e_phy_path_a_rx_iqk()
1505 rtl_set_bbreg(hw, RIQK_AGC_RSP, MASKDWORD, 0x0046a911); in _rtl88e_phy_path_a_rx_iqk()
1507 rtl_set_bbreg(hw, RIQK_AGC_PTS, MASKDWORD, 0xf9000000); in _rtl88e_phy_path_a_rx_iqk()
1508 rtl_set_bbreg(hw, RIQK_AGC_PTS, MASKDWORD, 0xf8000000); in _rtl88e_phy_path_a_rx_iqk()
1512 reg_eac = rtl_get_bbreg(hw, RRX_POWER_AFTER_IQK_A_2, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1513 reg_e94 = rtl_get_bbreg(hw, RTX_POWER_BEFORE_IQK_A, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1514 reg_e9c = rtl_get_bbreg(hw, RTX_POWER_AFTER_IQK_A, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1515 reg_ea4 = rtl_get_bbreg(hw, RRX_POWER_BEFORE_IQK_A_2, MASKDWORD); in _rtl88e_phy_path_a_rx_iqk()
1524 static void _rtl88e_phy_path_a_fill_iqk_matrix(struct ieee80211_hw *hw, in _rtl88e_phy_path_a_fill_iqk_matrix() argument
1534 oldval_0 = (rtl_get_bbreg(hw, ROFDM0_XATXIQIMBALANCE, in _rtl88e_phy_path_a_fill_iqk_matrix()
1540 rtl_set_bbreg(hw, ROFDM0_XATXIQIMBALANCE, 0x3FF, tx0_a); in _rtl88e_phy_path_a_fill_iqk_matrix()
1541 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(31), in _rtl88e_phy_path_a_fill_iqk_matrix()
1547 rtl_set_bbreg(hw, ROFDM0_XCTXAFE, 0xF0000000, in _rtl88e_phy_path_a_fill_iqk_matrix()
1549 rtl_set_bbreg(hw, ROFDM0_XATXIQIMBALANCE, 0x003F0000, in _rtl88e_phy_path_a_fill_iqk_matrix()
1551 rtl_set_bbreg(hw, ROFDM0_ECCATHRESHOLD, BIT(29), in _rtl88e_phy_path_a_fill_iqk_matrix()
1556 rtl_set_bbreg(hw, ROFDM0_XARXIQIMBALANCE, 0x3FF, reg); in _rtl88e_phy_path_a_fill_iqk_matrix()
1558 rtl_set_bbreg(hw, ROFDM0_XARXIQIMBALANCE, 0xFC00, reg); in _rtl88e_phy_path_a_fill_iqk_matrix()
1560 rtl_set_bbreg(hw, 0xca0, 0xF0000000, reg); in _rtl88e_phy_path_a_fill_iqk_matrix()
1564 static void _rtl88e_phy_save_adda_registers(struct ieee80211_hw *hw, in _rtl88e_phy_save_adda_registers() argument
1571 addabackup[i] = rtl_get_bbreg(hw, addareg[i], MASKDWORD); in _rtl88e_phy_save_adda_registers()
1574 static void _rtl88e_phy_save_mac_registers(struct ieee80211_hw *hw, in _rtl88e_phy_save_mac_registers() argument
1577 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_save_mac_registers()
1585 static void _rtl88e_phy_reload_adda_registers(struct ieee80211_hw *hw, in _rtl88e_phy_reload_adda_registers() argument
1592 rtl_set_bbreg(hw, addareg[i], MASKDWORD, addabackup[i]); in _rtl88e_phy_reload_adda_registers()
1595 static void _rtl88e_phy_reload_mac_registers(struct ieee80211_hw *hw, in _rtl88e_phy_reload_mac_registers() argument
1598 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_reload_mac_registers()
1606 static void _rtl88e_phy_path_adda_on(struct ieee80211_hw *hw, in _rtl88e_phy_path_adda_on() argument
1615 rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0); in _rtl88e_phy_path_adda_on()
1617 rtl_set_bbreg(hw, addareg[0], MASKDWORD, pathon); in _rtl88e_phy_path_adda_on()
1621 rtl_set_bbreg(hw, addareg[i], MASKDWORD, pathon); in _rtl88e_phy_path_adda_on()
1624 static void _rtl88e_phy_mac_setting_calibration(struct ieee80211_hw *hw, in _rtl88e_phy_mac_setting_calibration() argument
1627 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_mac_setting_calibration()
1638 static void _rtl88e_phy_path_a_standby(struct ieee80211_hw *hw) in _rtl88e_phy_path_a_standby() argument
1640 rtl_set_bbreg(hw, 0xe28, MASKDWORD, 0x0); in _rtl88e_phy_path_a_standby()
1641 rtl_set_bbreg(hw, 0x840, MASKDWORD, 0x00010000); in _rtl88e_phy_path_a_standby()
1642 rtl_set_bbreg(hw, 0xe28, MASKDWORD, 0x80800000); in _rtl88e_phy_path_a_standby()
1645 static void _rtl88e_phy_pi_mode_switch(struct ieee80211_hw *hw, bool pi_mode) in _rtl88e_phy_pi_mode_switch() argument
1650 rtl_set_bbreg(hw, 0x820, MASKDWORD, mode); in _rtl88e_phy_pi_mode_switch()
1651 rtl_set_bbreg(hw, 0x828, MASKDWORD, mode); in _rtl88e_phy_pi_mode_switch()
1654 static bool _rtl88e_phy_simularity_compare(struct ieee80211_hw *hw, in _rtl88e_phy_simularity_compare() argument
1658 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88e_phy_simularity_compare()
1714 static void _rtl88e_phy_iq_calibrate(struct ieee80211_hw *hw, in _rtl88e_phy_iq_calibrate() argument
1717 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_iq_calibrate()
1738 _rtl88e_phy_save_adda_registers(hw, adda_reg, in _rtl88e_phy_iq_calibrate()
1740 _rtl88e_phy_save_mac_registers(hw, iqk_mac_reg, in _rtl88e_phy_iq_calibrate()
1742 _rtl88e_phy_save_adda_registers(hw, iqk_bb_reg, in _rtl88e_phy_iq_calibrate()
1746 _rtl88e_phy_path_adda_on(hw, adda_reg, true, is2t); in _rtl88e_phy_iq_calibrate()
1749 (u8)rtl_get_bbreg(hw, RFPGA0_XA_HSSIPARAMETER1, BIT(8)); in _rtl88e_phy_iq_calibrate()
1753 _rtl88e_phy_pi_mode_switch(hw, true); in _rtl88e_phy_iq_calibrate()
1755 rtl_set_bbreg(hw, 0x800, BIT(24), 0x00); in _rtl88e_phy_iq_calibrate()
1756 rtl_set_bbreg(hw, 0xc04, MASKDWORD, 0x03a05600); in _rtl88e_phy_iq_calibrate()
1757 rtl_set_bbreg(hw, 0xc08, MASKDWORD, 0x000800e4); in _rtl88e_phy_iq_calibrate()
1758 rtl_set_bbreg(hw, 0x874, MASKDWORD, 0x22204000); in _rtl88e_phy_iq_calibrate()
1760 rtl_set_bbreg(hw, 0x870, BIT(10), 0x01); in _rtl88e_phy_iq_calibrate()
1761 rtl_set_bbreg(hw, 0x870, BIT(26), 0x01); in _rtl88e_phy_iq_calibrate()
1762 rtl_set_bbreg(hw, 0x860, BIT(10), 0x00); in _rtl88e_phy_iq_calibrate()
1763 rtl_set_bbreg(hw, 0x864, BIT(10), 0x00); in _rtl88e_phy_iq_calibrate()
1766 rtl_set_bbreg(hw, 0x840, MASKDWORD, 0x00010000); in _rtl88e_phy_iq_calibrate()
1767 rtl_set_bbreg(hw, 0x844, MASKDWORD, 0x00010000); in _rtl88e_phy_iq_calibrate()
1769 _rtl88e_phy_mac_setting_calibration(hw, iqk_mac_reg, in _rtl88e_phy_iq_calibrate()
1771 rtl_set_bbreg(hw, 0xb68, MASKDWORD, 0x0f600000); in _rtl88e_phy_iq_calibrate()
1773 rtl_set_bbreg(hw, 0xb6c, MASKDWORD, 0x0f600000); in _rtl88e_phy_iq_calibrate()
1775 rtl_set_bbreg(hw, 0xe28, MASKDWORD, 0x80800000); in _rtl88e_phy_iq_calibrate()
1776 rtl_set_bbreg(hw, 0xe40, MASKDWORD, 0x01007c00); in _rtl88e_phy_iq_calibrate()
1777 rtl_set_bbreg(hw, 0xe44, MASKDWORD, 0x81004800); in _rtl88e_phy_iq_calibrate()
1779 patha_ok = _rtl88e_phy_path_a_iqk(hw, is2t); in _rtl88e_phy_iq_calibrate()
1783 result[t][0] = (rtl_get_bbreg(hw, 0xe94, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1785 result[t][1] = (rtl_get_bbreg(hw, 0xe9c, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1792 patha_ok = _rtl88e_phy_path_a_rx_iqk(hw, is2t); in _rtl88e_phy_iq_calibrate()
1796 result[t][2] = (rtl_get_bbreg(hw, 0xea4, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1798 result[t][3] = (rtl_get_bbreg(hw, 0xeac, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1811 _rtl88e_phy_path_a_standby(hw); in _rtl88e_phy_iq_calibrate()
1812 _rtl88e_phy_path_adda_on(hw, adda_reg, false, is2t); in _rtl88e_phy_iq_calibrate()
1814 pathb_ok = _rtl88e_phy_path_b_iqk(hw); in _rtl88e_phy_iq_calibrate()
1816 result[t][4] = (rtl_get_bbreg(hw, in _rtl88e_phy_iq_calibrate()
1821 (rtl_get_bbreg(hw, 0xebc, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1824 (rtl_get_bbreg(hw, 0xec4, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1827 (rtl_get_bbreg(hw, 0xecc, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1831 result[t][4] = (rtl_get_bbreg(hw, in _rtl88e_phy_iq_calibrate()
1836 result[t][5] = (rtl_get_bbreg(hw, 0xebc, MASKDWORD) & in _rtl88e_phy_iq_calibrate()
1841 rtl_set_bbreg(hw, 0xe28, MASKDWORD, 0); in _rtl88e_phy_iq_calibrate()
1845 _rtl88e_phy_pi_mode_switch(hw, false); in _rtl88e_phy_iq_calibrate()
1846 _rtl88e_phy_reload_adda_registers(hw, adda_reg, in _rtl88e_phy_iq_calibrate()
1848 _rtl88e_phy_reload_mac_registers(hw, iqk_mac_reg, in _rtl88e_phy_iq_calibrate()
1850 _rtl88e_phy_reload_adda_registers(hw, iqk_bb_reg, in _rtl88e_phy_iq_calibrate()
1854 rtl_set_bbreg(hw, 0x840, MASKDWORD, 0x00032ed3); in _rtl88e_phy_iq_calibrate()
1856 rtl_set_bbreg(hw, 0x844, MASKDWORD, 0x00032ed3); in _rtl88e_phy_iq_calibrate()
1857 rtl_set_bbreg(hw, 0xe30, MASKDWORD, 0x01008c00); in _rtl88e_phy_iq_calibrate()
1858 rtl_set_bbreg(hw, 0xe34, MASKDWORD, 0x01008c00); in _rtl88e_phy_iq_calibrate()
1863 static void _rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw, bool is2t) in _rtl88e_phy_lc_calibrate() argument
1867 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_lc_calibrate()
1877 rf_a_mode = rtl_get_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS); in _rtl88e_phy_lc_calibrate()
1880 rf_b_mode = rtl_get_rfreg(hw, RF90_PATH_B, 0x00, in _rtl88e_phy_lc_calibrate()
1883 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS, in _rtl88e_phy_lc_calibrate()
1887 rtl_set_rfreg(hw, RF90_PATH_B, 0x00, MASK12BITS, in _rtl88e_phy_lc_calibrate()
1890 lc_cal = rtl_get_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS); in _rtl88e_phy_lc_calibrate()
1892 rtl_set_rfreg(hw, RF90_PATH_A, 0x18, MASK12BITS, lc_cal | 0x08000); in _rtl88e_phy_lc_calibrate()
1898 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, MASK12BITS, rf_a_mode); in _rtl88e_phy_lc_calibrate()
1901 rtl_set_rfreg(hw, RF90_PATH_B, 0x00, MASK12BITS, in _rtl88e_phy_lc_calibrate()
1910 static void _rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, in _rtl88e_phy_set_rfpath_switch() argument
1913 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88e_phy_set_rfpath_switch()
1914 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88e_phy_set_rfpath_switch()
1915 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_phy_set_rfpath_switch()
1922 rtl_set_bbreg(hw, RFPGA0_XAB_RFPARAMETER, BIT(13), 0x01); in _rtl88e_phy_set_rfpath_switch()
1926 rtl_set_bbreg(hw, RFPGA0_XB_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1929 rtl_set_bbreg(hw, RFPGA0_XB_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1932 rtl_set_bbreg(hw, RFPGA0_XAB_RFINTERFACESW, BIT(8) | BIT(9), 0); in _rtl88e_phy_set_rfpath_switch()
1933 rtl_set_bbreg(hw, 0x914, MASKLWORD, 0x0201); in _rtl88e_phy_set_rfpath_switch()
1940 rtl_set_bbreg(hw, RFPGA0_XA_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1942 rtl_set_bbreg(hw, RFPGA0_XB_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1945 rtl_set_bbreg(hw, RCONFIG_RAM64x16, BIT(31), 0); in _rtl88e_phy_set_rfpath_switch()
1947 rtl_set_bbreg(hw, RFPGA0_XA_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1949 rtl_set_bbreg(hw, RFPGA0_XB_RFINTERFACEOE, in _rtl88e_phy_set_rfpath_switch()
1952 rtl_set_bbreg(hw, RCONFIG_RAM64x16, BIT(31), 1); in _rtl88e_phy_set_rfpath_switch()
1960 void rtl88e_phy_iq_calibrate(struct ieee80211_hw *hw, bool b_recovery) in rtl88e_phy_iq_calibrate() argument
1962 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_iq_calibrate()
1983 _rtl88e_phy_reload_adda_registers(hw, in rtl88e_phy_iq_calibrate()
2003 _rtl88e_phy_iq_calibrate(hw, result, i, true); in rtl88e_phy_iq_calibrate()
2005 _rtl88e_phy_iq_calibrate(hw, result, i, false); in rtl88e_phy_iq_calibrate()
2008 _rtl88e_phy_simularity_compare(hw, result, 0, 1); in rtl88e_phy_iq_calibrate()
2016 _rtl88e_phy_simularity_compare(hw, result, 0, 2); in rtl88e_phy_iq_calibrate()
2022 _rtl88e_phy_simularity_compare(hw, result, 1, 2); in rtl88e_phy_iq_calibrate()
2068 _rtl88e_phy_path_a_fill_iqk_matrix(hw, b_patha_ok, result, in rtl88e_phy_iq_calibrate()
2078 _rtl88e_phy_save_adda_registers(hw, iqk_bb_reg, in rtl88e_phy_iq_calibrate()
2082 void rtl88e_phy_lc_calibrate(struct ieee80211_hw *hw) in rtl88e_phy_lc_calibrate() argument
2084 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_lc_calibrate()
2099 _rtl88e_phy_lc_calibrate(hw, false); in rtl88e_phy_lc_calibrate()
2104 void rtl88e_phy_set_rfpath_switch(struct ieee80211_hw *hw, bool bmain) in rtl88e_phy_set_rfpath_switch() argument
2106 _rtl88e_phy_set_rfpath_switch(hw, bmain, false); in rtl88e_phy_set_rfpath_switch()
2109 bool rtl88e_phy_set_io_cmd(struct ieee80211_hw *hw, enum io_type iotype) in rtl88e_phy_set_io_cmd() argument
2111 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_io_cmd()
2142 rtl88e_phy_set_io(hw); in rtl88e_phy_set_io_cmd()
2147 static void rtl88e_phy_set_io(struct ieee80211_hw *hw) in rtl88e_phy_set_io() argument
2149 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88e_phy_set_io()
2160 rtl88e_phy_set_txpower_level(hw, rtlphy->current_channel); in rtl88e_phy_set_io()
2161 rtl_set_bbreg(hw, RCCK0_CCA, 0xff0000, 0x83); in rtl88e_phy_set_io()
2166 rtl_set_bbreg(hw, RCCK0_CCA, 0xff0000, 0x40); in rtl88e_phy_set_io()
2178 static void rtl88ee_phy_set_rf_on(struct ieee80211_hw *hw) in rtl88ee_phy_set_rf_on() argument
2180 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_phy_set_rf_on()
2190 static void _rtl88ee_phy_set_rf_sleep(struct ieee80211_hw *hw) in _rtl88ee_phy_set_rf_sleep() argument
2192 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_phy_set_rf_sleep()
2195 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, RFREG_OFFSET_MASK, 0x00); in _rtl88ee_phy_set_rf_sleep()
2200 static bool _rtl88ee_phy_set_rf_power_state(struct ieee80211_hw *hw, in _rtl88ee_phy_set_rf_power_state() argument
2203 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_phy_set_rf_power_state()
2204 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl88ee_phy_set_rf_power_state()
2205 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in _rtl88ee_phy_set_rf_power_state()
2206 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_phy_set_rf_power_state()
2222 rtstatus = rtl_ps_enable_nic(hw); in _rtl88ee_phy_set_rf_power_state()
2234 rtl88ee_phy_set_rf_on(hw); in _rtl88ee_phy_set_rf_power_state()
2237 rtlpriv->cfg->ops->led_control(hw, in _rtl88ee_phy_set_rf_power_state()
2240 rtlpriv->cfg->ops->led_control(hw, in _rtl88ee_phy_set_rf_power_state()
2274 rtl_ps_disable_nic(hw); in _rtl88ee_phy_set_rf_power_state()
2278 rtlpriv->cfg->ops->led_control(hw, in _rtl88ee_phy_set_rf_power_state()
2281 rtlpriv->cfg->ops->led_control(hw, in _rtl88ee_phy_set_rf_power_state()
2318 _rtl88ee_phy_set_rf_sleep(hw); in _rtl88ee_phy_set_rf_power_state()
2332 bool rtl88e_phy_set_rf_power_state(struct ieee80211_hw *hw, in rtl88e_phy_set_rf_power_state() argument
2335 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88e_phy_set_rf_power_state()
2341 bresult = _rtl88ee_phy_set_rf_power_state(hw, rfpwr_state); in rtl88e_phy_set_rf_power_state()