Lines Matching refs:eeprom
1712 * The next two routines implement eeprom read/write from physical addresses.
1754 static int set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom,
1762 if (eeprom->magic != EEPROM_MAGIC)
1765 aligned_offset = eeprom->offset & ~3;
1766 aligned_len = (eeprom->len + (eeprom->offset & 3) + 3) & ~3;
1776 if (aligned_offset != eeprom->offset || aligned_len != eeprom->len) {
1790 memcpy(buf + (eeprom->offset & 3), data, eeprom->len);