Home
last modified time | relevance | path

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

/net/ethtool/
Deeprom.c31 struct ethtool_eeprom *eeprom) in fallback_set_params() argument
46 eeprom->cmd = ETHTOOL_GMODULEEEPROM; in fallback_set_params()
47 eeprom->len = length; in fallback_set_params()
48 eeprom->offset = offset; in fallback_set_params()
59 struct ethtool_eeprom eeprom = {0}; in eeprom_fallback() local
68 err = fallback_set_params(request, &modinfo, &eeprom); in eeprom_fallback()
72 data = kmalloc(eeprom.len, GFP_KERNEL); in eeprom_fallback()
75 err = ethtool_get_module_eeprom_call(dev, &eeprom, data); in eeprom_fallback()
80 reply->length = eeprom.len; in eeprom_fallback()
Dioctl.c1512 struct ethtool_eeprom eeprom; in ethtool_get_any_eeprom() local
1513 void __user *userbuf = useraddr + sizeof(eeprom); in ethtool_get_any_eeprom()
1518 if (copy_from_user(&eeprom, useraddr, sizeof(eeprom))) in ethtool_get_any_eeprom()
1522 if (eeprom.offset + eeprom.len <= eeprom.offset) in ethtool_get_any_eeprom()
1526 if (eeprom.offset + eeprom.len > total_len) in ethtool_get_any_eeprom()
1533 bytes_remaining = eeprom.len; in ethtool_get_any_eeprom()
1535 eeprom.len = min(bytes_remaining, (u32)PAGE_SIZE); in ethtool_get_any_eeprom()
1537 ret = getter(dev, &eeprom, data); in ethtool_get_any_eeprom()
1540 if (copy_to_user(userbuf, data, eeprom.len)) { in ethtool_get_any_eeprom()
1544 userbuf += eeprom.len; in ethtool_get_any_eeprom()
[all …]
DMakefile10 tunnels.o fec.o eeprom.o stats.o phc_vclocks.o
/net/dsa/
Dslave.c695 struct ethtool_eeprom *eeprom, u8 *data) in dsa_slave_get_eeprom() argument
701 return ds->ops->get_eeprom(ds, eeprom, data); in dsa_slave_get_eeprom()
707 struct ethtool_eeprom *eeprom, u8 *data) in dsa_slave_set_eeprom() argument
713 return ds->ops->set_eeprom(ds, eeprom, data); in dsa_slave_set_eeprom()