Lines Matching refs:eeprom
353 uint16_t eeprom, val;
358 axe_cmd(sc, AXE_CMD_SROM_READ, 0, 0x0017, &eeprom);
359 eeprom = le16toh(eeprom);
363 if (eeprom == 0xffff) {
368 phymode = eeprom & 0x7f;
369 gpio0 = (eeprom & 0x80) ? 0 : 1;
370 ledmode = eeprom >> 8;
531 uint16_t eeprom;
543 axe_cmd(sc, AXE_CMD_SROM_READ, 0, AXE_EEPROM_772B_PHY_PWRCFG, &eeprom);
544 sc->sc_pwrcfg = le16toh(eeprom) & 0xFF00;
555 axe_cmd(sc, AXE_CMD_SROM_READ, 0, AXE_EEPROM_772B_NODE_ID + i, &eeprom);
556 eeprom = le16toh(eeprom);
557 *eaddr++ = (uint8_t)(eeprom & 0xFF);
558 *eaddr++ = (uint8_t)((eeprom >> 8) & 0xFF);
559 *tmp++ = (uint8_t)(eeprom & 0xFF);
560 *tmp++ = (uint8_t)((eeprom >> 8) & 0xFF);