Lines Matching refs:rtlefuse
352 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_hw_reg() local
581 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl88ee_set_hw_reg()
584 rtlefuse->efuse_usedpercentage = *val; in rtl88ee_set_hw_reg()
1040 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_hw_init() local
1123 if ((rtlefuse->antenna_div_type == CGCS_RX_HW_ANTDIV) || in rtl88ee_hw_init()
1124 ((rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) && in rtl88ee_hw_init()
1747 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_txpower_info_from_hwpg() local
1760 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1762 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1764 rtlefuse->txpwr_ht20diff[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1766 rtlefuse->txpwr_legacyhtdiff[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1774 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl88ee_read_txpower_info_from_hwpg()
1775 rtlefuse->txpwrlevel_ht40_1s[rf_path][i]); in _rtl88ee_read_txpower_info_from_hwpg()
1780 rtlefuse->eeprom_thermalmeter = in _rtl88ee_read_txpower_info_from_hwpg()
1783 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl88ee_read_txpower_info_from_hwpg()
1785 if (rtlefuse->eeprom_thermalmeter == 0xff || autoload_fail) { in _rtl88ee_read_txpower_info_from_hwpg()
1786 rtlefuse->apk_thermalmeterignore = true; in _rtl88ee_read_txpower_info_from_hwpg()
1787 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl88ee_read_txpower_info_from_hwpg()
1790 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl88ee_read_txpower_info_from_hwpg()
1792 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl88ee_read_txpower_info_from_hwpg()
1795 rtlefuse->eeprom_regulatory = in _rtl88ee_read_txpower_info_from_hwpg()
1798 rtlefuse->eeprom_regulatory = 0; in _rtl88ee_read_txpower_info_from_hwpg()
1800 rtlefuse->eeprom_regulatory = 0; in _rtl88ee_read_txpower_info_from_hwpg()
1803 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl88ee_read_txpower_info_from_hwpg()
1809 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_adapter_info() local
1824 if (rtlefuse->eeprom_oemid == 0xFF) in _rtl88ee_read_adapter_info()
1825 rtlefuse->eeprom_oemid = 0; in _rtl88ee_read_adapter_info()
1828 "EEPROM Customer ID: 0x%2x\n", rtlefuse->eeprom_oemid); in _rtl88ee_read_adapter_info()
1830 rtlefuse->channel_plan = rtlefuse->eeprom_channelplan; in _rtl88ee_read_adapter_info()
1833 rtlefuse->autoload_failflag, in _rtl88ee_read_adapter_info()
1835 rtlefuse->txpwr_fromeprom = true; in _rtl88ee_read_adapter_info()
1838 rtlefuse->autoload_failflag, in _rtl88ee_read_adapter_info()
1842 rtlefuse->board_type = in _rtl88ee_read_adapter_info()
1844 rtlhal->board_type = rtlefuse->board_type; in _rtl88ee_read_adapter_info()
1846 rtlefuse->wowlan_enable = in _rtl88ee_read_adapter_info()
1849 rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_88E]; in _rtl88ee_read_adapter_info()
1851 rtlefuse->crystalcap = 0x20; in _rtl88ee_read_adapter_info()
1853 rtlefuse->antenna_div_cfg = in _rtl88ee_read_adapter_info()
1856 rtlefuse->antenna_div_cfg = 0; in _rtl88ee_read_adapter_info()
1859 rtlefuse->antenna_div_cfg = 0; in _rtl88ee_read_adapter_info()
1861 rtlefuse->antenna_div_type = hwinfo[EEPROM_RF_ANTENNA_OPT_88E]; in _rtl88ee_read_adapter_info()
1862 if (rtlefuse->antenna_div_type == 0xFF) in _rtl88ee_read_adapter_info()
1863 rtlefuse->antenna_div_type = 0x01; in _rtl88ee_read_adapter_info()
1864 if (rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV || in _rtl88ee_read_adapter_info()
1865 rtlefuse->antenna_div_type == CGCS_RX_HW_ANTDIV) in _rtl88ee_read_adapter_info()
1866 rtlefuse->antenna_div_cfg = 1; in _rtl88ee_read_adapter_info()
1869 switch (rtlefuse->eeprom_oemid) { in _rtl88ee_read_adapter_info()
1871 if (rtlefuse->eeprom_did == 0x8179) { in _rtl88ee_read_adapter_info()
1872 if (rtlefuse->eeprom_svid == 0x1025) { in _rtl88ee_read_adapter_info()
1874 } else if ((rtlefuse->eeprom_svid == 0x10EC && in _rtl88ee_read_adapter_info()
1875 rtlefuse->eeprom_smid == 0x0179) || in _rtl88ee_read_adapter_info()
1876 (rtlefuse->eeprom_svid == 0x17AA && in _rtl88ee_read_adapter_info()
1877 rtlefuse->eeprom_smid == 0x0179)) { in _rtl88ee_read_adapter_info()
1879 } else if (rtlefuse->eeprom_svid == 0x103c && in _rtl88ee_read_adapter_info()
1880 rtlefuse->eeprom_smid == 0x197d) { in _rtl88ee_read_adapter_info()
1933 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_read_eeprom_info() local
1949 rtlefuse->epromtype = EEPROM_93C46; in rtl88ee_read_eeprom_info()
1952 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl88ee_read_eeprom_info()
1956 rtlefuse->autoload_failflag = false; in rtl88ee_read_eeprom_info()
2277 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_key() local
2379 rtlefuse->dev_addr, in rtl88ee_set_key()