Lines Matching refs:rtlefuse

28 	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()
142 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
149 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
156 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
161 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
162 rtlefuse->eeprom_chnlarea_txpwr_cck[rf_path][index]; in _rtl92cu_read_txpower_info_from_hwpg()
163 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
164 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
166 if ((rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
168 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
171 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
172 rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
174 [index] - rtlefuse-> in _rtl92cu_read_txpower_info_from_hwpg()
178 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = 0; in _rtl92cu_read_txpower_info_from_hwpg()
184 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl92cu_read_txpower_info_from_hwpg()
185 rtlefuse->txpwrlevel_ht40_1s[rf_path][i], in _rtl92cu_read_txpower_info_from_hwpg()
186 rtlefuse->txpwrlevel_ht40_2s[rf_path][i]); in _rtl92cu_read_txpower_info_from_hwpg()
191 rtlefuse->eeprom_pwrlimit_ht40[i] = in _rtl92cu_read_txpower_info_from_hwpg()
193 rtlefuse->eeprom_pwrlimit_ht20[i] = in _rtl92cu_read_txpower_info_from_hwpg()
196 rtlefuse->eeprom_pwrlimit_ht40[i] = 0; in _rtl92cu_read_txpower_info_from_hwpg()
197 rtlefuse->eeprom_pwrlimit_ht20[i] = 0; in _rtl92cu_read_txpower_info_from_hwpg()
204 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
205 (rtlefuse->eeprom_pwrlimit_ht20[index] in _rtl92cu_read_txpower_info_from_hwpg()
207 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
208 (rtlefuse->eeprom_pwrlimit_ht40[index] in _rtl92cu_read_txpower_info_from_hwpg()
211 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
212 ((rtlefuse->eeprom_pwrlimit_ht20[index] in _rtl92cu_read_txpower_info_from_hwpg()
214 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl92cu_read_txpower_info_from_hwpg()
215 ((rtlefuse->eeprom_pwrlimit_ht40[index] in _rtl92cu_read_txpower_info_from_hwpg()
221 rtlefuse->pwrgroup_ht20[rf_path][i]); in _rtl92cu_read_txpower_info_from_hwpg()
225 rtlefuse->pwrgroup_ht40[rf_path][i]); in _rtl92cu_read_txpower_info_from_hwpg()
234 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92cu_read_txpower_info_from_hwpg()
235 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] = in _rtl92cu_read_txpower_info_from_hwpg()
237 if (rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] & BIT(3)) in _rtl92cu_read_txpower_info_from_hwpg()
238 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] |= 0xF0; in _rtl92cu_read_txpower_info_from_hwpg()
239 if (rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] & BIT(3)) in _rtl92cu_read_txpower_info_from_hwpg()
240 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] |= 0xF0; in _rtl92cu_read_txpower_info_from_hwpg()
246 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92cu_read_txpower_info_from_hwpg()
247 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i] = in _rtl92cu_read_txpower_info_from_hwpg()
250 rtlefuse->legacy_ht_txpowerdiff = in _rtl92cu_read_txpower_info_from_hwpg()
251 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][7]; in _rtl92cu_read_txpower_info_from_hwpg()
255 i, rtlefuse->txpwr_ht20diff[RF90_PATH_A][i]); in _rtl92cu_read_txpower_info_from_hwpg()
259 i, rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i]); in _rtl92cu_read_txpower_info_from_hwpg()
263 i, rtlefuse->txpwr_ht20diff[RF90_PATH_B][i]); in _rtl92cu_read_txpower_info_from_hwpg()
267 i, rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i]); in _rtl92cu_read_txpower_info_from_hwpg()
269 rtlefuse->eeprom_regulatory = (hwinfo[RF_OPTION1] & 0x7); in _rtl92cu_read_txpower_info_from_hwpg()
271 rtlefuse->eeprom_regulatory = 0; in _rtl92cu_read_txpower_info_from_hwpg()
273 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl92cu_read_txpower_info_from_hwpg()
275 rtlefuse->eeprom_tssi[RF90_PATH_A] = hwinfo[EEPROM_TSSI_A]; in _rtl92cu_read_txpower_info_from_hwpg()
276 rtlefuse->eeprom_tssi[RF90_PATH_B] = hwinfo[EEPROM_TSSI_B]; in _rtl92cu_read_txpower_info_from_hwpg()
278 rtlefuse->eeprom_tssi[RF90_PATH_A] = EEPROM_DEFAULT_TSSI; in _rtl92cu_read_txpower_info_from_hwpg()
279 rtlefuse->eeprom_tssi[RF90_PATH_B] = EEPROM_DEFAULT_TSSI; in _rtl92cu_read_txpower_info_from_hwpg()
283 rtlefuse->eeprom_tssi[RF90_PATH_A], in _rtl92cu_read_txpower_info_from_hwpg()
284 rtlefuse->eeprom_tssi[RF90_PATH_B]); in _rtl92cu_read_txpower_info_from_hwpg()
289 rtlefuse->eeprom_thermalmeter = (tempval & 0x1f); in _rtl92cu_read_txpower_info_from_hwpg()
290 if (rtlefuse->eeprom_thermalmeter < 0x06 || in _rtl92cu_read_txpower_info_from_hwpg()
291 rtlefuse->eeprom_thermalmeter > 0x1c) in _rtl92cu_read_txpower_info_from_hwpg()
292 rtlefuse->eeprom_thermalmeter = 0x12; in _rtl92cu_read_txpower_info_from_hwpg()
293 if (rtlefuse->eeprom_thermalmeter == 0x1f || autoload_fail) in _rtl92cu_read_txpower_info_from_hwpg()
294 rtlefuse->apk_thermalmeterignore = true; in _rtl92cu_read_txpower_info_from_hwpg()
295 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl92cu_read_txpower_info_from_hwpg()
297 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl92cu_read_txpower_info_from_hwpg()
302 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92cu_read_board_type() local
313 rtlefuse->board_type = boardtype; in _rtl92cu_read_board_type()
314 if (IS_HIGHT_PA(rtlefuse->board_type)) in _rtl92cu_read_board_type()
315 rtlefuse->external_pa = 1; in _rtl92cu_read_board_type()
316 pr_info("Board Type %x\n", rtlefuse->board_type); in _rtl92cu_read_board_type()
322 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92cu_read_adapter_info() local
338 rtlefuse->autoload_failflag, hwinfo); in _rtl92cu_read_adapter_info()
341 rtlefuse->txpwr_fromeprom = true; in _rtl92cu_read_adapter_info()
343 switch (rtlefuse->eeprom_oemid) { in _rtl92cu_read_adapter_info()
345 if (rtlefuse->eeprom_did == 0x8176) { in _rtl92cu_read_adapter_info()
346 if ((rtlefuse->eeprom_svid == 0x103C && in _rtl92cu_read_adapter_info()
347 rtlefuse->eeprom_smid == 0x1629)) in _rtl92cu_read_adapter_info()
397 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92cu_read_eeprom_info() local
404 rtlefuse->epromtype = (tmp_u1b & BOOT_FROM_EEPROM) ? in rtl92cu_read_eeprom_info()
408 rtlefuse->autoload_failflag = (tmp_u1b & EEPROM_EN) ? false : true; in rtl92cu_read_eeprom_info()
1554 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92cu_set_hw_reg() local
1793 rtlefuse->efuse_usedbytes = *((u16 *) val); in rtl92cu_set_hw_reg()
1796 rtlefuse->efuse_usedpercentage = *val; in rtl92cu_set_hw_reg()