Home
last modified time | relevance | path

Searched refs:rtlefuse (Results 1 – 25 of 44) sorted by relevance

12

/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Drf.c18 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92s_get_powerbase() local
27 if (rtlefuse->eeprom_version < 2) { in _rtl92s_get_powerbase()
28 pwrbase0 = pwrlevel[0] + (rtlefuse->legacy_ht_txpowerdiff & 0xf); in _rtl92s_get_powerbase()
30 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff in _rtl92s_get_powerbase()
45 if (rtlefuse->eeprom_version >= 2) { in _rtl92s_get_powerbase()
51 ht20_pwrdiff = rtlefuse->txpwr_ht20diff in _rtl92s_get_powerbase()
73 switch (rtlefuse->eeprom_regulatory) { in _rtl92s_get_powerbase()
78 p_final_pwridx[0] += rtlefuse->pwrgroup_ht40 in _rtl92s_get_powerbase()
81 p_final_pwridx[1] += rtlefuse->pwrgroup_ht40 in _rtl92s_get_powerbase()
85 p_final_pwridx[0] += rtlefuse->pwrgroup_ht20 in _rtl92s_get_powerbase()
[all …]
Dhw.c68 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92se_set_hw_reg() local
301 rtlefuse->efuse_usedbytes = *((u16 *) val); in rtl92se_set_hw_reg()
305 rtlefuse->efuse_usedpercentage = *val; in rtl92se_set_hw_reg()
747 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92se_macconfig_after_fwdownload() local
864 if (rtlefuse->epromtype == EEPROM_BOOT_EFUSE) { in _rtl92se_macconfig_after_fwdownload()
925 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92se_hw_init() local
1049 rtl_write_byte(rtlpriv, MACIDR0 + i, rtlefuse->dev_addr[i]); in rtl92se_hw_init()
1623 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8192se_get_ic_inferiority() local
1630 if ((rtlefuse->epromtype == EEPROM_BOOT_EFUSE) && in _rtl8192se_get_ic_inferiority()
1631 !rtlefuse->autoload_failflag) { in _rtl8192se_get_ic_inferiority()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/
Defuse.c197 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in read_efuse() local
330 rtlefuse->efuse_usedbytes = efuse_utilized; in read_efuse()
332 rtlefuse->efuse_usedpercentage = efuse_usage; in read_efuse()
348 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in efuse_shadow_update_chk() local
358 if (rtlefuse->efuse_map[EFUSE_INIT_MAP][base + i] != in efuse_shadow_update_chk()
359 rtlefuse->efuse_map[EFUSE_MODIFY_MAP][base + i] || in efuse_shadow_update_chk()
360 rtlefuse->efuse_map[EFUSE_INIT_MAP][base + i + 1] != in efuse_shadow_update_chk()
361 rtlefuse->efuse_map[EFUSE_MODIFY_MAP][base + i + in efuse_shadow_update_chk()
373 efuse_used = rtlefuse->efuse_usedbytes; in efuse_shadow_update_chk()
414 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in efuse_shadow_update() local
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dhw.c28 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in _rtl92cu_phy_param_tab_init() local
32 if (IS_HIGHT_PA(rtlefuse->board_type)) { in _rtl92cu_phy_param_tab_init()
61 if (IS_HIGHT_PA(rtlefuse->board_type)) { in _rtl92cu_phy_param_tab_init()
103 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92cu_read_txpower_info_from_hwpg() local
110 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
113 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
118 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
121 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
132 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_A][i] = in _rtl92cu_read_txpower_info_from_hwpg()
134 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_B][i] = in _rtl92cu_read_txpower_info_from_hwpg()
[all …]
Drf.c43 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92cu_phy_rf6052_set_cck_txpower() local
56 if (tx_agc[idx1] > 0x20 && rtlefuse->external_pa) in rtl92cu_phy_rf6052_set_cck_txpower()
75 if (rtlefuse->eeprom_regulatory == 0) { in rtl92cu_phy_rf6052_set_cck_txpower()
125 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92c_phy_get_power_base() local
132 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl92c_phy_get_power_base()
143 ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl92c_phy_get_power_base()
164 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92c_get_txpower_writeval_by_regulatory() local
169 switch (rtlefuse->eeprom_regulatory) { in _rtl92c_get_txpower_writeval_by_regulatory()
217 rtlefuse->pwrgroup_ht40[rf] in _rtl92c_get_txpower_writeval_by_regulatory()
223 rtlefuse->pwrgroup_ht20[rf] in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhw.c136 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_set_hw_reg() local
378 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl8723e_set_hw_reg()
381 rtlefuse->efuse_usedpercentage = *((u8 *)val); in rtl8723e_set_hw_reg()
1394 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723e_read_txpower_info_from_hwpg() local
1401 rtlefuse->eeprom_chnlarea_txpwr_cck[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1403 rtlefuse->eeprom_chnlarea_txpwr_ht40_1s[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1406 rtlefuse->eeprom_chnlarea_txpwr_cck[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1408 rtlefuse->eeprom_chnlarea_txpwr_ht40_1s[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1419 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_A][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1421 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_B][i] = in _rtl8723e_read_txpower_info_from_hwpg()
[all …]
Drf.c43 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_phy_rf6052_set_cck_txpower() local
49 if (rtlefuse->eeprom_regulatory != 0) in rtl8723e_phy_rf6052_set_cck_txpower()
73 if (rtlefuse->eeprom_regulatory == 0) { in rtl8723e_phy_rf6052_set_cck_txpower()
134 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_phy_get_power_base() local
141 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl8723e_phy_get_power_base()
155 rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl8723e_phy_get_power_base()
178 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in get_txpower_writeval_by_reg() local
183 switch (rtlefuse->eeprom_regulatory) { in get_txpower_writeval_by_reg()
247 rtlefuse->pwrgroup_ht40[rf][channel - in get_txpower_writeval_by_reg()
253 rtlefuse->pwrgroup_ht20[rf][channel - in get_txpower_writeval_by_reg()
[all …]
Dphy.c185 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723e_phy_bb8192c_config_parafile() local
200 if (rtlefuse->autoload_failflag == false) { in _rtl8723e_phy_bb8192c_config_parafile()
558 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_phy_get_txpower_level() local
566 rtlefuse->legacy_ht_txpowerdiff; in rtl8723e_phy_get_txpower_level()
588 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723e_get_txpower_index() local
592 rtlefuse->txpwrlevel_cck[RF90_PATH_A][index]; in _rtl8723e_get_txpower_index()
594 rtlefuse->txpwrlevel_cck[RF90_PATH_B][index]; in _rtl8723e_get_txpower_index()
597 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_A][index]; in _rtl8723e_get_txpower_index()
599 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_B][index]; in _rtl8723e_get_txpower_index()
602 rtlefuse->txpwrlevel_ht40_2s[RF90_PATH_A][index]; in _rtl8723e_get_txpower_index()
[all …]
Dhw.h8 ((rtlefuse->eeprom_svid == (_val1)) && \
9 (rtlefuse->eeprom_smid == (_val2)))
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dhw.c132 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_set_hw_reg() local
375 rtlefuse->efuse_usedbytes = *((u16 *) val); in rtl92ce_set_hw_reg()
378 rtlefuse->efuse_usedpercentage = *val; in rtl92ce_set_hw_reg()
1425 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92ce_read_txpower_info_from_hwpg() local
1432 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1435 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1440 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1443 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1455 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_A][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1457 rtlefuse->eprom_chnl_txpwr_ht40_2sdf[RF90_PATH_B][i] = in _rtl92ce_read_txpower_info_from_hwpg()
[all …]
Drf.c43 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_phy_rf6052_set_cck_txpower() local
49 if (rtlefuse->eeprom_regulatory != 0) in rtl92ce_phy_rf6052_set_cck_txpower()
72 if (rtlefuse->eeprom_regulatory == 0) { in rtl92ce_phy_rf6052_set_cck_txpower()
130 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92c_phy_get_power_base() local
137 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in rtl92c_phy_get_power_base()
150 ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1]; in rtl92c_phy_get_power_base()
173 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92c_get_txpower_writeval_by_regulatory() local
178 switch (rtlefuse->eeprom_regulatory) { in _rtl92c_get_txpower_writeval_by_regulatory()
237 rtlefuse->pwrgroup_ht40[rf][channel - in _rtl92c_get_txpower_writeval_by_regulatory()
243 rtlefuse->pwrgroup_ht20[rf][channel - in _rtl92c_get_txpower_writeval_by_regulatory()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dhw.c394 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_set_hw_reg() local
619 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl8723be_set_hw_reg()
622 rtlefuse->efuse_usedpercentage = *((u8 *)val); in rtl8723be_set_hw_reg()
1945 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_read_txpower_info_from_hwpg() local
1958 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1960 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1964 rtlefuse->txpwr_ht20diff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1966 rtlefuse->txpwr_ht40diff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1968 rtlefuse->txpwr_legacyhtdiff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1976 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl8723be_read_txpower_info_from_hwpg()
[all …]
Drf.c43 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_phy_rf6052_set_cck_txpower() local
51 if (rtlefuse->eeprom_regulatory != 0) in rtl8723be_phy_rf6052_set_cck_txpower()
74 if (rtlefuse->eeprom_regulatory == 0) { in rtl8723be_phy_rf6052_set_cck_txpower()
185 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_get_txpower_writeval_by_regulatory() local
190 switch (rtlefuse->eeprom_regulatory) { in _rtl8723be_get_txpower_writeval_by_regulatory()
247 rtlefuse->pwrgroup_ht40 in _rtl8723be_get_txpower_writeval_by_regulatory()
253 rtlefuse->pwrgroup_ht20 in _rtl8723be_get_txpower_writeval_by_regulatory()
259 rtlefuse->txpwr_legacyhtdiff[rf][channel-1]; in _rtl8723be_get_txpower_writeval_by_regulatory()
263 rtlefuse->txpwr_ht20diff[rf][channel-1]; in _rtl8723be_get_txpower_writeval_by_regulatory()
267 rtlefuse->pwrgroup_ht40[rf][channel-1]; in _rtl8723be_get_txpower_writeval_by_regulatory()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dhw.c155 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92de_set_hw_reg() local
365 rtlefuse->efuse_usedbytes = *((u16 *) val); in rtl92de_set_hw_reg()
368 rtlefuse->efuse_usedpercentage = *val; in rtl92de_set_hw_reg()
1542 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92de_read_txpower_info() local
1550 rtlefuse->eeprom_regulatory = (hwinfo[EEPROM_RF_OPT1] & 0x7); in _rtl92de_read_txpower_info()
1551 rtlefuse->eeprom_thermalmeter = in _rtl92de_read_txpower_info()
1553 rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_K]; in _rtl92de_read_txpower_info()
1556 rtlefuse->txpwr_fromeprom = true; in _rtl92de_read_txpower_info()
1559 rtlefuse->internal_pa_5g[0] = in _rtl92de_read_txpower_info()
1561 rtlefuse->internal_pa_5g[1] = in _rtl92de_read_txpower_info()
[all …]
Drf.c55 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92d_phy_rf6052_set_cck_txpower() local
61 if (rtlefuse->eeprom_regulatory != 0) in rtl92d_phy_rf6052_set_cck_txpower()
81 if (rtlefuse->eeprom_regulatory == 0) { in rtl92d_phy_rf6052_set_cck_txpower()
128 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92d_phy_get_power_base() local
135 legacy_pwrdiff = rtlefuse->txpwr_legacyhtdiff[i][channel - 1]; in _rtl92d_phy_get_power_base()
147 ht20_pwrdiff = rtlefuse->txpwr_ht20diff[i][channel - 1]; in _rtl92d_phy_get_power_base()
195 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92d_get_txpower_writeval_by_regulatory() local
200 switch (rtlefuse->eeprom_regulatory) { in _rtl92d_get_txpower_writeval_by_regulatory()
246 rtlefuse->pwrgroup_ht40[rf] in _rtl92d_get_txpower_writeval_by_regulatory()
252 rtlefuse->pwrgroup_ht20[rf] in _rtl92d_get_txpower_writeval_by_regulatory()
[all …]
Ddm.c711 u8 rf, struct rtl_efuse *rtlefuse, in rtl92d_bandtype_5G() argument
723 *internal_pa = rtlefuse->internal_pa_5g[1]; in rtl92d_bandtype_5G()
725 *internal_pa = rtlefuse->internal_pa_5g[i]; in rtl92d_bandtype_5G()
740 if (thermalvalue > rtlefuse->eeprom_thermalmeter) in rtl92d_bandtype_5G()
756 if (thermalvalue > rtlefuse->eeprom_thermalmeter) { in rtl92d_bandtype_5G()
775 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92d_dm_txpower_tracking_callback_thermalmeter() local
829 rtlpriv->dm.thermalvalue, rtlefuse->eeprom_thermalmeter); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
831 rtlefuse->eeprom_thermalmeter)); in rtl92d_dm_txpower_tracking_callback_thermalmeter()
880 rtlpriv->dm.thermalvalue = rtlefuse->eeprom_thermalmeter; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
883 rtlpriv->dm.thermalvalue_rxgain = rtlefuse->eeprom_thermalmeter; in rtl92d_dm_txpower_tracking_callback_thermalmeter()
[all …]
Dphy.c692 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92d_phy_bb_config() local
708 if (rtlefuse->autoload_failflag == false) { in _rtl92d_phy_bb_config()
856 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92d_get_txpower_index() local
863 rtlefuse->txpwrlevel_cck[RF90_PATH_A][index]; in _rtl92d_get_txpower_index()
866 rtlefuse->txpwrlevel_cck[RF90_PATH_B][index]; in _rtl92d_get_txpower_index()
875 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_A][index]; in _rtl92d_get_txpower_index()
877 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_B][index]; in _rtl92d_get_txpower_index()
881 rtlefuse->txpwrlevel_ht40_2s[RF90_PATH_A][index]; in _rtl92d_get_txpower_index()
883 rtlefuse->txpwrlevel_ht40_2s[RF90_PATH_B][index]; in _rtl92d_get_txpower_index()
914 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92d_phy_set_txpower_level() local
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dhw.c352 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_hw_reg() local
581 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl88ee_set_hw_reg()
584 rtlefuse->efuse_usedpercentage = *val; in rtl88ee_set_hw_reg()
1040 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_hw_init() local
1123 if ((rtlefuse->antenna_div_type == CGCS_RX_HW_ANTDIV) || in rtl88ee_hw_init()
1124 ((rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) && in rtl88ee_hw_init()
1747 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_txpower_info_from_hwpg() local
1760 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1762 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1764 rtlefuse->txpwr_ht20diff[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
[all …]
Ddm.c470 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88e_dm_dig() local
510 if (rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) { in rtl88e_dm_dig()
854 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in dm_txpower_track_cb_therm() local
894 rtlefuse->eeprom_thermalmeter); in dm_txpower_track_cb_therm()
943 rtlpriv->dm.thermalvalue = rtlefuse->eeprom_thermalmeter; in dm_txpower_track_cb_therm()
969 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in dm_txpower_track_cb_therm()
970 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in dm_txpower_track_cb_therm()
971 (rtlefuse->eeprom_thermalmeter - thermalvalue); in dm_txpower_track_cb_therm()
979 delta = (thermalvalue > rtlefuse->eeprom_thermalmeter) ? in dm_txpower_track_cb_therm()
980 (thermalvalue - rtlefuse->eeprom_thermalmeter) : in dm_txpower_track_cb_therm()
[all …]
Drf.c43 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88e_phy_rf6052_set_cck_txpower() local
51 if (rtlefuse->eeprom_regulatory != 0) in rtl88e_phy_rf6052_set_cck_txpower()
74 if (rtlefuse->eeprom_regulatory == 0) { in rtl88e_phy_rf6052_set_cck_txpower()
184 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_get_txpower_writeval_by_regulatory() local
189 switch (rtlefuse->eeprom_regulatory) { in _rtl88e_get_txpower_writeval_by_regulatory()
246 rtlefuse->pwrgroup_ht40[rf][channel - in _rtl88e_get_txpower_writeval_by_regulatory()
252 rtlefuse->pwrgroup_ht20[rf][channel - in _rtl88e_get_txpower_writeval_by_regulatory()
258 rtlefuse->txpwr_legacyhtdiff[rf][channel-1]; in _rtl88e_get_txpower_writeval_by_regulatory()
261 rtlefuse->txpwr_ht20diff[rf][channel-1]; in _rtl88e_get_txpower_writeval_by_regulatory()
265 rtlefuse->pwrgroup_ht40[rf][channel-1]; in _rtl88e_get_txpower_writeval_by_regulatory()
[all …]
Dphy.c257 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_check_condition() local
258 u32 _board = rtlefuse->board_type; /*need efuse define*/ in _rtl88e_check_condition()
341 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88e_phy_bb8188e_config_parafile() local
350 if (!rtlefuse->autoload_failflag) { in _rtl88e_phy_bb8188e_config_parafile()
925 static void handle_path_a(struct rtl_efuse *rtlefuse, u8 index, in handle_path_a() argument
930 rtlefuse->txpwrlevel_cck[RF90_PATH_A][index]; in handle_path_a()
932 if (rtlefuse->txpwr_ht20diff[RF90_PATH_A][index] > 0x0f) in handle_path_a()
934 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_A][index] - in handle_path_a()
935 (~(rtlefuse->txpwr_ht20diff[RF90_PATH_A][index]) + 1); in handle_path_a()
938 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_A][index] + in handle_path_a()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dhw.c471 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8821ae_set_hw_reg() local
678 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl8821ae_set_hw_reg()
681 rtlefuse->efuse_usedpercentage = *((u8 *)val); in rtl8821ae_set_hw_reg()
2753 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw));
2767 rtlefuse->txpwrlevel_cck[rf_path][i] =
2769 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] =
2772 rtlefuse->txpwrlevel_cck[rf_path][i] =
2774 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] =
2781 rtlefuse->txpwr_5g_bw40base[rf_path][i] =
2790 rtlefuse->txpwr_5g_bw80base[rf_path][i] = (upper + lower) / 2;
[all …]
Drf.c40 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8821ae_phy_rf6052_set_cck_txpower() local
48 if (rtlefuse->eeprom_regulatory != 0) in rtl8821ae_phy_rf6052_set_cck_txpower()
73 if (rtlefuse->eeprom_regulatory == 0) { in rtl8821ae_phy_rf6052_set_cck_txpower()
166 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in get_txpower_writeval_by_regulatory() local
171 switch (rtlefuse->eeprom_regulatory) { in get_txpower_writeval_by_regulatory()
228 rtlefuse->pwrgroup_ht40[rf][channel - in get_txpower_writeval_by_regulatory()
234 rtlefuse->pwrgroup_ht20[rf][channel - in get_txpower_writeval_by_regulatory()
239 pwr_diff = rtlefuse->txpwr_legacyhtdiff[rf][channel-1]; in get_txpower_writeval_by_regulatory()
242 rtlefuse->txpwr_ht20diff[rf][channel-1]; in get_txpower_writeval_by_regulatory()
246 rtlefuse->pwrgroup_ht40[rf][channel-1]; in get_txpower_writeval_by_regulatory()
[all …]
Ddm.c271 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_clear_txpower_tracking_state() local
295 rtldm->thermalvalue = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_clear_txpower_tracking_state()
296 rtldm->thermalvalue_iqk = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_clear_txpower_tracking_state()
297 rtldm->thermalvalue_lck = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_clear_txpower_tracking_state()
321 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() local
326 rtldm->thermalvalue = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
327 rtldm->thermalvalue_iqk = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
328 rtldm->thermalvalue_lck = rtlefuse->eeprom_thermalmeter; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter()
1449 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter() local
1487 thermal_value, rtlefuse->eeprom_thermalmeter); in rtl8812ae_dm_txpower_tracking_callback_thermalmeter()
[all …]
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dphy_common.c180 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92c_phy_bb8192c_config_parafile() local
193 if (rtlefuse->autoload_failflag == false) { in _rtl92c_phy_bb8192c_config_parafile()
495 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92c_phy_get_txpower_level() local
503 rtlefuse->legacy_ht_txpowerdiff; in rtl92c_phy_get_txpower_level()
523 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92c_get_txpower_index() local
527 rtlefuse->txpwrlevel_cck[RF90_PATH_A][index]; in _rtl92c_get_txpower_index()
529 rtlefuse->txpwrlevel_cck[RF90_PATH_B][index]; in _rtl92c_get_txpower_index()
532 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_A][index]; in _rtl92c_get_txpower_index()
534 rtlefuse->txpwrlevel_ht40_1s[RF90_PATH_B][index]; in _rtl92c_get_txpower_index()
537 rtlefuse->txpwrlevel_ht40_2s[RF90_PATH_A][index]; in _rtl92c_get_txpower_index()
[all …]

12