eep_val            32 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	u16 eep_val;
eep_val            35 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2);
eep_val            37 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	offset = eep_val & 0x7f;
eep_val            38 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	if ((eep_val & 0xff) == 0xff)
eep_val            40 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	else if (eep_val & 0x80)
eep_val            43 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	eep_val >>= 8;
eep_val            44 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	if (eep_val == 0x00 || eep_val == 0xff) {
eep_val            45 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 		eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1);
eep_val            46 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 		eep_val &= 0xff;
eep_val            48 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 		if (eep_val == 0x00 || eep_val == 0xff)
eep_val            49 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 			eep_val = 0x14;
eep_val            52 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	eep_val &= 0x7f;
eep_val            53 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	mt76_rmw_field(dev, MT_XO_CTRL5, MT_XO_CTRL5_C2_VAL, eep_val + offset);
eep_val            56 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	eep_val = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_2);
eep_val            57 drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c 	switch (FIELD_GET(MT_EE_NIC_CONF_2_XTAL_OPTION, eep_val)) {
eep_val            22 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	u16 eep_val;
eep_val            24 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_2);
eep_val            26 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	offset = eep_val & 0x7f;
eep_val            27 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	if ((eep_val & 0xff) == 0xff)
eep_val            29 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	else if (eep_val & 0x80)
eep_val            32 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	eep_val >>= 8;
eep_val            33 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	if (eep_val == 0x00 || eep_val == 0xff) {
eep_val            34 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 		eep_val = mt76x02_eeprom_get(dev, MT_EE_XTAL_TRIM_1);
eep_val            35 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 		eep_val &= 0xff;
eep_val            37 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 		if (eep_val == 0x00 || eep_val == 0xff)
eep_val            38 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 			eep_val = 0x14;
eep_val            41 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	eep_val &= 0x7f;
eep_val            43 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 		       MT_XO_CTRL5_C2_VAL, eep_val + offset);
eep_val            59 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	eep_val = mt76x02_eeprom_get(dev, MT_EE_NIC_CONF_2);
eep_val            60 drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c 	switch (FIELD_GET(MT_EE_NIC_CONF_2_XTAL_OPTION, eep_val)) {