Lines Matching refs:rtlefuse
18 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()
88 p_final_pwridx[1] += rtlefuse->pwrgroup_ht20 in _rtl92s_get_powerbase()
112 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92s_set_antennadiff() local
135 rtlefuse->antenna_txpwdiff[2] = 0;/* RF-D, don't care */ in _rtl92s_set_antennadiff()
136 rtlefuse->antenna_txpwdiff[1] = 0;/* RF-C, don't care */ in _rtl92s_set_antennadiff()
137 rtlefuse->antenna_txpwdiff[0] = (u8)(ant_pwr_diff); /* RF-B */ in _rtl92s_set_antennadiff()
139 u4reg_val = rtlefuse->antenna_txpwdiff[2] << 8 | in _rtl92s_set_antennadiff()
140 rtlefuse->antenna_txpwdiff[1] << 4 | in _rtl92s_set_antennadiff()
141 rtlefuse->antenna_txpwdiff[0]; in _rtl92s_set_antennadiff()
158 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92s_get_txpower_writeval_byregulatory() local
163 switch (rtlefuse->eeprom_regulatory) { in _rtl92s_get_txpower_writeval_byregulatory()
221 rtlefuse->pwrgroup_ht40 in _rtl92s_get_txpower_writeval_byregulatory()
226 rtlefuse->pwrgroup_ht20 in _rtl92s_get_txpower_writeval_byregulatory()
238 rtlefuse->pwrgroup_ht40 in _rtl92s_get_txpower_writeval_byregulatory()
241 rtlefuse->pwrgroup_ht40 in _rtl92s_get_txpower_writeval_byregulatory()
246 rtlefuse->pwrgroup_ht20 in _rtl92s_get_txpower_writeval_byregulatory()
249 rtlefuse->pwrgroup_ht20 in _rtl92s_get_txpower_writeval_byregulatory()
291 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92s_write_ofdm_powerreg() local
301 rf_pwr_diff = rtlefuse->antenna_txpwdiff[0]; in _rtl92s_write_ofdm_powerreg()
366 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92s_phy_rf6052_set_ccktxpower() local
370 if (((rtlefuse->eeprom_version >= 2) && in rtl92s_phy_rf6052_set_ccktxpower()
371 (rtlefuse->txpwr_safetyflag == 1)) || in rtl92s_phy_rf6052_set_ccktxpower()
372 ((rtlefuse->eeprom_version >= 2) && in rtl92s_phy_rf6052_set_ccktxpower()
373 (rtlefuse->eeprom_regulatory != 0))) in rtl92s_phy_rf6052_set_ccktxpower()