Lines Matching refs:rtlefuse
398 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_set_hw_reg() local
623 rtlefuse->efuse_usedbytes = *((u16 *)val); in rtl8723be_set_hw_reg()
626 rtlefuse->efuse_usedpercentage = *((u8 *)val); in rtl8723be_set_hw_reg()
1949 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_read_txpower_info_from_hwpg() local
1962 rtlefuse->txpwrlevel_cck[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1964 rtlefuse->txpwrlevel_ht40_1s[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1968 rtlefuse->txpwr_ht20diff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1970 rtlefuse->txpwr_ht40diff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1972 rtlefuse->txpwr_legacyhtdiff[rf_path][i] = in _rtl8723be_read_txpower_info_from_hwpg()
1980 rtlefuse->txpwrlevel_cck[rf_path][i], in _rtl8723be_read_txpower_info_from_hwpg()
1981 rtlefuse->txpwrlevel_ht40_1s[rf_path][i]); in _rtl8723be_read_txpower_info_from_hwpg()
1986 rtlefuse->eeprom_thermalmeter = in _rtl8723be_read_txpower_info_from_hwpg()
1989 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl8723be_read_txpower_info_from_hwpg()
1991 if (rtlefuse->eeprom_thermalmeter == 0xff || autoload_fail) { in _rtl8723be_read_txpower_info_from_hwpg()
1992 rtlefuse->apk_thermalmeterignore = true; in _rtl8723be_read_txpower_info_from_hwpg()
1993 rtlefuse->eeprom_thermalmeter = EEPROM_DEFAULT_THERMALMETER; in _rtl8723be_read_txpower_info_from_hwpg()
1996 rtlefuse->thermalmeter[0] = rtlefuse->eeprom_thermalmeter; in _rtl8723be_read_txpower_info_from_hwpg()
1998 "thermalmeter = 0x%x\n", rtlefuse->eeprom_thermalmeter); in _rtl8723be_read_txpower_info_from_hwpg()
2001 rtlefuse->eeprom_regulatory = in _rtl8723be_read_txpower_info_from_hwpg()
2004 rtlefuse->eeprom_regulatory = 0; in _rtl8723be_read_txpower_info_from_hwpg()
2006 rtlefuse->eeprom_regulatory = 0; in _rtl8723be_read_txpower_info_from_hwpg()
2009 "eeprom_regulatory = 0x%x\n", rtlefuse->eeprom_regulatory); in _rtl8723be_read_txpower_info_from_hwpg()
2047 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_read_adapter_info() local
2090 rtlefuse->crystalcap = hwinfo[EEPROM_XTAL_8723BE]; in _rtl8723be_read_adapter_info()
2091 if (rtlefuse->crystalcap == 0xFF) in _rtl8723be_read_adapter_info()
2092 rtlefuse->crystalcap = 0x20; in _rtl8723be_read_adapter_info()
2094 _rtl8723be_read_txpower_info_from_hwpg(hw, rtlefuse->autoload_failflag, in _rtl8723be_read_adapter_info()
2098 rtlefuse->autoload_failflag, in _rtl8723be_read_adapter_info()
2102 rtlefuse->board_type |= BIT(2); /* ODM_BOARD_BT */ in _rtl8723be_read_adapter_info()
2104 rtlhal->board_type = rtlefuse->board_type; in _rtl8723be_read_adapter_info()
2106 "board_type = 0x%x\n", rtlefuse->board_type); in _rtl8723be_read_adapter_info()
2111 rtlefuse->channel_plan = rtlefuse->eeprom_channelplan; in _rtl8723be_read_adapter_info()
2116 if (rtlefuse->eeprom_smid == toshiba_smid1[i]) { in _rtl8723be_read_adapter_info()
2123 if (rtlefuse->eeprom_smid == toshiba_smid2[i]) { in _rtl8723be_read_adapter_info()
2130 if (rtlefuse->eeprom_smid == samsung_smid[i]) { in _rtl8723be_read_adapter_info()
2137 if (rtlefuse->eeprom_smid == lenovo_smid[i]) { in _rtl8723be_read_adapter_info()
2142 switch (rtlefuse->eeprom_oemid) { in _rtl8723be_read_adapter_info()
2144 if (rtlefuse->eeprom_did == 0x8176) { in _rtl8723be_read_adapter_info()
2145 if (rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2148 } else if (rtlefuse->eeprom_svid == 0x1025) { in _rtl8723be_read_adapter_info()
2150 } else if (rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2153 } else if (rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2156 } else if ((rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2157 rtlefuse->eeprom_smid == 0x8197) || in _rtl8723be_read_adapter_info()
2158 (rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2159 rtlefuse->eeprom_smid == 0x9196)) { in _rtl8723be_read_adapter_info()
2161 } else if ((rtlefuse->eeprom_svid == 0x1028 && in _rtl8723be_read_adapter_info()
2162 rtlefuse->eeprom_smid == 0x8194) || in _rtl8723be_read_adapter_info()
2163 (rtlefuse->eeprom_svid == 0x1028 && in _rtl8723be_read_adapter_info()
2164 rtlefuse->eeprom_smid == 0x8198) || in _rtl8723be_read_adapter_info()
2165 (rtlefuse->eeprom_svid == 0x1028 && in _rtl8723be_read_adapter_info()
2166 rtlefuse->eeprom_smid == 0x9197) || in _rtl8723be_read_adapter_info()
2167 (rtlefuse->eeprom_svid == 0x1028 && in _rtl8723be_read_adapter_info()
2168 rtlefuse->eeprom_smid == 0x9198)) { in _rtl8723be_read_adapter_info()
2170 } else if ((rtlefuse->eeprom_svid == 0x103C && in _rtl8723be_read_adapter_info()
2171 rtlefuse->eeprom_smid == 0x1629)) { in _rtl8723be_read_adapter_info()
2173 } else if ((rtlefuse->eeprom_svid == 0x1A32 && in _rtl8723be_read_adapter_info()
2174 rtlefuse->eeprom_smid == 0x2315)) { in _rtl8723be_read_adapter_info()
2176 } else if ((rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2177 rtlefuse->eeprom_smid == 0x8203)) { in _rtl8723be_read_adapter_info()
2179 } else if ((rtlefuse->eeprom_svid == 0x1043 && in _rtl8723be_read_adapter_info()
2180 rtlefuse->eeprom_smid == 0x84B5)) { in _rtl8723be_read_adapter_info()
2185 } else if (rtlefuse->eeprom_did == 0x8178) { in _rtl8723be_read_adapter_info()
2186 if (rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2189 else if (rtlefuse->eeprom_svid == 0x1025) in _rtl8723be_read_adapter_info()
2191 else if ((rtlefuse->eeprom_svid == 0x10EC && in _rtl8723be_read_adapter_info()
2192 rtlefuse->eeprom_smid == 0x8186)) in _rtl8723be_read_adapter_info()
2194 else if ((rtlefuse->eeprom_svid == 0x1043 && in _rtl8723be_read_adapter_info()
2195 rtlefuse->eeprom_smid == 0x84B6)) in _rtl8723be_read_adapter_info()
2250 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_read_eeprom_info() local
2266 rtlefuse->epromtype = EEPROM_93C46; in rtl8723be_read_eeprom_info()
2269 rtlefuse->epromtype = EEPROM_BOOT_EFUSE; in rtl8723be_read_eeprom_info()
2273 rtlefuse->autoload_failflag = false; in rtl8723be_read_eeprom_info()
2545 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_set_key() local
2647 rtlefuse->dev_addr, in rtl8723be_set_key()