Lines Matching refs:mt76
27 if (field + len > dev->mt76.eeprom.size) in mt76x2_eeprom_copy()
30 memcpy(dest, dev->mt76.eeprom.data + field, len); in mt76x2_eeprom_copy()
37 void *src = dev->mt76.eeprom.data + MT_EE_MAC_ADDR; in mt76x2_eeprom_get_macaddr()
39 memcpy(dev->mt76.macaddr, src, ETH_ALEN); in mt76x2_eeprom_get_macaddr()
49 dev->mt76.cap.has_5ghz = true; in mt76x2_eeprom_parse_hw_cap()
52 dev->mt76.cap.has_2ghz = true; in mt76x2_eeprom_parse_hw_cap()
55 dev->mt76.cap.has_2ghz = true; in mt76x2_eeprom_parse_hw_cap()
56 dev->mt76.cap.has_5ghz = true; in mt76x2_eeprom_parse_hw_cap()
165 u8 *eeprom = dev->mt76.eeprom.data; in mt76x2_apply_cal_free_data()
206 u16 val = get_unaligned_le16(dev->mt76.eeprom.data); in mt76x2_check_eeprom()
209 val = get_unaligned_le16(dev->mt76.eeprom.data + MT_EE_PCI_ID); in mt76x2_check_eeprom()
216 dev_err(dev->mt76.dev, "EEPROM data check failed: %04x\n", val); in mt76x2_check_eeprom()
228 ret = mt76_eeprom_init(&dev->mt76, MT7662_EEPROM_SIZE); in mt76x2_eeprom_load()
236 dev->mt76.otp.data = devm_kzalloc(dev->mt76.dev, MT7662_EEPROM_SIZE, in mt76x2_eeprom_load()
238 dev->mt76.otp.size = MT7662_EEPROM_SIZE; in mt76x2_eeprom_load()
239 if (!dev->mt76.otp.data) in mt76x2_eeprom_load()
242 efuse = dev->mt76.otp.data; in mt76x2_eeprom_load()
252 memcpy(dev->mt76.eeprom.data, efuse, MT7662_EEPROM_SIZE); in mt76x2_eeprom_load()
354 struct ieee80211_channel *chan = dev->mt76.chandef.chan; in mt76x2_read_rx_gain()
610 enum nl80211_band band = dev->mt76.chandef.chan->band; in mt76x2_get_temp_comp()
662 mt76_eeprom_override(&dev->mt76); in mt76x2_eeprom_init()
663 dev->mt76.macaddr[0] &= ~BIT(1); in mt76x2_eeprom_init()