• Home
  • Raw
  • Download

Lines Matching refs:ops

183 	const struct ethtool_ops *ops = dev->ethtool_ops;  in __ethtool_get_sset_count()  local
188 if (ops->get_sset_count && ops->get_strings) in __ethtool_get_sset_count()
189 return ops->get_sset_count(dev, sset); in __ethtool_get_sset_count()
197 const struct ethtool_ops *ops = dev->ethtool_ops; in __ethtool_get_strings() local
204 ops->get_strings(dev, stringset, data); in __ethtool_get_strings()
375 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_drvinfo() local
379 if (ops->get_drvinfo) { in ethtool_get_drvinfo()
380 ops->get_drvinfo(dev, &info); in ethtool_get_drvinfo()
394 if (ops->get_sset_count) { in ethtool_get_drvinfo()
397 rc = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_get_drvinfo()
400 rc = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_drvinfo()
403 rc = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS); in ethtool_get_drvinfo()
407 if (ops->get_regs_len) in ethtool_get_drvinfo()
408 info.regdump_len = ops->get_regs_len(dev); in ethtool_get_drvinfo()
409 if (ops->get_eeprom_len) in ethtool_get_drvinfo()
410 info.eedump_len = ops->get_eeprom_len(dev); in ethtool_get_drvinfo()
510 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_rxnfc() local
514 if (!ops->get_rxnfc) in ethtool_get_rxnfc()
538 ret = ops->get_rxnfc(dev, &info, rule_buf); in ethtool_get_rxnfc()
631 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_set_rxfh_indir() local
635 if (!ops->get_rxfh_indir_size || !ops->set_rxfh || in ethtool_set_rxfh_indir()
636 !ops->get_rxnfc) in ethtool_set_rxfh_indir()
639 dev_size = ops->get_rxfh_indir_size(dev); in ethtool_set_rxfh_indir()
656 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh_indir()
672 ret = ops->set_rxfh(dev, indir, NULL); in ethtool_set_rxfh_indir()
683 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_rxfh() local
698 if (ops->get_rxfh_indir_size) in ethtool_get_rxfh()
699 dev_indir_size = ops->get_rxfh_indir_size(dev); in ethtool_get_rxfh()
700 if (ops->get_rxfh_key_size) in ethtool_get_rxfh()
701 dev_key_size = ops->get_rxfh_key_size(dev); in ethtool_get_rxfh()
760 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_set_rxfh() local
769 if (!(ops->get_rxfh_indir_size || ops->get_rxfh_key_size) || in ethtool_set_rxfh()
770 !ops->get_rxnfc || !ops->set_rxfh) in ethtool_set_rxfh()
773 if (ops->get_rxfh_indir_size) in ethtool_set_rxfh()
774 dev_indir_size = ops->get_rxfh_indir_size(dev); in ethtool_set_rxfh()
775 if (ops->get_rxfh_key_size) in ethtool_set_rxfh()
806 ret = ops->get_rxnfc(dev, &rx_rings, NULL); in ethtool_set_rxfh()
838 ret = ops->set_rxfh(dev, indir, hkey); in ethtool_set_rxfh()
848 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_regs() local
852 if (!ops->get_regs || !ops->get_regs_len) in ethtool_get_regs()
858 reglen = ops->get_regs_len(dev); in ethtool_get_regs()
866 ops->get_regs(dev, &regs, regbuf); in ethtool_get_regs()
1037 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_eeprom() local
1039 if (!ops->get_eeprom || !ops->get_eeprom_len || in ethtool_get_eeprom()
1040 !ops->get_eeprom_len(dev)) in ethtool_get_eeprom()
1043 return ethtool_get_any_eeprom(dev, useraddr, ops->get_eeprom, in ethtool_get_eeprom()
1044 ops->get_eeprom_len(dev)); in ethtool_get_eeprom()
1050 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_set_eeprom() local
1056 if (!ops->set_eeprom || !ops->get_eeprom_len || in ethtool_set_eeprom()
1057 !ops->get_eeprom_len(dev)) in ethtool_set_eeprom()
1068 if (eeprom.offset + eeprom.len > ops->get_eeprom_len(dev)) in ethtool_set_eeprom()
1083 ret = ops->set_eeprom(dev, &eeprom, data); in ethtool_set_eeprom()
1210 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_self_test() local
1214 if (!ops->self_test || !ops->get_sset_count) in ethtool_self_test()
1217 test_len = ops->get_sset_count(dev, ETH_SS_TEST); in ethtool_self_test()
1230 ops->self_test(dev, &test, data); in ethtool_self_test()
1283 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_phys_id() local
1286 if (!ops->set_phys_id) in ethtool_phys_id()
1295 rc = ops->set_phys_id(dev, ETHTOOL_ID_ACTIVE); in ethtool_phys_id()
1320 rc = ops->set_phys_id(dev, in ethtool_phys_id()
1335 (void) ops->set_phys_id(dev, ETHTOOL_ID_INACTIVE); in ethtool_phys_id()
1342 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_stats() local
1346 if (!ops->get_ethtool_stats || !ops->get_sset_count) in ethtool_get_stats()
1349 n_stats = ops->get_sset_count(dev, ETH_SS_STATS); in ethtool_get_stats()
1362 ops->get_ethtool_stats(dev, &stats, data); in ethtool_get_stats()
1475 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_dump_flag() local
1477 if (!ops->get_dump_flag) in ethtool_get_dump_flag()
1483 ret = ops->get_dump_flag(dev, &dump); in ethtool_get_dump_flag()
1498 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_dump_data() local
1501 if (!ops->get_dump_data || !ops->get_dump_flag) in ethtool_get_dump_data()
1509 ret = ops->get_dump_flag(dev, &tmp); in ethtool_get_dump_data()
1529 ret = ops->get_dump_data(dev, &dump, data); in ethtool_get_dump_data()
1559 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_ts_info() local
1567 } else if (ops->get_ts_info) { in ethtool_get_ts_info()
1568 err = ops->get_ts_info(dev, &info); in ethtool_get_ts_info()
1590 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_module_info() local
1592 if (!ops->get_module_info) in ethtool_get_module_info()
1598 ret = ops->get_module_info(dev, &modinfo); in ethtool_get_module_info()
1613 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_module_eeprom() local
1615 if (!ops->get_module_info || !ops->get_module_eeprom) in ethtool_get_module_eeprom()
1618 ret = ops->get_module_info(dev, &modinfo); in ethtool_get_module_eeprom()
1622 return ethtool_get_any_eeprom(dev, useraddr, ops->get_module_eeprom, in ethtool_get_module_eeprom()
1646 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_tunable() local
1649 if (!ops->get_tunable) in ethtool_get_tunable()
1659 ret = ops->get_tunable(dev, &tuna, data); in ethtool_get_tunable()
1677 const struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_set_tunable() local
1680 if (!ops->set_tunable) in ethtool_set_tunable()
1694 ret = ops->set_tunable(dev, &tuna, data); in ethtool_set_tunable()