Lines Matching full:eeprom

6 #include "eeprom.h"
11 u8 *eeprom = mdev->eeprom.data; in mt7915_eeprom_load_precal() local
13 u32 size, val = eeprom[offs]; in mt7915_eeprom_load_precal()
44 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_check_eeprom() local
45 u16 val = get_unaligned_le16(eeprom); in mt7915_check_eeprom()
95 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_load_default() local
109 memcpy(eeprom, fw->data, mt7915_eeprom_size(dev)); in mt7915_eeprom_load_default()
142 /* read eeprom data from efuse */ in mt7915_eeprom_load()
157 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_band_config() local
161 val = eeprom[MT_EE_WIFI_CONF + band]; in mt7915_eeprom_parse_band_config()
201 u8 path, nss, nss_max = 4, *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_parse_hw_cap() local
207 /* read tx/rx path from eeprom */ in mt7915_eeprom_parse_hw_cap()
210 eeprom[MT_EE_WIFI_CONF]); in mt7915_eeprom_parse_hw_cap()
213 eeprom[MT_EE_WIFI_CONF + band]); in mt7915_eeprom_parse_hw_cap()
225 eeprom[MT_EE_WIFI_CONF + 3]); in mt7915_eeprom_parse_hw_cap()
228 eeprom[MT_EE_WIFI_CONF + 3]); in mt7915_eeprom_parse_hw_cap()
231 eeprom[MT_EE_WIFI_CONF + 2 + band]); in mt7915_eeprom_parse_hw_cap()
259 dev_warn(dev->mt76.dev, "eeprom load fail, use default bin\n"); in mt7915_eeprom_init()
267 memcpy(dev->mphy.macaddr, dev->mt76.eeprom.data + MT_EE_MAC_ADDR, in mt7915_eeprom_init()
279 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_get_target_power() local
292 target_power = eeprom[index]; in mt7915_eeprom_get_target_power()
295 target_power = eeprom[index]; in mt7915_eeprom_get_target_power()
298 target_power += eeprom[index + 1]; in mt7915_eeprom_get_target_power()
305 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power()
308 target_power = eeprom[index + group]; in mt7915_eeprom_get_target_power()
311 target_power += eeprom[index + 8]; in mt7915_eeprom_get_target_power()
317 target_power = is_7976 ? eeprom[index + group] : 0; in mt7915_eeprom_get_target_power()
325 u8 *eeprom = dev->mt76.eeprom.data; in mt7915_eeprom_get_power_delta() local
337 val = eeprom[offs]; in mt7915_eeprom_get_power_delta()