Lines Matching defs:eeprom
6447 /* GPIO1 must be driven high for eeprom write protect */
7562 static int tg3_get_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 *data)
7572 offset = eeprom->offset;
7573 len = eeprom->len;
7574 eeprom->len = 0;
7576 eeprom->magic = TG3_EEPROM_MAGIC;
7593 eeprom->len += b_count;
7597 pd = &data[eeprom->len];
7601 eeprom->len += i;
7607 eeprom->len += i;
7611 pd = &data[eeprom->len];
7619 eeprom->len += b_count;
7626 static int tg3_set_eeprom(struct net_device *dev, struct ethtool_eeprom *eeprom, u8 *data)
7636 if (eeprom->magic != TG3_EEPROM_MAGIC)
7639 offset = eeprom->offset;
7640 len = eeprom->len;
7674 memcpy(buf + b_offset, data, eeprom->len);
9132 /* For eeprom, set pagesize to maximum eeprom size */
9585 /* We always do complete word writes to eeprom. */
9901 * that the value found in the eeprom area.
9927 /* No eeprom signature? Try the hardcoded
10453 /* Get eeprom hw config before calling tg3_set_power_state().
10457 * When the flag is set, it means that GPIO1 is used for eeprom
10465 * It is also used as eeprom write protect on LOMs.