Home
last modified time | relevance | path

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

/net/core/
Dethtool.c800 struct ethtool_eeprom eeprom; in ethtool_get_any_eeprom() local
801 void __user *userbuf = useraddr + sizeof(eeprom); in ethtool_get_any_eeprom()
806 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in ethtool_get_any_eeprom()
810 if (eeprom.offset + eeprom.len <= eeprom.offset) in ethtool_get_any_eeprom()
814 if (eeprom.offset + eeprom.len > total_len) in ethtool_get_any_eeprom()
821 bytes_remaining = eeprom.len; in ethtool_get_any_eeprom()
823 eeprom.len = min(bytes_remaining, (u32)PAGE_SIZE); in ethtool_get_any_eeprom()
825 ret = getter(dev, &eeprom, data); in ethtool_get_any_eeprom()
828 if (copy_to_user(userbuf, data, eeprom.len)) { in ethtool_get_any_eeprom()
832 userbuf += eeprom.len; in ethtool_get_any_eeprom()
[all …]