Lines Matching refs:rtlefuse
155 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()
1565 rtlefuse->internal_pa_5g[0], in _rtl92de_read_txpower_info()
1566 rtlefuse->internal_pa_5g[1]); in _rtl92de_read_txpower_info()
1568 rtlefuse->eeprom_c9 = hwinfo[EEPROM_RF_OPT6]; in _rtl92de_read_txpower_info()
1569 rtlefuse->eeprom_cc = hwinfo[EEPROM_RF_OPT7]; in _rtl92de_read_txpower_info()
1571 rtlefuse->eeprom_regulatory = 0; in _rtl92de_read_txpower_info()
1572 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl92de_read_txpower_info()
1573 rtlefuse->crystalcap = EEPROM_DEFAULT_CRYSTALCAP; in _rtl92de_read_txpower_info()
1581 if (rtlefuse->eeprom_thermalmeter < 0x06 || in _rtl92de_read_txpower_info()
1582 rtlefuse->eeprom_thermalmeter > 0x1c) in _rtl92de_read_txpower_info()
1583 rtlefuse->eeprom_thermalmeter = 0x12; in _rtl92de_read_txpower_info()
1584 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl92de_read_txpower_info()
1587 if (rtlefuse->crystalcap == 0xFF) in _rtl92de_read_txpower_info()
1588 rtlefuse->crystalcap = 0; in _rtl92de_read_txpower_info()
1589 if (rtlefuse->eeprom_regulatory > 3) in _rtl92de_read_txpower_info()
1590 rtlefuse->eeprom_regulatory = 0; in _rtl92de_read_txpower_info()
1610 rtlefuse->delta_iqk = tempval[0]; in _rtl92de_read_txpower_info()
1612 rtlefuse->delta_lck = tempval[1] - 1; in _rtl92de_read_txpower_info()
1613 if (rtlefuse->eeprom_c9 == 0xFF) in _rtl92de_read_txpower_info()
1614 rtlefuse->eeprom_c9 = 0x00; in _rtl92de_read_txpower_info()
1616 "EEPROMRegulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl92de_read_txpower_info()
1618 "ThermalMeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl92de_read_txpower_info()
1620 "CrystalCap = 0x%x\n", rtlefuse->crystalcap); in _rtl92de_read_txpower_info()
1623 rtlefuse->delta_iqk, rtlefuse->delta_lck); in _rtl92de_read_txpower_info()
1629 rtlefuse->txpwrlevel_cck[rfpath][ch] = in _rtl92de_read_txpower_info()
1631 rtlefuse->txpwrlevel_ht40_1s[rfpath][ch] = in _rtl92de_read_txpower_info()
1633 rtlefuse->txpwr_ht20diff[rfpath][ch] = in _rtl92de_read_txpower_info()
1635 rtlefuse->txpwr_legacyhtdiff[rfpath][ch] = in _rtl92de_read_txpower_info()
1637 rtlefuse->pwrgroup_ht20[rfpath][ch] = in _rtl92de_read_txpower_info()
1639 rtlefuse->pwrgroup_ht40[rfpath][ch] = in _rtl92de_read_txpower_info()
1643 rtlefuse->txpwrlevel_ht40_2s[rfpath][ch] = in _rtl92de_read_txpower_info()
1711 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92de_read_adapter_info() local
1735 *((u16 *) (&rtlefuse->dev_addr[i])) = usvalue; in _rtl92de_read_adapter_info()
1739 rtlefuse->dev_addr); in _rtl92de_read_adapter_info()
1740 rtl_dbg(rtlpriv, COMP_INIT, DBG_DMESG, "%pM\n", rtlefuse->dev_addr); in _rtl92de_read_adapter_info()
1741 _rtl92de_read_txpower_info(hw, rtlefuse->autoload_failflag, hwinfo); in _rtl92de_read_adapter_info()
1746 rtlefuse->channel_plan = COUNTRY_CODE_TELEC; in _rtl92de_read_adapter_info()
1749 rtlefuse->channel_plan = COUNTRY_CODE_FCC; in _rtl92de_read_adapter_info()
1752 rtlefuse->channel_plan = COUNTRY_CODE_FCC; in _rtl92de_read_adapter_info()
1755 rtlefuse->channel_plan = COUNTRY_CODE_FCC; in _rtl92de_read_adapter_info()
1758 rtlefuse->txpwr_fromeprom = true; in _rtl92de_read_adapter_info()
1766 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92de_read_eeprom_info() local
1772 rtlefuse->autoload_status = tmp_u1b; in rtl92de_read_eeprom_info()
1775 rtlefuse->epromtype = EEPROM_93C46; in rtl92de_read_eeprom_info()
1778 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl92de_read_eeprom_info()
1783 rtlefuse->autoload_failflag = false; in rtl92de_read_eeprom_info()
2095 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92de_set_key() local
2201 rtlefuse->dev_addr, in rtl92de_set_key()