Lines Matching refs:rtlefuse
356 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_hw_reg() local
585 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl88ee_set_hw_reg()
588 rtlefuse->efuse_usedpercentage = *val; in rtl88ee_set_hw_reg()
1044 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_hw_init() local
1127 if ((rtlefuse->antenna_div_type == CGCS_RX_HW_ANTDIV) || in rtl88ee_hw_init()
1128 ((rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV) && in rtl88ee_hw_init()
1751 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_txpower_info_from_hwpg() local
1764 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1766 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1768 rtlefuse->txpwr_ht20diff[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1770 rtlefuse->txpwr_legacyhtdiff[rf_path][i] = in _rtl88ee_read_txpower_info_from_hwpg()
1778 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl88ee_read_txpower_info_from_hwpg()
1779 rtlefuse->txpwrlevel_ht40_1s[rf_path][i]); in _rtl88ee_read_txpower_info_from_hwpg()
1784 rtlefuse->eeprom_thermalmeter = in _rtl88ee_read_txpower_info_from_hwpg()
1787 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl88ee_read_txpower_info_from_hwpg()
1789 if (rtlefuse->eeprom_thermalmeter == 0xff || autoload_fail) { in _rtl88ee_read_txpower_info_from_hwpg()
1790 rtlefuse->apk_thermalmeterignore = true; in _rtl88ee_read_txpower_info_from_hwpg()
1791 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl88ee_read_txpower_info_from_hwpg()
1794 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl88ee_read_txpower_info_from_hwpg()
1796 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl88ee_read_txpower_info_from_hwpg()
1799 rtlefuse->eeprom_regulatory = in _rtl88ee_read_txpower_info_from_hwpg()
1802 rtlefuse->eeprom_regulatory = 0; in _rtl88ee_read_txpower_info_from_hwpg()
1804 rtlefuse->eeprom_regulatory = 0; in _rtl88ee_read_txpower_info_from_hwpg()
1807 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl88ee_read_txpower_info_from_hwpg()
1813 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_adapter_info() local
1828 if (rtlefuse->eeprom_oemid == 0xFF) in _rtl88ee_read_adapter_info()
1829 rtlefuse->eeprom_oemid = 0; in _rtl88ee_read_adapter_info()
1832 "EEPROM Customer ID: 0x%2x\n", rtlefuse->eeprom_oemid); in _rtl88ee_read_adapter_info()
1834 rtlefuse->channel_plan = rtlefuse->eeprom_channelplan; in _rtl88ee_read_adapter_info()
1837 rtlefuse->autoload_failflag, in _rtl88ee_read_adapter_info()
1839 rtlefuse->txpwr_fromeprom = true; in _rtl88ee_read_adapter_info()
1842 rtlefuse->autoload_failflag, in _rtl88ee_read_adapter_info()
1846 rtlefuse->board_type = in _rtl88ee_read_adapter_info()
1848 rtlhal->board_type = rtlefuse->board_type; in _rtl88ee_read_adapter_info()
1850 rtlefuse->wowlan_enable = in _rtl88ee_read_adapter_info()
1853 rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_88E]; in _rtl88ee_read_adapter_info()
1855 rtlefuse->crystalcap = 0x20; in _rtl88ee_read_adapter_info()
1857 rtlefuse->antenna_div_cfg = in _rtl88ee_read_adapter_info()
1860 rtlefuse->antenna_div_cfg = 0; in _rtl88ee_read_adapter_info()
1863 rtlefuse->antenna_div_cfg = 0; in _rtl88ee_read_adapter_info()
1865 rtlefuse->antenna_div_type = hwinfo[EEPROM_RF_ANTENNA_OPT_88E]; in _rtl88ee_read_adapter_info()
1866 if (rtlefuse->antenna_div_type == 0xFF) in _rtl88ee_read_adapter_info()
1867 rtlefuse->antenna_div_type = 0x01; in _rtl88ee_read_adapter_info()
1868 if (rtlefuse->antenna_div_type == CG_TRX_HW_ANTDIV || in _rtl88ee_read_adapter_info()
1869 rtlefuse->antenna_div_type == CGCS_RX_HW_ANTDIV) in _rtl88ee_read_adapter_info()
1870 rtlefuse->antenna_div_cfg = 1; in _rtl88ee_read_adapter_info()
1873 switch (rtlefuse->eeprom_oemid) { in _rtl88ee_read_adapter_info()
1875 if (rtlefuse->eeprom_did == 0x8179) { in _rtl88ee_read_adapter_info()
1876 if (rtlefuse->eeprom_svid == 0x1025) { in _rtl88ee_read_adapter_info()
1878 } else if ((rtlefuse->eeprom_svid == 0x10EC && in _rtl88ee_read_adapter_info()
1879 rtlefuse->eeprom_smid == 0x0179) || in _rtl88ee_read_adapter_info()
1880 (rtlefuse->eeprom_svid == 0x17AA && in _rtl88ee_read_adapter_info()
1881 rtlefuse->eeprom_smid == 0x0179)) { in _rtl88ee_read_adapter_info()
1883 } else if (rtlefuse->eeprom_svid == 0x103c && in _rtl88ee_read_adapter_info()
1884 rtlefuse->eeprom_smid == 0x197d) { in _rtl88ee_read_adapter_info()
1937 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_read_eeprom_info() local
1953 rtlefuse->epromtype = EEPROM_93C46; in rtl88ee_read_eeprom_info()
1956 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl88ee_read_eeprom_info()
1960 rtlefuse->autoload_failflag = false; in rtl88ee_read_eeprom_info()
2281 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_key() local
2383 rtlefuse->dev_addr, in rtl88ee_set_key()