Lines Matching defs:ops
140 const struct ethtool_ops *ops = dev->ethtool_ops;
155 !ops->get_ethtool_phy_stats &&
162 if (ops->get_sset_count && ops->get_strings)
163 return ops->get_sset_count(dev, sset);
172 const struct ethtool_ops *ops = dev->ethtool_ops;
185 !ops->get_ethtool_phy_stats && phy_ops &&
192 /* ops->get_strings is valid because checked earlier */
193 ops->get_strings(dev, stringset, data);
198 /* feature masks of legacy discrete ethtool ops */
706 const struct ethtool_ops *ops = dev->ethtool_ops;
711 if (ops->get_drvinfo) {
712 ops->get_drvinfo(dev, &info);
726 if (ops->get_sset_count) {
729 rc = ops->get_sset_count(dev, ETH_SS_TEST);
732 rc = ops->get_sset_count(dev, ETH_SS_STATS);
735 rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS);
739 if (ops->get_regs_len) {
740 int ret = ops->get_regs_len(dev);
746 if (ops->get_eeprom_len)
747 info.eedump_len = ops->get_eeprom_len(dev);
965 const struct ethtool_ops *ops = dev->ethtool_ops;
969 if (!ops->get_rxnfc)
1010 ret = ops->get_rxnfc(dev, &info, rule_buf);
1102 const struct ethtool_ops *ops = dev->ethtool_ops;
1106 if (!ops->get_rxfh_indir_size || !ops->set_rxfh ||
1107 !ops->get_rxnfc)
1110 dev_size = ops->get_rxfh_indir_size(dev);
1127 ret = ops->get_rxnfc(dev, &rx_rings, NULL);
1143 ret = ops->set_rxfh(dev, indir, NULL, ETH_RSS_HASH_NO_CHANGE);
1162 const struct ethtool_ops *ops = dev->ethtool_ops;
1173 if (!ops->get_rxfh)
1176 if (ops->get_rxfh_indir_size)
1177 dev_indir_size = ops->get_rxfh_indir_size(dev);
1178 if (ops->get_rxfh_key_size)
1179 dev_key_size = ops->get_rxfh_key_size(dev);
1190 if (rxfh.rss_context && !ops->get_rxfh_context)
1241 const struct ethtool_ops *ops = dev->ethtool_ops;
1251 if (!ops->get_rxnfc || !ops->set_rxfh)
1254 if (ops->get_rxfh_indir_size)
1255 dev_indir_size = ops->get_rxfh_indir_size(dev);
1256 if (ops->get_rxfh_key_size)
1257 dev_key_size = ops->get_rxfh_key_size(dev);
1266 if (rxfh.rss_context && !ops->set_rxfh_context)
1288 ret = ops->get_rxnfc(dev, &rx_rings, NULL);
1326 ret = ops->set_rxfh_context(dev, indir, hkey, rxfh.hfunc,
1329 ret = ops->set_rxfh(dev, indir, hkey, rxfh.hfunc);
1353 const struct ethtool_ops *ops = dev->ethtool_ops;
1357 if (!ops->get_regs || !ops->get_regs_len)
1363 reglen = ops->get_regs_len(dev);
1377 ops->get_regs(dev, ®s, regbuf);
1562 const struct ethtool_ops *ops = dev->ethtool_ops;
1564 if (!ops->get_eeprom || !ops->get_eeprom_len ||
1565 !ops->get_eeprom_len(dev))
1568 return ethtool_get_any_eeprom(dev, useraddr, ops->get_eeprom,
1569 ops->get_eeprom_len(dev));
1575 const struct ethtool_ops *ops = dev->ethtool_ops;
1581 if (!ops->set_eeprom || !ops->get_eeprom_len ||
1582 !ops->get_eeprom_len(dev))
1593 if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev))
1608 ret = ops->set_eeprom(dev, &eeprom, data);
1859 const struct ethtool_ops *ops = dev->ethtool_ops;
1863 if (!ops->self_test || !ops->get_sset_count)
1866 test_len = ops->get_sset_count(dev, ETH_SS_TEST);
1880 ops->self_test(dev, &test, data);
1942 const struct ethtool_ops *ops = dev->ethtool_ops;
1945 if (!ops->set_phys_id)
1954 rc = ops->set_phys_id(dev, ETHTOOL_ID_ACTIVE);
1977 rc = ops->set_phys_id(dev,
1990 (void) ops->set_phys_id(dev, ETHTOOL_ID_INACTIVE);
1997 const struct ethtool_ops *ops = dev->ethtool_ops;
2001 if (!ops->get_ethtool_stats || !ops->get_sset_count)
2004 n_stats = ops->get_sset_count(dev, ETH_SS_STATS);
2019 ops->get_ethtool_stats(dev, &stats, data);
2040 const struct ethtool_ops *ops = dev->ethtool_ops;
2046 if (!phydev && (!ops->get_ethtool_phy_stats || !ops->get_sset_count))
2049 if (dev->phydev && !ops->get_ethtool_phy_stats &&
2053 n_stats = ops->get_sset_count(dev, ETH_SS_PHY_STATS);
2071 if (dev->phydev && !ops->get_ethtool_phy_stats &&
2077 ops->get_ethtool_phy_stats(dev, &stats, data);
2193 const struct ethtool_ops *ops = dev->ethtool_ops;
2195 if (!ops->get_dump_flag)
2201 ret = ops->get_dump_flag(dev, &dump);
2216 const struct ethtool_ops *ops = dev->ethtool_ops;
2219 if (!ops->get_dump_data || !ops->get_dump_flag)
2227 ret = ops->get_dump_flag(dev, &tmp);
2247 ret = ops->get_dump_data(dev, &dump, data);
2291 const struct ethtool_ops *ops = dev->ethtool_ops;
2300 if (ops->get_module_info)
2301 return ops->get_module_info(dev, modinfo);
2328 const struct ethtool_ops *ops = dev->ethtool_ops;
2337 if (ops->get_module_eeprom)
2338 return ops->get_module_eeprom(dev, ee, data);
2383 const struct ethtool_ops *ops = dev->ethtool_ops;
2386 if (!ops->get_tunable)
2396 ret = ops->get_tunable(dev, &tuna, data);
2414 const struct ethtool_ops *ops = dev->ethtool_ops;
2417 if (!ops->set_tunable)
2428 ret = ops->set_tunable(dev, &tuna, data);