Lines Matching full:eeprom
8 #include "eeprom.h"
12 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_check_eeprom() local
13 u16 val = get_unaligned_le16(eeprom); in mt7996_check_eeprom()
32 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_load_default() local
46 memcpy(eeprom, fw->data, MT7996_EEPROM_SIZE); in mt7996_eeprom_load_default()
78 /* read eeprom data from efuse */ in mt7996_eeprom_load()
114 u8 *eeprom = phy->dev->mt76.eeprom.data; in mt7996_eeprom_parse_band_config() local
115 u32 val = eeprom[MT_EE_WIFI_CONF]; in mt7996_eeprom_parse_band_config()
123 val = eeprom[MT_EE_WIFI_CONF + 1]; in mt7996_eeprom_parse_band_config()
152 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_parse_hw_cap() local
159 eeprom[MT_EE_WIFI_CONF + 2]); in mt7996_eeprom_parse_hw_cap()
161 eeprom[MT_EE_WIFI_CONF + 5]); in mt7996_eeprom_parse_hw_cap()
165 eeprom[MT_EE_WIFI_CONF + 2]); in mt7996_eeprom_parse_hw_cap()
167 eeprom[MT_EE_WIFI_CONF + 5]); in mt7996_eeprom_parse_hw_cap()
171 eeprom[MT_EE_WIFI_CONF + 1]); in mt7996_eeprom_parse_hw_cap()
173 eeprom[MT_EE_WIFI_CONF + 4]); in mt7996_eeprom_parse_hw_cap()
205 dev_warn(dev->mt76.dev, "eeprom load fail, use default bin\n"); in mt7996_eeprom_init()
215 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, ETH_ALEN); in mt7996_eeprom_init()
224 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_get_target_power() local
228 target_power = eeprom[MT_EE_TX0_POWER_5G + in mt7996_eeprom_get_target_power()
231 target_power = eeprom[MT_EE_TX0_POWER_6G + in mt7996_eeprom_get_target_power()
234 target_power = eeprom[MT_EE_TX0_POWER_2G]; in mt7996_eeprom_get_target_power()
241 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_get_power_delta() local
246 val = eeprom[MT_EE_RATE_DELTA_5G]; in mt7996_eeprom_get_power_delta()
248 val = eeprom[MT_EE_RATE_DELTA_6G]; in mt7996_eeprom_get_power_delta()
250 val = eeprom[MT_EE_RATE_DELTA_2G]; in mt7996_eeprom_get_power_delta()