Home
last modified time | relevance | path

Searched refs:eep_val (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x2/
Dusb_mac.c12 u16 eep_val; in mt76x2u_mac_fixup_xtal() local
14 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2u_mac_fixup_xtal()
16 offset = eep_val & 0x7f; in mt76x2u_mac_fixup_xtal()
17 if ((eep_val & 0xff) == 0xff) in mt76x2u_mac_fixup_xtal()
19 else if (eep_val & 0x80) in mt76x2u_mac_fixup_xtal()
22 eep_val >>= 8; in mt76x2u_mac_fixup_xtal()
23 if (eep_val == 0x00 || eep_val == 0xff) { in mt76x2u_mac_fixup_xtal()
24 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1); in mt76x2u_mac_fixup_xtal()
25 eep_val &= 0xff; in mt76x2u_mac_fixup_xtal()
27 if (eep_val == 0x00 || eep_val == 0xff) in mt76x2u_mac_fixup_xtal()
[all …]
Dpci_init.c33 u16 eep_val; in mt76x2_fixup_xtal() local
36 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2_fixup_xtal()
38 offset = eep_val & 0x7f; in mt76x2_fixup_xtal()
39 if ((eep_val & 0xff) == 0xff) in mt76x2_fixup_xtal()
41 else if (eep_val & 0x80) in mt76x2_fixup_xtal()
44 eep_val >>= 8; in mt76x2_fixup_xtal()
45 if (eep_val == 0x00 || eep_val == 0xff) { in mt76x2_fixup_xtal()
46 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1); in mt76x2_fixup_xtal()
47 eep_val &= 0xff; in mt76x2_fixup_xtal()
49 if (eep_val == 0x00 || eep_val == 0xff) in mt76x2_fixup_xtal()
[all …]