Lines Matching refs:rtlefuse
132 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()
1466 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1473 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1480 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1487 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1488 rtlefuse->eeprom_chnlarea_txpwr_cck[rf_path][index]; in _rtl92ce_read_txpower_info_from_hwpg()
1489 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1490 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1493 if ((rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1495 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1498 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1499 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1502 rtlefuse-> in _rtl92ce_read_txpower_info_from_hwpg()
1506 rtlefuse->txpwrlevel_ht40_2s[rf_path][i] = 0; in _rtl92ce_read_txpower_info_from_hwpg()
1514 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl92ce_read_txpower_info_from_hwpg()
1515 rtlefuse->txpwrlevel_ht40_1s[rf_path][i], in _rtl92ce_read_txpower_info_from_hwpg()
1516 rtlefuse->txpwrlevel_ht40_2s[rf_path][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1522 rtlefuse->eeprom_pwrlimit_ht40[i] = in _rtl92ce_read_txpower_info_from_hwpg()
1524 rtlefuse->eeprom_pwrlimit_ht20[i] = in _rtl92ce_read_txpower_info_from_hwpg()
1527 rtlefuse->eeprom_pwrlimit_ht40[i] = 0; in _rtl92ce_read_txpower_info_from_hwpg()
1528 rtlefuse->eeprom_pwrlimit_ht20[i] = 0; in _rtl92ce_read_txpower_info_from_hwpg()
1537 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1538 (rtlefuse->eeprom_pwrlimit_ht20[index] in _rtl92ce_read_txpower_info_from_hwpg()
1540 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1541 (rtlefuse->eeprom_pwrlimit_ht40[index] in _rtl92ce_read_txpower_info_from_hwpg()
1544 rtlefuse->pwrgroup_ht20[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1545 ((rtlefuse->eeprom_pwrlimit_ht20[index] in _rtl92ce_read_txpower_info_from_hwpg()
1547 rtlefuse->pwrgroup_ht40[rf_path][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1548 ((rtlefuse->eeprom_pwrlimit_ht40[index] in _rtl92ce_read_txpower_info_from_hwpg()
1555 rtlefuse->pwrgroup_ht20[rf_path][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1559 rtlefuse->pwrgroup_ht40[rf_path][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1571 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92ce_read_txpower_info_from_hwpg()
1572 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1575 if (rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] & BIT(3)) in _rtl92ce_read_txpower_info_from_hwpg()
1576 rtlefuse->txpwr_ht20diff[RF90_PATH_A][i] |= 0xF0; in _rtl92ce_read_txpower_info_from_hwpg()
1578 if (rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] & BIT(3)) in _rtl92ce_read_txpower_info_from_hwpg()
1579 rtlefuse->txpwr_ht20diff[RF90_PATH_B][i] |= 0xF0; in _rtl92ce_read_txpower_info_from_hwpg()
1588 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i] = (tempval & 0xF); in _rtl92ce_read_txpower_info_from_hwpg()
1589 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i] = in _rtl92ce_read_txpower_info_from_hwpg()
1593 rtlefuse->legacy_ht_txpowerdiff = in _rtl92ce_read_txpower_info_from_hwpg()
1594 rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][7]; in _rtl92ce_read_txpower_info_from_hwpg()
1599 i, rtlefuse->txpwr_ht20diff[RF90_PATH_A][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1603 i, rtlefuse->txpwr_legacyhtdiff[RF90_PATH_A][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1607 i, rtlefuse->txpwr_ht20diff[RF90_PATH_B][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1611 i, rtlefuse->txpwr_legacyhtdiff[RF90_PATH_B][i]); in _rtl92ce_read_txpower_info_from_hwpg()
1614 rtlefuse->eeprom_regulatory = (hwinfo[RF_OPTION1] & 0x7); in _rtl92ce_read_txpower_info_from_hwpg()
1616 rtlefuse->eeprom_regulatory = 0; in _rtl92ce_read_txpower_info_from_hwpg()
1618 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl92ce_read_txpower_info_from_hwpg()
1621 rtlefuse->eeprom_tssi[RF90_PATH_A] = hwinfo[EEPROM_TSSI_A]; in _rtl92ce_read_txpower_info_from_hwpg()
1622 rtlefuse->eeprom_tssi[RF90_PATH_B] = hwinfo[EEPROM_TSSI_B]; in _rtl92ce_read_txpower_info_from_hwpg()
1624 rtlefuse->eeprom_tssi[RF90_PATH_A] = EEPROM_DEFAULT_TSSI; in _rtl92ce_read_txpower_info_from_hwpg()
1625 rtlefuse->eeprom_tssi[RF90_PATH_B] = EEPROM_DEFAULT_TSSI; in _rtl92ce_read_txpower_info_from_hwpg()
1628 rtlefuse->eeprom_tssi[RF90_PATH_A], in _rtl92ce_read_txpower_info_from_hwpg()
1629 rtlefuse->eeprom_tssi[RF90_PATH_B]); in _rtl92ce_read_txpower_info_from_hwpg()
1635 rtlefuse->eeprom_thermalmeter = (tempval & 0x1f); in _rtl92ce_read_txpower_info_from_hwpg()
1637 if (rtlefuse->eeprom_thermalmeter == 0x1f || autoload_fail) in _rtl92ce_read_txpower_info_from_hwpg()
1638 rtlefuse->apk_thermalmeterignore = true; in _rtl92ce_read_txpower_info_from_hwpg()
1640 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl92ce_read_txpower_info_from_hwpg()
1642 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl92ce_read_txpower_info_from_hwpg()
1648 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92ce_read_adapter_info() local
1664 rtlefuse->autoload_failflag, in _rtl92ce_read_adapter_info()
1668 rtlefuse->autoload_failflag, in _rtl92ce_read_adapter_info()
1671 switch (rtlefuse->eeprom_oemid) { in _rtl92ce_read_adapter_info()
1673 if (rtlefuse->eeprom_did == 0x8176) { in _rtl92ce_read_adapter_info()
1674 if ((rtlefuse->eeprom_svid == 0x103C && in _rtl92ce_read_adapter_info()
1675 rtlefuse->eeprom_smid == 0x1629)) in _rtl92ce_read_adapter_info()
1724 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_read_eeprom_info() local
1740 rtlefuse->epromtype = EEPROM_93C46; in rtl92ce_read_eeprom_info()
1743 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl92ce_read_eeprom_info()
1747 rtlefuse->autoload_failflag = false; in rtl92ce_read_eeprom_info()
2073 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_set_key() local
2192 rtlefuse->dev_addr, in rtl92ce_set_key()