Lines Matching refs:rtlefuse
136 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()
1429 i, rtlefuse->eeprom_chnlarea_txpwr_cck in _rtl8723e_read_txpower_info_from_hwpg()
1436 rtlefuse->eeprom_chnlarea_txpwr_ht40_1s in _rtl8723e_read_txpower_info_from_hwpg()
1443 rtlefuse->eprom_chnl_txpwr_ht40_2sdf in _rtl8723e_read_txpower_info_from_hwpg()
1450 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1451 rtlefuse->eeprom_chnlarea_txpwr_cck in _rtl8723e_read_txpower_info_from_hwpg()
1453 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1454 rtlefuse->eeprom_chnlarea_txpwr_ht40_1s in _rtl8723e_read_txpower_info_from_hwpg()
1457 if ((rtlefuse->eeprom_chnlarea_txpwr_ht40_1s in _rtl8723e_read_txpower_info_from_hwpg()
1459 rtlefuse->eprom_chnl_txpwr_ht40_2sdf in _rtl8723e_read_txpower_info_from_hwpg()
1461 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1462 rtlefuse->eeprom_chnlarea_txpwr_ht40_1s in _rtl8723e_read_txpower_info_from_hwpg()
1464 rtlefuse->eprom_chnl_txpwr_ht40_2sdf in _rtl8723e_read_txpower_info_from_hwpg()
1467 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = 0; in _rtl8723e_read_txpower_info_from_hwpg()
1475 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl8723e_read_txpower_info_from_hwpg()
1476 rtlefuse->txpwrlevel_ht40_1s[rf_path][i], in _rtl8723e_read_txpower_info_from_hwpg()
1477 rtlefuse->txpwrlevel_ht40_2s[rf_path][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1483 rtlefuse->eeprom_pwrlimit_ht40[i] = in _rtl8723e_read_txpower_info_from_hwpg()
1485 rtlefuse->eeprom_pwrlimit_ht20[i] = in _rtl8723e_read_txpower_info_from_hwpg()
1488 rtlefuse->eeprom_pwrlimit_ht40[i] = 0; in _rtl8723e_read_txpower_info_from_hwpg()
1489 rtlefuse->eeprom_pwrlimit_ht20[i] = 0; in _rtl8723e_read_txpower_info_from_hwpg()
1498 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1499 (rtlefuse->eeprom_pwrlimit_ht20[index] & 0xf); in _rtl8723e_read_txpower_info_from_hwpg()
1500 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1501 (rtlefuse->eeprom_pwrlimit_ht40[index] & 0xf); in _rtl8723e_read_txpower_info_from_hwpg()
1503 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1504 ((rtlefuse->eeprom_pwrlimit_ht20[index] & in _rtl8723e_read_txpower_info_from_hwpg()
1506 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1507 ((rtlefuse->eeprom_pwrlimit_ht40[index] & in _rtl8723e_read_txpower_info_from_hwpg()
1513 rtlefuse->pwrgroup_ht20[rf_path][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1516 rtlefuse->pwrgroup_ht40[rf_path][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1528 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl8723e_read_txpower_info_from_hwpg()
1529 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1532 if (rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] & BIT(3)) in _rtl8723e_read_txpower_info_from_hwpg()
1533 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] |= 0xF0; in _rtl8723e_read_txpower_info_from_hwpg()
1535 if (rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] & BIT(3)) in _rtl8723e_read_txpower_info_from_hwpg()
1536 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] |= 0xF0; in _rtl8723e_read_txpower_info_from_hwpg()
1545 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl8723e_read_txpower_info_from_hwpg()
1546 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i] = in _rtl8723e_read_txpower_info_from_hwpg()
1550 rtlefuse->legacy_ht_txpowerdiff = in _rtl8723e_read_txpower_info_from_hwpg()
1551 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][7]; in _rtl8723e_read_txpower_info_from_hwpg()
1556 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1560 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1564 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1568 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i]); in _rtl8723e_read_txpower_info_from_hwpg()
1571 rtlefuse->eeprom_regulatory = (hwinfo[RF_OPTION1] & 0x7); in _rtl8723e_read_txpower_info_from_hwpg()
1573 rtlefuse->eeprom_regulatory = 0; in _rtl8723e_read_txpower_info_from_hwpg()
1575 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl8723e_read_txpower_info_from_hwpg()
1578 rtlefuse->eeprom_tssi[RF90_PATH_A] = hwinfo[EEPROM_TSSI_A]; in _rtl8723e_read_txpower_info_from_hwpg()
1580 rtlefuse->eeprom_tssi[RF90_PATH_A] = EEPROM_DEFAULT_TSSI; in _rtl8723e_read_txpower_info_from_hwpg()
1584 rtlefuse->eeprom_tssi[RF90_PATH_A], in _rtl8723e_read_txpower_info_from_hwpg()
1585 rtlefuse->eeprom_tssi[RF90_PATH_B]); in _rtl8723e_read_txpower_info_from_hwpg()
1591 rtlefuse->eeprom_thermalmeter = (tempval & 0x1f); in _rtl8723e_read_txpower_info_from_hwpg()
1593 if (rtlefuse->eeprom_thermalmeter == 0x1f || autoload_fail) in _rtl8723e_read_txpower_info_from_hwpg()
1594 rtlefuse->apk_thermalmeterignore = true; in _rtl8723e_read_txpower_info_from_hwpg()
1596 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl8723e_read_txpower_info_from_hwpg()
1598 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl8723e_read_txpower_info_from_hwpg()
1605 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723e_read_adapter_info() local
1624 _rtl8723e_read_txpower_info_from_hwpg(hw, rtlefuse->autoload_failflag, in _rtl8723e_read_adapter_info()
1628 rtlefuse->autoload_failflag, hwinfo); in _rtl8723e_read_adapter_info()
1633 switch (rtlefuse->eeprom_oemid) { in _rtl8723e_read_adapter_info()
1635 switch (rtlefuse->eeprom_did) { in _rtl8723e_read_adapter_info()
1637 switch (rtlefuse->eeprom_svid) { in _rtl8723e_read_adapter_info()
1639 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1682 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1691 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1697 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1704 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1713 switch (rtlefuse->eeprom_svid) { in _rtl8723e_read_adapter_info()
1715 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1736 switch (rtlefuse->eeprom_smid) { in _rtl8723e_read_adapter_info()
1791 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_read_eeprom_info() local
1814 rtlefuse->epromtype = EEPROM_93C46; in rtl8723e_read_eeprom_info()
1817 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl8723e_read_eeprom_info()
1821 rtlefuse->autoload_failflag = false; in rtl8723e_read_eeprom_info()
1824 rtlefuse->autoload_failflag = true; in rtl8723e_read_eeprom_info()
2152 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723e_set_key() local
2254 rtlefuse->dev_addr, in rtl8723e_set_key()