Searched refs:eep_val (Results 1 – 2 of 2) sorted by relevance
22 u16 eep_val; in mt76x2u_mac_fixup_xtal() local24 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2u_mac_fixup_xtal()26 offset = eep_val & 0x7f; in mt76x2u_mac_fixup_xtal()27 if ((eep_val & 0xff) == 0xff) in mt76x2u_mac_fixup_xtal()29 else if (eep_val & 0x80) in mt76x2u_mac_fixup_xtal()32 eep_val >>= 8; in mt76x2u_mac_fixup_xtal()33 if (eep_val == 0x00 || eep_val == 0xff) { in mt76x2u_mac_fixup_xtal()34 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1); in mt76x2u_mac_fixup_xtal()35 eep_val &= 0xff; in mt76x2u_mac_fixup_xtal()37 if (eep_val == 0x00 || eep_val == 0xff) in mt76x2u_mac_fixup_xtal()[all …]
32 u16 eep_val; in mt76x2_fixup_xtal() local35 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2); in mt76x2_fixup_xtal()37 offset = eep_val & 0x7f; in mt76x2_fixup_xtal()38 if ((eep_val & 0xff) == 0xff) in mt76x2_fixup_xtal()40 else if (eep_val & 0x80) in mt76x2_fixup_xtal()43 eep_val >>= 8; in mt76x2_fixup_xtal()44 if (eep_val == 0x00 || eep_val == 0xff) { in mt76x2_fixup_xtal()45 eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1); in mt76x2_fixup_xtal()46 eep_val &= 0xff; in mt76x2_fixup_xtal()48 if (eep_val == 0x00 || eep_val == 0xff) in mt76x2_fixup_xtal()[all …]