Lines Matching refs:efuse
24 mt76x2_has_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) in mt76x2_has_cal_free_data() argument
26 u16 *efuse_w = (u16 *)efuse; in mt76x2_has_cal_free_data()
50 mt76x2_apply_cal_free_data(struct mt76x02_dev *dev, u8 *efuse) in mt76x2_apply_cal_free_data() argument
94 if (!mt76x2_has_cal_free_data(dev, efuse)) in mt76x2_apply_cal_free_data()
100 eeprom[offset] = efuse[offset]; in mt76x2_apply_cal_free_data()
103 if (!(efuse[MT_EE_TX_POWER_0_START_5G] | in mt76x2_apply_cal_free_data()
104 efuse[MT_EE_TX_POWER_0_START_5G + 1])) in mt76x2_apply_cal_free_data()
106 if (!(efuse[MT_EE_TX_POWER_1_START_5G] | in mt76x2_apply_cal_free_data()
107 efuse[MT_EE_TX_POWER_1_START_5G + 1])) in mt76x2_apply_cal_free_data()
110 val = get_unaligned_le16(efuse + MT_EE_BT_RCAL_RESULT); in mt76x2_apply_cal_free_data()
114 val = get_unaligned_le16(efuse + MT_EE_BT_VCDL_CALIBRATION); in mt76x2_apply_cal_free_data()
118 val = get_unaligned_le16(efuse + MT_EE_BT_PMUCFG); in mt76x2_apply_cal_free_data()
143 void *efuse; in mt76x2_eeprom_load() local
161 efuse = dev->mt76.otp.data; in mt76x2_eeprom_load()
163 if (mt76x02_get_efuse_data(dev, 0, efuse, MT7662_EEPROM_SIZE, in mt76x2_eeprom_load()
168 mt76x2_apply_cal_free_data(dev, efuse); in mt76x2_eeprom_load()
172 memcpy(dev->mt76.eeprom.data, efuse, MT7662_EEPROM_SIZE); in mt76x2_eeprom_load()