Lines Matching full:eeprom
6 #include "eeprom.h"
11 u8 *eeprom = mdev->eeprom.data; in mt7915_eeprom_load_precal() local
12 u32 val = eeprom[MT_EE_DO_PRE_CAL]; in mt7915_eeprom_load_precal()
33 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_check_eeprom() local
34 u16 val = get_unaligned_le16(eeprom); in mt7915_check_eeprom()
76 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_load_default() local
90 memcpy(eeprom, fw->data, mt7915_eeprom_size(dev)); in mt7915_eeprom_load_default()
119 /* read eeprom data from efuse */ in mt7915_eeprom_load()
133 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_band_config() local
136 val = eeprom[MT_EE_WIFI_CONF + phy->band_idx]; in mt7915_eeprom_parse_band_config()
176 u8 nss, nss_band, nss_band_max, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local
182 /* read tx/rx mask from eeprom */ in mt7915_eeprom_parse_hw_cap()
185 eeprom[MT_EE_WIFI_CONF]); in mt7915_eeprom_parse_hw_cap()
188 eeprom[MT_EE_WIFI_CONF + phy->band_idx]); in mt7915_eeprom_parse_hw_cap()
200 eeprom[MT_EE_WIFI_CONF + 3]); in mt7915_eeprom_parse_hw_cap()
203 eeprom[MT_EE_WIFI_CONF + 3]); in mt7915_eeprom_parse_hw_cap()
206 eeprom[MT_EE_WIFI_CONF + 2 + phy->band_idx]); in mt7915_eeprom_parse_hw_cap()
243 dev_warn(dev->mt76.dev, "eeprom load fail, use default bin\n"); in mt7915_eeprom_init()
254 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_eeprom_init()
266 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_get_target_power() local
279 target_power = eeprom[index]; in mt7915_eeprom_get_target_power()
282 target_power = eeprom[index]; in mt7915_eeprom_get_target_power()
285 target_power += eeprom[index + 1]; in mt7915_eeprom_get_target_power()
292 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power()
295 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power()
298 target_power += eeprom[index + 8]; in mt7915_eeprom_get_target_power()
304 target_power = is_7976 ? eeprom[index + group] : 0; in mt7915_eeprom_get_target_power()
312 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_get_power_delta() local
324 val = eeprom[offs]; in mt7915_eeprom_get_power_delta()