Home
last modified time | relevance | path

Searched refs:eeprom (Results 1 – 2 of 2) sorted by relevance

/net/core/
Dethtool.c1495 struct ethtool_eeprom eeprom; in ethtool_get_any_eeprom() local
1496 void __user *userbuf = useraddr + sizeof(eeprom); in ethtool_get_any_eeprom()
1501 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in ethtool_get_any_eeprom()
1505 if (eeprom.offset + eeprom.len <= eeprom.offset) in ethtool_get_any_eeprom()
1509 if (eeprom.offset + eeprom.len > total_len) in ethtool_get_any_eeprom()
1516 bytes_remaining = eeprom.len; in ethtool_get_any_eeprom()
1518 eeprom.len = min(bytes_remaining, (u32)PAGE_SIZE); in ethtool_get_any_eeprom()
1520 ret = getter(dev, &eeprom, data); in ethtool_get_any_eeprom()
1523 if (copy_to_user(userbuf, data, eeprom.len)) { in ethtool_get_any_eeprom()
1527 userbuf += eeprom.len; in ethtool_get_any_eeprom()
[all …]
/net/dsa/
Dslave.c616 struct ethtool_eeprom *eeprom, u8 *data) in dsa_slave_get_eeprom() argument
622 return ds->ops->get_eeprom(ds, eeprom, data); in dsa_slave_get_eeprom()
628 struct ethtool_eeprom *eeprom, u8 *data) in dsa_slave_set_eeprom() argument
634 return ds->ops->set_eeprom(ds, eeprom, data); in dsa_slave_set_eeprom()