Lines Matching refs:eeprom
672 struct ethtool_eeprom *eeprom, u8 *data)
681 if (eeprom->len % 2)
684 eeprom->magic = AX_EEPROM_MAGIC;
686 /* ax8817x returns 2 bytes from eeprom on read */
687 for (i=0; i < eeprom->len / 2; i++) {
689 eeprom->offset + i, 0, 2, &ebuf[i]) < 0)
1199 u16 eeprom;
1212 eeprom = 0;
1213 asix_read_cmd(dev, AX_CMD_READ_GPIOS, 0, 0, 1, &eeprom);
1214 dbg("GPIO Status: 0x%04x", eeprom);
1217 asix_read_cmd(dev, AX_CMD_READ_EEPROM, 0x0017, 0, 2, &eeprom);
1220 dbg("EEPROM index 0x17 is 0x%04x", eeprom);
1222 if (eeprom == 0xffff) {
1227 data->phymode = eeprom & 7;
1228 data->ledmode = eeprom >> 8;
1229 gpio0 = (eeprom & 0x80) ? 0 : 1;
1234 if ((eeprom >> 8) != 1) {