Lines Matching refs:eeprom
617 int asix_get_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_get_eeprom() argument
625 if (eeprom->len == 0) in asix_get_eeprom()
628 eeprom->magic = AX_EEPROM_MAGIC; in asix_get_eeprom()
630 first_word = eeprom->offset >> 1; in asix_get_eeprom()
631 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_get_eeprom()
647 memcpy(data, (u8 *)eeprom_buff + (eeprom->offset & 1), eeprom->len); in asix_get_eeprom()
652 int asix_set_eeprom(struct net_device *net, struct ethtool_eeprom *eeprom, in asix_set_eeprom() argument
662 eeprom->len, eeprom->offset, eeprom->magic); in asix_set_eeprom()
664 if (eeprom->len == 0) in asix_set_eeprom()
667 if (eeprom->magic != AX_EEPROM_MAGIC) in asix_set_eeprom()
670 first_word = eeprom->offset >> 1; in asix_set_eeprom()
671 last_word = (eeprom->offset + eeprom->len - 1) >> 1; in asix_set_eeprom()
680 if (eeprom->offset & 1) { in asix_set_eeprom()
689 if ((eeprom->offset + eeprom->len) & 1) { in asix_set_eeprom()
698 memcpy((u8 *)eeprom_buff + (eeprom->offset & 1), data, eeprom->len); in asix_set_eeprom()