efuse 2280 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t efuse:1; efuse 2284 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t efuse:1; efuse 2299 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t efuse:1; efuse 2305 arch/mips/include/asm/octeon/cvmx-mio-defs.h uint64_t efuse:1; efuse 670 arch/mips/ralink/mt7620.c u32 efuse = __raw_readl(sysc + SYSC_REG_EFUSE_CFG); efuse 672 arch/mips/ralink/mt7620.c if (efuse & EFUSE_MT7688) { efuse 40 drivers/cpufreq/ti-cpufreq.c unsigned long efuse); efuse 58 drivers/cpufreq/ti-cpufreq.c unsigned long efuse) efuse 60 drivers/cpufreq/ti-cpufreq.c if (!efuse) efuse 61 drivers/cpufreq/ti-cpufreq.c efuse = opp_data->soc_data->efuse_fallback; efuse 63 drivers/cpufreq/ti-cpufreq.c return ~efuse; efuse 67 drivers/cpufreq/ti-cpufreq.c unsigned long efuse) efuse 76 drivers/cpufreq/ti-cpufreq.c switch (efuse) { efuse 126 drivers/cpufreq/ti-cpufreq.c u32 efuse; efuse 130 drivers/cpufreq/ti-cpufreq.c &efuse); efuse 138 drivers/cpufreq/ti-cpufreq.c efuse = (efuse & opp_data->soc_data->efuse_mask); efuse 139 drivers/cpufreq/ti-cpufreq.c efuse >>= opp_data->soc_data->efuse_shift; efuse 141 drivers/cpufreq/ti-cpufreq.c *efuse_value = opp_data->soc_data->efuse_xlate(opp_data, efuse); efuse 881 drivers/edac/xgene_edac.c static int xgene_edac_pmd_available(u32 efuse, int pmd) efuse 883 drivers/edac/xgene_edac.c return (efuse & (1 << pmd)) ? 0 : 1; efuse 1298 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c uint16_t end_index, uint32_t mask, uint32_t *efuse) efuse 1313 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c *efuse = result ? 0 : le32_to_cpu(efuse_param.ulEfuseValue) & mask; efuse 312 drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.h uint16_t end_index, uint32_t mask, uint32_t *efuse); efuse 321 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint32_t efuse = 0; efuse 328 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c mask, &efuse)) { efuse 329 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c if (efuse) efuse 1668 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c uint32_t ro, efuse, efuse2, clock_freq, volt_without_cks, efuse 1684 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, efuse 1688 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c efuse &= 0xFF000000; efuse 1689 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c efuse = efuse >> 24; efuse 1693 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c ro = (2300 - 1350) * efuse / 255 + 1350; efuse 1695 drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c ro = (2500 - 1000) * efuse / 255 + 1000; efuse 324 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c uint32_t efuse; efuse 326 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, ixSMU_EFUSE_0 + (49*4)); efuse 327 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c efuse &= 0x00000001; efuse 328 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c if (efuse) efuse 1513 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c uint32_t ro, efuse, volt_without_cks, volt_with_cks, value, max, min; efuse 1527 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, efuse 1529 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c efuse &= 0xFF000000; efuse 1530 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c efuse = efuse >> 24; efuse 1553 drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c ro = efuse * (max - min) / 255 + min; efuse 1575 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c uint32_t ro, efuse, efuse2, clock_freq, volt_without_cks, efuse 1597 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, efuse 1601 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c efuse &= 0xFF000000; efuse 1602 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c efuse = efuse >> 24; efuse 1606 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c ro = (2300 - 1350) * efuse / 255 + 1350; efuse 1608 drivers/gpu/drm/amd/powerplay/smumgr/tonga_smumgr.c ro = (2500 - 1000) * efuse / 255 + 1000; efuse 1492 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c uint32_t ro, efuse, volt_without_cks, volt_with_cks, value, max, min; efuse 1506 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c mask, &efuse); efuse 1511 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c ro = efuse * (max - min) / 255 + min; efuse 1556 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c uint32_t efuse; efuse 1558 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c efuse = cgs_read_ind_register(hwmgr->device, CGS_IND_REG__SMC, efuse 1560 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c efuse &= 0x00000001; efuse 1562 drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c if (efuse) efuse 1967 drivers/net/ethernet/ti/netcp_core.c void __iomem *efuse = NULL; efuse 2022 drivers/net/ethernet/ti/netcp_core.c efuse = devm_ioremap_nocache(dev, res.start, size); efuse 2023 drivers/net/ethernet/ti/netcp_core.c if (!efuse) { efuse 2030 drivers/net/ethernet/ti/netcp_core.c emac_arch_get_mac_addr(efuse_mac_addr, efuse, efuse_mac); efuse 2036 drivers/net/ethernet/ti/netcp_core.c devm_iounmap(dev, efuse); efuse 1011 drivers/net/usb/ax88179_178a.c u8 efuse[64]; efuse 1014 drivers/net/usb/ax88179_178a.c if (ax88179_read_cmd(dev, AX_ACCESS_EFUS, 0, 64, 64, efuse) < 0) efuse 1017 drivers/net/usb/ax88179_178a.c if (*efuse == 0xFF) efuse 1021 drivers/net/usb/ax88179_178a.c csum = csum + efuse[i]; efuse 1029 drivers/net/usb/ax88179_178a.c *ledmode = (efuse[51] << 8) | efuse[52]; efuse 66 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c mt7603_has_cal_free_data(struct mt7603_dev *dev, u8 *efuse) efuse 68 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!efuse[MT_EE_TEMP_SENSOR_CAL]) efuse 71 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (get_unaligned_le16(efuse + MT_EE_TX_POWER_0_START_2G) == 0) efuse 74 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (get_unaligned_le16(efuse + MT_EE_TX_POWER_1_START_2G) == 0) efuse 77 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!efuse[MT_EE_CP_FT_VERSION]) efuse 80 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!efuse[MT_EE_XTAL_FREQ_OFFSET]) efuse 83 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!efuse[MT_EE_XTAL_WF_RFCAL]) efuse 90 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c mt7603_apply_cal_free_data(struct mt7603_dev *dev, u8 *efuse) efuse 107 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c if (!mt7603_has_cal_free_data(dev, efuse)) efuse 116 drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c eeprom[offset] = efuse[offset]; efuse 23 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c mt76x2_has_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) efuse 25 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c u16 *efuse_w = (u16 *)efuse; efuse 49 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c mt76x2_apply_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) efuse 89 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c if (!mt76x2_has_cal_free_data(dev, efuse)) efuse 95 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c eeprom[offset] = efuse[offset]; efuse 98 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c if (!(efuse[MT_EE_TX_POWER_0_START_5G] | efuse 99 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c efuse[MT_EE_TX_POWER_0_START_5G + 1])) efuse 101 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c if (!(efuse[MT_EE_TX_POWER_1_START_5G] | efuse 102 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c efuse[MT_EE_TX_POWER_1_START_5G + 1])) efuse 105 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c val = get_unaligned_le16(efuse + MT_EE_BT_RCAL_RESULT); efuse 109 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c val = get_unaligned_le16(efuse + MT_EE_BT_VCDL_CALIBRATION); efuse 113 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c val = get_unaligned_le16(efuse + MT_EE_BT_PMUCFG); efuse 138 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c void *efuse; efuse 156 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c efuse = dev->mt76.otp.data; efuse 158 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c if (mt76x02_get_efuse_data(dev, 0, efuse, MT7662_EEPROM_SIZE, efuse 163 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c mt76x2_apply_cal_free_data(dev, efuse); efuse 167 drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c memcpy(dev->mt76.eeprom.data, efuse, MT7662_EEPROM_SIZE); efuse 348 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c struct rtl8192cu_efuse *efuse = &priv->efuse_wifi.efuse8192; efuse 351 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c if (efuse->rtl_id != cpu_to_le16(0x8129)) efuse 354 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c ether_addr_copy(priv->mac_addr, efuse->mac_addr); efuse 357 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->cck_tx_power_index_A, efuse 358 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->cck_tx_power_index_A)); efuse 360 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->cck_tx_power_index_B, efuse 361 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->cck_tx_power_index_B)); efuse 364 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht40_1s_tx_power_index_A, efuse 365 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht40_1s_tx_power_index_A)); efuse 367 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht40_1s_tx_power_index_B, efuse 368 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht40_1s_tx_power_index_B)); efuse 370 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht40_2s_tx_power_index_diff, efuse 371 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht40_2s_tx_power_index_diff)); efuse 374 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht20_tx_power_index_diff, efuse 375 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht20_tx_power_index_diff)); efuse 377 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ofdm_tx_power_index_diff, efuse 378 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ofdm_tx_power_index_diff)); efuse 381 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht40_max_power_offset, efuse 382 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht40_max_power_offset)); efuse 384 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->ht20_max_power_offset, efuse 385 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c sizeof(efuse->ht20_max_power_offset)); efuse 388 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->vendor_name); efuse 390 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c efuse->device_name); efuse 394 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c if (efuse->rf_regulatory & 0x20) { efuse 559 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c struct rtl8192eu_efuse *efuse = &priv->efuse_wifi.efuse8192eu; efuse 562 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c if (efuse->rtl_id != cpu_to_le16(0x8129)) efuse 565 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c ether_addr_copy(priv->mac_addr, efuse->mac_addr); efuse 567 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c memcpy(priv->cck_tx_power_index_A, efuse->tx_power_index_A.cck_base, efuse 568 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c sizeof(efuse->tx_power_index_A.cck_base)); efuse 569 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c memcpy(priv->cck_tx_power_index_B, efuse->tx_power_index_B.cck_base, efuse 570 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c sizeof(efuse->tx_power_index_B.cck_base)); efuse 573 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_A.ht40_base, efuse 574 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c sizeof(efuse->tx_power_index_A.ht40_base)); efuse 576 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_B.ht40_base, efuse 577 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c sizeof(efuse->tx_power_index_B.ht40_base)); efuse 580 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_A.ht20_ofdm_1s_diff.b; efuse 582 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_B.ht20_ofdm_1s_diff.b; efuse 589 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_A.pwr_diff[i - 1].ofdm; efuse 591 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_B.pwr_diff[i - 1].ofdm; efuse 594 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_A.pwr_diff[i - 1].ht20; efuse 596 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_B.pwr_diff[i - 1].ht20; efuse 599 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_A.pwr_diff[i - 1].ht40; efuse 601 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c efuse->tx_power_index_B.pwr_diff[i - 1].ht40; efuse 607 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c dev_info(&priv->udev->dev, "Vendor: %.7s\n", efuse->vendor_name); efuse 608 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c dev_info(&priv->udev->dev, "Product: %.11s\n", efuse->device_name); efuse 609 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c if (memchr_inv(efuse->serial, 0xff, 11)) efuse 610 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192e.c dev_info(&priv->udev->dev, "Serial: %.11s\n", efuse->serial); efuse 134 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c struct rtl8723au_efuse *efuse = &priv->efuse_wifi.efuse8723; efuse 136 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c if (efuse->rtl_id != cpu_to_le16(0x8129)) efuse 139 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c ether_addr_copy(priv->mac_addr, efuse->mac_addr); efuse 142 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->cck_tx_power_index_A, efuse 143 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->cck_tx_power_index_A)); efuse 145 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->cck_tx_power_index_B, efuse 146 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->cck_tx_power_index_B)); efuse 149 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ht40_1s_tx_power_index_A, efuse 150 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ht40_1s_tx_power_index_A)); efuse 152 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ht40_1s_tx_power_index_B, efuse 153 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ht40_1s_tx_power_index_B)); efuse 156 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ht20_tx_power_index_diff, efuse 157 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ht20_tx_power_index_diff)); efuse 159 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ofdm_tx_power_index_diff, efuse 160 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ofdm_tx_power_index_diff)); efuse 163 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ht40_max_power_offset, efuse 164 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ht40_max_power_offset)); efuse 166 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->ht20_max_power_offset, efuse 167 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c sizeof(efuse->ht20_max_power_offset)); efuse 177 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->vendor_name); efuse 179 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723a.c efuse->device_name); efuse 398 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c struct rtl8723bu_efuse *efuse = &priv->efuse_wifi.efuse8723bu; efuse 401 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c if (efuse->rtl_id != cpu_to_le16(0x8129)) efuse 404 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c ether_addr_copy(priv->mac_addr, efuse->mac_addr); efuse 406 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c memcpy(priv->cck_tx_power_index_A, efuse->tx_power_index_A.cck_base, efuse 407 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c sizeof(efuse->tx_power_index_A.cck_base)); efuse 408 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c memcpy(priv->cck_tx_power_index_B, efuse->tx_power_index_B.cck_base, efuse 409 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c sizeof(efuse->tx_power_index_B.cck_base)); efuse 412 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.ht40_base, efuse 413 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c sizeof(efuse->tx_power_index_A.ht40_base)); efuse 415 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.ht40_base, efuse 416 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c sizeof(efuse->tx_power_index_B.ht40_base)); efuse 419 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.ht20_ofdm_1s_diff.a; efuse 421 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.ht20_ofdm_1s_diff.a; efuse 424 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.ht20_ofdm_1s_diff.b; efuse 426 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.ht20_ofdm_1s_diff.b; efuse 433 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.pwr_diff[i - 1].ofdm; efuse 435 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.pwr_diff[i - 1].ofdm; efuse 438 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.pwr_diff[i - 1].ht20; efuse 440 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.pwr_diff[i - 1].ht20; efuse 443 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_A.pwr_diff[i - 1].ht40; efuse 445 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c efuse->tx_power_index_B.pwr_diff[i - 1].ht40; efuse 451 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c dev_info(&priv->udev->dev, "Vendor: %.7s\n", efuse->vendor_name); efuse 452 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8723b.c dev_info(&priv->udev->dev, "Product: %.41s\n", efuse->device_name); efuse 2491 drivers/net/wireless/realtek/rtlwifi/base.c memcpy(bssid, rtlpriv->efuse.dev_addr, ETH_ALEN); efuse 34 drivers/net/wireless/realtek/rtlwifi/efuse.c static void efuse_read_all_map(struct ieee80211_hw *hw, u8 *efuse); efuse 643 drivers/net/wireless/realtek/rtlwifi/efuse.c static void efuse_read_all_map(struct ieee80211_hw *hw, u8 *efuse) efuse 648 drivers/net/wireless/realtek/rtlwifi/efuse.c read_efuse(hw, 0, rtlpriv->cfg->maps[EFUSE_HWSET_MAX_SIZE], efuse); efuse 1338 drivers/net/wireless/realtek/rtlwifi/efuse.c rtlpriv->efuse.efuse_ops = &efuse_ops; efuse 394 drivers/net/wireless/realtek/rtlwifi/regd.c channel_plan_to_country_code(rtlpriv->efuse.channel_plan); efuse 398 drivers/net/wireless/realtek/rtlwifi/regd.c rtlpriv->efuse.channel_plan, rtlpriv->regd.country_code); efuse 667 drivers/net/wireless/realtek/rtlwifi/rtl8192de/dm.c u4tmp = (index_mapping[(rtlpriv->efuse.eeprom_thermalmeter - efuse 31 drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c if ((rtlpriv->efuse.eeprom_did == 0x8176) || efuse 32 drivers/net/wireless/realtek/rtlwifi/rtl8192de/led.c (rtlpriv->efuse.eeprom_did == 0x8193)) efuse 774 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c if (rtlpriv->efuse.internal_pa_5g[0]) { efuse 778 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c if (rtlpriv->efuse.internal_pa_5g[1]) { efuse 1278 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c internal_pa = rtlpriv->efuse.internal_pa_5g[1]; efuse 1281 drivers/net/wireless/realtek/rtlwifi/rtl8192de/phy.c rtlpriv->efuse.internal_pa_5g[rfpath]; efuse 814 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { efuse 815 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; efuse 1033 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; efuse 412 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c struct rtl_efuse *efuse = rtl_efuse(rtl_priv(hw)); efuse 578 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c efuse->efuse_usedbytes = *((u16 *)val); efuse 581 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c efuse->efuse_usedpercentage = *((u8 *)val); efuse 1840 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c rtl_priv(hw)->efuse.txpwr_fromeprom = true; efuse 248 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c crystal_cap = rtlpriv->efuse.eeprom_crystalcap & 0x3F; efuse 158 drivers/net/wireless/realtek/rtlwifi/rtl8192se/dm.c (rtlpriv->efuse.thermalmeter[0] << 8) | efuse 237 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; efuse 1130 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { efuse 1131 drivers/net/wireless/realtek/rtlwifi/rtl8723be/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; efuse 104 drivers/net/wireless/realtek/rtlwifi/rtl8723be/phy.c u8 crystalcap = rtlpriv->efuse.crystalcap; efuse 532 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtlpriv->dm.crystal_cap = rtlpriv->efuse.crystalcap; efuse 2797 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c if (rtldm->crystal_cap != rtlpriv->efuse.crystalcap) { efuse 2798 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c rtldm->crystal_cap = rtlpriv->efuse.crystalcap; efuse 2637 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c rtl_priv(hw)->efuse.txpwr_fromeprom = true; efuse 2598 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/phy.c if (rtlpriv->efuse.eeprom_regulatory != 2) { efuse 2763 drivers/net/wireless/realtek/rtlwifi/wifi.h struct rtl_efuse efuse; efuse 2842 drivers/net/wireless/realtek/rtlwifi/wifi.h #define rtl_efuse(rtlpriv) (&((rtlpriv)->efuse)) efuse 638 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 649 drivers/net/wireless/realtek/rtw88/coex.c if (center_chan == 0 || (efuse->share_ant && center_chan <= 14)) { efuse 782 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 786 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 887 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 915 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1135 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1139 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1159 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1163 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) efuse 1198 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1202 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1220 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1224 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1245 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1252 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant && efuse 1256 drivers/net/wireless/realtek/rtw88/coex.c } else if (!efuse->share_ant) { efuse 1271 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1307 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1317 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1374 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1378 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1408 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1415 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1474 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1479 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1512 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1517 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { /* Shared-Ant */ efuse 1548 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1552 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1584 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1589 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1626 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1630 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1662 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1666 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1694 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1698 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1724 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1730 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1748 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1752 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1771 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1778 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1798 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1803 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1832 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1836 drivers/net/wireless/realtek/rtw88/coex.c if (efuse->share_ant) { efuse 1857 drivers/net/wireless/realtek/rtw88/coex.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1861 drivers/net/wireless/realtek/rtw88/coex.c if (!efuse->share_ant && coex_stat->wl_gl_busy && efuse 41 drivers/net/wireless/realtek/rtw88/efuse.c u32 physical_size = rtwdev->efuse.physical_size; efuse 42 drivers/net/wireless/realtek/rtw88/efuse.c u32 protect_size = rtwdev->efuse.protect_size; efuse 43 drivers/net/wireless/realtek/rtw88/efuse.c u32 logical_size = rtwdev->efuse.logical_size; efuse 88 drivers/net/wireless/realtek/rtw88/efuse.c u32 size = rtwdev->efuse.physical_size; efuse 122 drivers/net/wireless/realtek/rtw88/efuse.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 123 drivers/net/wireless/realtek/rtw88/efuse.c u32 phy_size = efuse->physical_size; efuse 124 drivers/net/wireless/realtek/rtw88/efuse.c u32 log_size = efuse->logical_size; efuse 184 drivers/net/wireless/realtek/rtw88/fw.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 197 drivers/net/wireless/realtek/rtw88/fw.c PHYDM_INFO_SET_REF_TYPE(h2c_pkt, efuse->rfe_option); efuse 535 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 570 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.nss == 1) efuse 709 drivers/net/wireless/realtek/rtw88/main.c wifi_only = !rtwdev->efuse.btcoex; efuse 767 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 775 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_40)) efuse 782 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.nss > 1) { efuse 798 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 802 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.ptcl != EFUSE_HW_CAP_IGNORE && efuse 803 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.ptcl != EFUSE_HW_CAP_PTCL_VHT) efuse 822 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.nss > 1) { efuse 909 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 942 drivers/net/wireless/realtek/rtw88/main.c efuse->physical_size = chip->phy_efuse_size; efuse 943 drivers/net/wireless/realtek/rtw88/main.c efuse->logical_size = chip->log_efuse_size; efuse 944 drivers/net/wireless/realtek/rtw88/main.c efuse->protect_size = chip->ptct_efuse_size; efuse 995 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1013 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.bw = hw_bw_cap_to_bitamp(bw); efuse 1014 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.hci = GET_EFUSE_HW_CAP_HCI(hw_feature); efuse 1015 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.nss = GET_EFUSE_HW_CAP_NSS(hw_feature); efuse 1016 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.ptcl = GET_EFUSE_HW_CAP_PTCL(hw_feature); efuse 1017 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.ant_num = GET_EFUSE_HW_CAP_ANT_NUM(hw_feature); efuse 1019 drivers/net/wireless/realtek/rtw88/main.c rtw_hw_config_rf_ant_num(rtwdev, efuse->hw_cap.ant_num); efuse 1021 drivers/net/wireless/realtek/rtw88/main.c if (efuse->hw_cap.nss == EFUSE_HW_CAP_IGNORE || efuse 1022 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.nss > rtwdev->hal.rf_path_num) efuse 1023 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.nss = rtwdev->hal.rf_path_num; efuse 1027 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.hci, efuse->hw_cap.bw, efuse->hw_cap.ptcl, efuse 1028 drivers/net/wireless/realtek/rtw88/main.c efuse->hw_cap.ant_num, efuse->hw_cap.nss); efuse 1041 drivers/net/wireless/realtek/rtw88/main.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1063 drivers/net/wireless/realtek/rtw88/main.c if (efuse->crystal_cap == 0xff) efuse 1064 drivers/net/wireless/realtek/rtw88/main.c efuse->crystal_cap = 0; efuse 1065 drivers/net/wireless/realtek/rtw88/main.c if (efuse->pa_type_2g == 0xff) efuse 1066 drivers/net/wireless/realtek/rtw88/main.c efuse->pa_type_2g = 0; efuse 1067 drivers/net/wireless/realtek/rtw88/main.c if (efuse->pa_type_5g == 0xff) efuse 1068 drivers/net/wireless/realtek/rtw88/main.c efuse->pa_type_5g = 0; efuse 1069 drivers/net/wireless/realtek/rtw88/main.c if (efuse->lna_type_2g == 0xff) efuse 1070 drivers/net/wireless/realtek/rtw88/main.c efuse->lna_type_2g = 0; efuse 1071 drivers/net/wireless/realtek/rtw88/main.c if (efuse->lna_type_5g == 0xff) efuse 1072 drivers/net/wireless/realtek/rtw88/main.c efuse->lna_type_5g = 0; efuse 1073 drivers/net/wireless/realtek/rtw88/main.c if (efuse->channel_plan == 0xff) efuse 1074 drivers/net/wireless/realtek/rtw88/main.c efuse->channel_plan = 0x7f; efuse 1075 drivers/net/wireless/realtek/rtw88/main.c if (efuse->rf_board_option == 0xff) efuse 1076 drivers/net/wireless/realtek/rtw88/main.c efuse->rf_board_option = 0; efuse 1077 drivers/net/wireless/realtek/rtw88/main.c if (efuse->bt_setting & BIT(0)) efuse 1078 drivers/net/wireless/realtek/rtw88/main.c efuse->share_ant = true; efuse 1079 drivers/net/wireless/realtek/rtw88/main.c if (efuse->regd == 0xff) efuse 1080 drivers/net/wireless/realtek/rtw88/main.c efuse->regd = 0; efuse 1082 drivers/net/wireless/realtek/rtw88/main.c efuse->btcoex = (efuse->rf_board_option & 0xe0) == 0x20; efuse 1083 drivers/net/wireless/realtek/rtw88/main.c efuse->ext_pa_2g = efuse->pa_type_2g & BIT(4) ? 1 : 0; efuse 1084 drivers/net/wireless/realtek/rtw88/main.c efuse->ext_lna_2g = efuse->lna_type_2g & BIT(3) ? 1 : 0; efuse 1085 drivers/net/wireless/realtek/rtw88/main.c efuse->ext_pa_5g = efuse->pa_type_5g & BIT(0) ? 1 : 0; efuse 1086 drivers/net/wireless/realtek/rtw88/main.c efuse->ext_lna_2g = efuse->lna_type_5g & BIT(3) ? 1 : 0; efuse 1256 drivers/net/wireless/realtek/rtw88/main.c SET_IEEE80211_PERM_ADDR(hw, rtwdev->efuse.addr); efuse 1325 drivers/net/wireless/realtek/rtw88/main.h struct rtw_efuse efuse; efuse 775 drivers/net/wireless/realtek/rtw88/phy.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 781 drivers/net/wireless/realtek/rtw88/phy.c cond.rfe = efuse->rfe_option; efuse 1746 drivers/net/wireless/realtek/rtw88/phy.c pwr_idx = &rtwdev->efuse.txpwr_idx_table[path]; efuse 89 drivers/net/wireless/realtek/rtw88/phy.h struct rtw_efuse *efuse = &rtwdev->efuse; efuse 95 drivers/net/wireless/realtek/rtw88/phy.h if (efuse->rfe_option < chip->rfe_defs_size) efuse 96 drivers/net/wireless/realtek/rtw88/phy.h rfe_def = &chip->rfe_defs[efuse->rfe_option]; efuse 98 drivers/net/wireless/realtek/rtw88/phy.h rtw_dbg(rtwdev, RTW_DBG_PHY, "use rfe_def[%d]\n", efuse->rfe_option); efuse 108 drivers/net/wireless/realtek/rtw88/phy.h rtwdev->efuse.rfe_option); efuse 298 drivers/net/wireless/realtek/rtw88/regd.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 301 drivers/net/wireless/realtek/rtw88/regd.c if (efuse->hw_cap.bw & BIT(RTW_CHANNEL_WIDTH_80)) efuse 379 drivers/net/wireless/realtek/rtw88/regd.c rtwdev->regd = rtw_regd_find_reg_by_name(rtwdev->efuse.country_code); efuse 20 drivers/net/wireless/realtek/rtw88/rtw8822b.c static void rtw8822be_efuse_parsing(struct rtw_efuse *efuse, efuse 23 drivers/net/wireless/realtek/rtw88/rtw8822b.c ether_addr_copy(efuse->addr, map->e.mac_addr); efuse 28 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 34 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->rfe_option = map->rfe_option; efuse 35 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->rf_board_option = map->rf_board_option; efuse 36 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->crystal_cap = map->xtal_k; efuse 37 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->pa_type_2g = map->pa_type; efuse 38 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->pa_type_5g = map->pa_type; efuse 39 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->lna_type_2g = map->lna_type_2g[0]; efuse 40 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->lna_type_5g = map->lna_type_5g[0]; efuse 41 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->channel_plan = map->channel_plan; efuse 42 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->country_code[0] = map->country_code[0]; efuse 43 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->country_code[1] = map->country_code[1]; efuse 44 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->bt_setting = map->rf_bt_setting; efuse 45 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->regd = map->rf_board_option & 0x7; efuse 48 drivers/net/wireless/realtek/rtw88/rtw8822b.c efuse->txpwr_idx_table[i] = map->txpwr_idx_table[i]; efuse 52 drivers/net/wireless/realtek/rtw88/rtw8822b.c rtw8822be_efuse_parsing(efuse, map); efuse 96 drivers/net/wireless/realtek/rtw88/rtw8822b.c crystal_cap = rtwdev->efuse.crystal_cap & 0x3F; efuse 347 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 397 drivers/net/wireless/realtek/rtw88/rtw8822b.c (efuse->rfe_option == 5 && col == CCUT_IDX_2R_5G)) efuse 538 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 539 drivers/net/wireless/realtek/rtw88/rtw8822b.c u8 rfe_option = efuse->rfe_option; efuse 644 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 647 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (WARN(efuse->rfe_option >= ARRAY_SIZE(rtw8822b_rfe_info), efuse 648 drivers/net/wireless/realtek/rtw88/rtw8822b.c "rfe_option %d is out of boundary\n", efuse->rfe_option)) efuse 651 drivers/net/wireless/realtek/rtw88/rtw8822b.c rfe_info = &rtw8822b_rfe_info[efuse->rfe_option]; efuse 665 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 671 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (WARN(efuse->rfe_option >= ARRAY_SIZE(rtw8822b_rfe_info), efuse 672 drivers/net/wireless/realtek/rtw88/rtw8822b.c "rfe_option %d is out of boundary\n", efuse->rfe_option)) efuse 675 drivers/net/wireless/realtek/rtw88/rtw8822b.c rfe_info = &rtw8822b_rfe_info[efuse->rfe_option]; efuse 1135 drivers/net/wireless/realtek/rtw88/rtw8822b.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1138 drivers/net/wireless/realtek/rtw88/rtw8822b.c coex_rfe->rfe_module_type = rtwdev->efuse.rfe_option; efuse 1158 drivers/net/wireless/realtek/rtw88/rtw8822b.c if (efuse->share_ant && efuse 21 drivers/net/wireless/realtek/rtw88/rtw8822c.c static void rtw8822ce_efuse_parsing(struct rtw_efuse *efuse, efuse 24 drivers/net/wireless/realtek/rtw88/rtw8822c.c ether_addr_copy(efuse->addr, map->e.mac_addr); efuse 29 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 35 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->rfe_option = map->rfe_option; efuse 36 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->rf_board_option = map->rf_board_option; efuse 37 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->crystal_cap = map->xtal_k; efuse 38 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->channel_plan = map->channel_plan; efuse 39 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->country_code[0] = map->country_code[0]; efuse 40 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->country_code[1] = map->country_code[1]; efuse 41 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->bt_setting = map->rf_bt_setting; efuse 42 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->regd = map->rf_board_option & 0x7; efuse 45 drivers/net/wireless/realtek/rtw88/rtw8822c.c efuse->txpwr_idx_table[i] = map->txpwr_idx_table[i]; efuse 49 drivers/net/wireless/realtek/rtw88/rtw8822c.c rtw8822ce_efuse_parsing(efuse, map); efuse 1029 drivers/net/wireless/realtek/rtw88/rtw8822c.c crystal_cap = rtwdev->efuse.crystal_cap & 0x7f; efuse 1935 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 1949 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (efuse->share_ant) efuse 1974 drivers/net/wireless/realtek/rtw88/rtw8822c.c coex->under_5g || !efuse->share_ant) { efuse 2002 drivers/net/wireless/realtek/rtw88/rtw8822c.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 2004 drivers/net/wireless/realtek/rtw88/rtw8822c.c coex_rfe->rfe_module_type = rtwdev->efuse.rfe_option; efuse 2010 drivers/net/wireless/realtek/rtw88/rtw8822c.c if (efuse->share_ant) efuse 96 drivers/net/wireless/realtek/rtw88/tx.c struct rtw_efuse *efuse = &rtwdev->efuse; efuse 101 drivers/net/wireless/realtek/rtw88/tx.c if (efuse->hw_cap.nss == 1) { efuse 114 drivers/net/wireless/realtek/rtw88/tx.c } else if (efuse->hw_cap.nss >= 2) { efuse 51 drivers/nvmem/meson-mx-efuse.c static void meson_mx_efuse_mask_bits(struct meson_mx_efuse *efuse, u32 reg, efuse 56 drivers/nvmem/meson-mx-efuse.c data = readl(efuse->base + reg); efuse 60 drivers/nvmem/meson-mx-efuse.c writel(data, efuse->base + reg); efuse 63 drivers/nvmem/meson-mx-efuse.c static int meson_mx_efuse_hw_enable(struct meson_mx_efuse *efuse) efuse 67 drivers/nvmem/meson-mx-efuse.c err = clk_prepare_enable(efuse->core_clk); efuse 72 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 75 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL4, efuse 81 drivers/nvmem/meson-mx-efuse.c static void meson_mx_efuse_hw_disable(struct meson_mx_efuse *efuse) efuse 83 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 87 drivers/nvmem/meson-mx-efuse.c clk_disable_unprepare(efuse->core_clk); efuse 90 drivers/nvmem/meson-mx-efuse.c static int meson_mx_efuse_read_addr(struct meson_mx_efuse *efuse, efuse 98 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 102 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 105 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 109 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 112 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 119 drivers/nvmem/meson-mx-efuse.c readl(efuse->base + MESON_MX_EFUSE_CNTL1); efuse 121 drivers/nvmem/meson-mx-efuse.c err = readl_poll_timeout_atomic(efuse->base + MESON_MX_EFUSE_CNTL1, efuse 126 drivers/nvmem/meson-mx-efuse.c dev_err(efuse->config.dev, efuse 131 drivers/nvmem/meson-mx-efuse.c *value = readl(efuse->base + MESON_MX_EFUSE_CNTL2); efuse 139 drivers/nvmem/meson-mx-efuse.c struct meson_mx_efuse *efuse = context; efuse 143 drivers/nvmem/meson-mx-efuse.c err = meson_mx_efuse_hw_enable(efuse); efuse 147 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 151 drivers/nvmem/meson-mx-efuse.c for (i = 0; i < bytes; i += efuse->config.word_size) { efuse 152 drivers/nvmem/meson-mx-efuse.c addr = (offset + i) / efuse->config.word_size; efuse 154 drivers/nvmem/meson-mx-efuse.c err = meson_mx_efuse_read_addr(efuse, addr, &tmp); efuse 159 drivers/nvmem/meson-mx-efuse.c min_t(size_t, bytes - i, efuse->config.word_size)); efuse 162 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_mask_bits(efuse, MESON_MX_EFUSE_CNTL1, efuse 165 drivers/nvmem/meson-mx-efuse.c meson_mx_efuse_hw_disable(efuse); efuse 196 drivers/nvmem/meson-mx-efuse.c struct meson_mx_efuse *efuse; efuse 203 drivers/nvmem/meson-mx-efuse.c efuse = devm_kzalloc(&pdev->dev, sizeof(*efuse), GFP_KERNEL); efuse 204 drivers/nvmem/meson-mx-efuse.c if (!efuse) efuse 208 drivers/nvmem/meson-mx-efuse.c efuse->base = devm_ioremap_resource(&pdev->dev, res); efuse 209 drivers/nvmem/meson-mx-efuse.c if (IS_ERR(efuse->base)) efuse 210 drivers/nvmem/meson-mx-efuse.c return PTR_ERR(efuse->base); efuse 212 drivers/nvmem/meson-mx-efuse.c efuse->config.name = devm_kstrdup(&pdev->dev, drvdata->name, efuse 214 drivers/nvmem/meson-mx-efuse.c efuse->config.owner = THIS_MODULE; efuse 215 drivers/nvmem/meson-mx-efuse.c efuse->config.dev = &pdev->dev; efuse 216 drivers/nvmem/meson-mx-efuse.c efuse->config.priv = efuse; efuse 217 drivers/nvmem/meson-mx-efuse.c efuse->config.stride = drvdata->word_size; efuse 218 drivers/nvmem/meson-mx-efuse.c efuse->config.word_size = drvdata->word_size; efuse 219 drivers/nvmem/meson-mx-efuse.c efuse->config.size = SZ_512; efuse 220 drivers/nvmem/meson-mx-efuse.c efuse->config.read_only = true; efuse 221 drivers/nvmem/meson-mx-efuse.c efuse->config.reg_read = meson_mx_efuse_read; efuse 223 drivers/nvmem/meson-mx-efuse.c efuse->core_clk = devm_clk_get(&pdev->dev, "core"); efuse 224 drivers/nvmem/meson-mx-efuse.c if (IS_ERR(efuse->core_clk)) { efuse 226 drivers/nvmem/meson-mx-efuse.c return PTR_ERR(efuse->core_clk); efuse 229 drivers/nvmem/meson-mx-efuse.c efuse->nvmem = devm_nvmem_register(&pdev->dev, &efuse->config); efuse 231 drivers/nvmem/meson-mx-efuse.c return PTR_ERR_OR_ZERO(efuse->nvmem); efuse 58 drivers/nvmem/rockchip-efuse.c struct rockchip_efuse_chip *efuse = context; efuse 62 drivers/nvmem/rockchip-efuse.c ret = clk_prepare_enable(efuse->clk); efuse 64 drivers/nvmem/rockchip-efuse.c dev_err(efuse->dev, "failed to prepare/enable efuse clk\n"); efuse 68 drivers/nvmem/rockchip-efuse.c writel(RK3288_LOAD | RK3288_PGENB, efuse->base + REG_EFUSE_CTRL); efuse 71 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) & efuse 73 drivers/nvmem/rockchip-efuse.c efuse->base + REG_EFUSE_CTRL); efuse 74 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) | efuse 76 drivers/nvmem/rockchip-efuse.c efuse->base + REG_EFUSE_CTRL); efuse 78 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) | efuse 79 drivers/nvmem/rockchip-efuse.c RK3288_STROBE, efuse->base + REG_EFUSE_CTRL); efuse 81 drivers/nvmem/rockchip-efuse.c *buf++ = readb(efuse->base + REG_EFUSE_DOUT); efuse 82 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) & efuse 83 drivers/nvmem/rockchip-efuse.c (~RK3288_STROBE), efuse->base + REG_EFUSE_CTRL); efuse 88 drivers/nvmem/rockchip-efuse.c writel(RK3288_PGENB | RK3288_CSB, efuse->base + REG_EFUSE_CTRL); efuse 90 drivers/nvmem/rockchip-efuse.c clk_disable_unprepare(efuse->clk); efuse 98 drivers/nvmem/rockchip-efuse.c struct rockchip_efuse_chip *efuse = context; efuse 104 drivers/nvmem/rockchip-efuse.c ret = clk_prepare_enable(efuse->clk); efuse 106 drivers/nvmem/rockchip-efuse.c dev_err(efuse->dev, "failed to prepare/enable efuse clk\n"); efuse 127 drivers/nvmem/rockchip-efuse.c efuse->base + RK3328_AUTO_CTRL); efuse 129 drivers/nvmem/rockchip-efuse.c status = readl(efuse->base + RK3328_INT_STATUS); efuse 134 drivers/nvmem/rockchip-efuse.c out_value = readl(efuse->base + RK3328_DOUT); efuse 135 drivers/nvmem/rockchip-efuse.c writel(RK3328_INT_FINISH, efuse->base + RK3328_INT_STATUS); efuse 145 drivers/nvmem/rockchip-efuse.c clk_disable_unprepare(efuse->clk); efuse 153 drivers/nvmem/rockchip-efuse.c struct rockchip_efuse_chip *efuse = context; efuse 159 drivers/nvmem/rockchip-efuse.c ret = clk_prepare_enable(efuse->clk); efuse 161 drivers/nvmem/rockchip-efuse.c dev_err(efuse->dev, "failed to prepare/enable efuse clk\n"); efuse 173 drivers/nvmem/rockchip-efuse.c clk_disable_unprepare(efuse->clk); efuse 178 drivers/nvmem/rockchip-efuse.c efuse->base + REG_EFUSE_CTRL); efuse 181 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) | RK3399_STROBE | efuse 183 drivers/nvmem/rockchip-efuse.c efuse->base + REG_EFUSE_CTRL); efuse 185 drivers/nvmem/rockchip-efuse.c out_value = readl(efuse->base + REG_EFUSE_DOUT); efuse 186 drivers/nvmem/rockchip-efuse.c writel(readl(efuse->base + REG_EFUSE_CTRL) & (~RK3399_STROBE), efuse 187 drivers/nvmem/rockchip-efuse.c efuse->base + REG_EFUSE_CTRL); efuse 195 drivers/nvmem/rockchip-efuse.c writel(RK3399_PD | RK3399_CSB, efuse->base + REG_EFUSE_CTRL); efuse 201 drivers/nvmem/rockchip-efuse.c clk_disable_unprepare(efuse->clk); efuse 255 drivers/nvmem/rockchip-efuse.c struct rockchip_efuse_chip *efuse; efuse 265 drivers/nvmem/rockchip-efuse.c efuse = devm_kzalloc(dev, sizeof(struct rockchip_efuse_chip), efuse 267 drivers/nvmem/rockchip-efuse.c if (!efuse) efuse 271 drivers/nvmem/rockchip-efuse.c efuse->base = devm_ioremap_resource(dev, res); efuse 272 drivers/nvmem/rockchip-efuse.c if (IS_ERR(efuse->base)) efuse 273 drivers/nvmem/rockchip-efuse.c return PTR_ERR(efuse->base); efuse 275 drivers/nvmem/rockchip-efuse.c efuse->clk = devm_clk_get(dev, "pclk_efuse"); efuse 276 drivers/nvmem/rockchip-efuse.c if (IS_ERR(efuse->clk)) efuse 277 drivers/nvmem/rockchip-efuse.c return PTR_ERR(efuse->clk); efuse 279 drivers/nvmem/rockchip-efuse.c efuse->dev = dev; efuse 284 drivers/nvmem/rockchip-efuse.c econfig.priv = efuse; efuse 285 drivers/nvmem/rockchip-efuse.c econfig.dev = efuse->dev; efuse 65 drivers/nvmem/sc27xx-efuse.c static int sc27xx_efuse_lock(struct sc27xx_efuse *efuse) efuse 69 drivers/nvmem/sc27xx-efuse.c mutex_lock(&efuse->mutex); efuse 71 drivers/nvmem/sc27xx-efuse.c ret = hwspin_lock_timeout_raw(efuse->hwlock, efuse 74 drivers/nvmem/sc27xx-efuse.c dev_err(efuse->dev, "timeout to get the hwspinlock\n"); efuse 75 drivers/nvmem/sc27xx-efuse.c mutex_unlock(&efuse->mutex); efuse 82 drivers/nvmem/sc27xx-efuse.c static void sc27xx_efuse_unlock(struct sc27xx_efuse *efuse) efuse 84 drivers/nvmem/sc27xx-efuse.c hwspin_unlock_raw(efuse->hwlock); efuse 85 drivers/nvmem/sc27xx-efuse.c mutex_unlock(&efuse->mutex); efuse 88 drivers/nvmem/sc27xx-efuse.c static int sc27xx_efuse_poll_status(struct sc27xx_efuse *efuse, u32 bits) efuse 93 drivers/nvmem/sc27xx-efuse.c ret = regmap_read_poll_timeout(efuse->regmap, efuse 94 drivers/nvmem/sc27xx-efuse.c efuse->base + SC27XX_EFUSE_STATUS, efuse 99 drivers/nvmem/sc27xx-efuse.c dev_err(efuse->dev, "timeout to update the efuse status\n"); efuse 108 drivers/nvmem/sc27xx-efuse.c struct sc27xx_efuse *efuse = context; efuse 117 drivers/nvmem/sc27xx-efuse.c ret = sc27xx_efuse_lock(efuse); efuse 122 drivers/nvmem/sc27xx-efuse.c ret = regmap_update_bits(efuse->regmap, SC27XX_MODULE_EN, efuse 131 drivers/nvmem/sc27xx-efuse.c ret = sc27xx_efuse_poll_status(efuse, SC27XX_EFUSE_STANDBY); efuse 136 drivers/nvmem/sc27xx-efuse.c ret = regmap_write(efuse->regmap, efuse 137 drivers/nvmem/sc27xx-efuse.c efuse->base + SC27XX_EFUSE_BLOCK_INDEX, efuse 143 drivers/nvmem/sc27xx-efuse.c ret = regmap_update_bits(efuse->regmap, efuse 144 drivers/nvmem/sc27xx-efuse.c efuse->base + SC27XX_EFUSE_MODE_CTRL, efuse 154 drivers/nvmem/sc27xx-efuse.c ret = sc27xx_efuse_poll_status(efuse, SC27XX_EFUSE_RD_DONE); efuse 159 drivers/nvmem/sc27xx-efuse.c ret = regmap_read(efuse->regmap, efuse->base + SC27XX_EFUSE_DATA_RD, efuse 165 drivers/nvmem/sc27xx-efuse.c ret = regmap_update_bits(efuse->regmap, efuse 166 drivers/nvmem/sc27xx-efuse.c efuse->base + SC27XX_EFUSE_MODE_CTRL, efuse 172 drivers/nvmem/sc27xx-efuse.c regmap_update_bits(efuse->regmap, SC27XX_MODULE_EN, SC27XX_EFUSE_EN, 0); efuse 174 drivers/nvmem/sc27xx-efuse.c sc27xx_efuse_unlock(efuse); efuse 189 drivers/nvmem/sc27xx-efuse.c struct sc27xx_efuse *efuse; efuse 192 drivers/nvmem/sc27xx-efuse.c efuse = devm_kzalloc(&pdev->dev, sizeof(*efuse), GFP_KERNEL); efuse 193 drivers/nvmem/sc27xx-efuse.c if (!efuse) efuse 196 drivers/nvmem/sc27xx-efuse.c efuse->regmap = dev_get_regmap(pdev->dev.parent, NULL); efuse 197 drivers/nvmem/sc27xx-efuse.c if (!efuse->regmap) { efuse 202 drivers/nvmem/sc27xx-efuse.c ret = of_property_read_u32(np, "reg", &efuse->base); efuse 214 drivers/nvmem/sc27xx-efuse.c efuse->hwlock = hwspin_lock_request_specific(ret); efuse 215 drivers/nvmem/sc27xx-efuse.c if (!efuse->hwlock) { efuse 220 drivers/nvmem/sc27xx-efuse.c mutex_init(&efuse->mutex); efuse 221 drivers/nvmem/sc27xx-efuse.c efuse->dev = &pdev->dev; efuse 222 drivers/nvmem/sc27xx-efuse.c platform_set_drvdata(pdev, efuse); efuse 230 drivers/nvmem/sc27xx-efuse.c econfig.priv = efuse; efuse 235 drivers/nvmem/sc27xx-efuse.c hwspin_lock_free(efuse->hwlock); efuse 244 drivers/nvmem/sc27xx-efuse.c struct sc27xx_efuse *efuse = platform_get_drvdata(pdev); efuse 246 drivers/nvmem/sc27xx-efuse.c hwspin_lock_free(efuse->hwlock);