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()
40 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_load_default() local
54 memcpy(eeprom, fw->data, MT7996_EEPROM_SIZE); in mt7996_eeprom_load_default()
86 /* read eeprom data from efuse */ in mt7996_eeprom_load()
123 u8 *eeprom = phy->dev->mt76.eeprom.data; in mt7996_eeprom_parse_band_config() local
124 u32 val = eeprom[MT_EE_WIFI_CONF]; in mt7996_eeprom_parse_band_config()
132 val = eeprom[MT_EE_WIFI_CONF + 1]; in mt7996_eeprom_parse_band_config()
161 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_parse_hw_cap() local
169 eeprom[MT_EE_WIFI_CONF + 2]); in mt7996_eeprom_parse_hw_cap()
171 eeprom[MT_EE_WIFI_CONF + 3]); in mt7996_eeprom_parse_hw_cap()
173 eeprom[MT_EE_WIFI_CONF + 5]); in mt7996_eeprom_parse_hw_cap()
177 eeprom[MT_EE_WIFI_CONF + 2]); in mt7996_eeprom_parse_hw_cap()
179 eeprom[MT_EE_WIFI_CONF + 4]); in mt7996_eeprom_parse_hw_cap()
181 eeprom[MT_EE_WIFI_CONF + 5]); in mt7996_eeprom_parse_hw_cap()
185 eeprom[MT_EE_WIFI_CONF + 1]); in mt7996_eeprom_parse_hw_cap()
187 eeprom[MT_EE_WIFI_CONF + 3]); in mt7996_eeprom_parse_hw_cap()
189 eeprom[MT_EE_WIFI_CONF + 4]); in mt7996_eeprom_parse_hw_cap()
227 dev_warn(dev->mt76.dev, "eeprom load fail, use default bin\n"); in mt7996_eeprom_init()
237 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, ETH_ALEN); in mt7996_eeprom_init()
246 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_get_target_power() local
250 target_power = eeprom[MT_EE_TX0_POWER_5G + in mt7996_eeprom_get_target_power()
253 target_power = eeprom[MT_EE_TX0_POWER_6G + in mt7996_eeprom_get_target_power()
256 target_power = eeprom[MT_EE_TX0_POWER_2G]; in mt7996_eeprom_get_target_power()
263 u8 *eeprom = dev->mt76.eeprom.data; in mt7996_eeprom_get_power_delta() local
268 val = eeprom[MT_EE_RATE_DELTA_5G]; in mt7996_eeprom_get_power_delta()
270 val = eeprom[MT_EE_RATE_DELTA_6G]; in mt7996_eeprom_get_power_delta()
272 val = eeprom[MT_EE_RATE_DELTA_2G]; in mt7996_eeprom_get_power_delta()