Lines Matching refs:ethtool_ops

84 	if (!dev->ethtool_ops->get_settings)  in ethtool_get_settings()
87 err = dev->ethtool_ops->get_settings(dev, &cmd); in ethtool_get_settings()
100 if (!dev->ethtool_ops->set_settings) in ethtool_set_settings()
106 return dev->ethtool_ops->set_settings(dev, &cmd); in ethtool_set_settings()
112 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_drvinfo()
138 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_regs()
175 if (!dev->ethtool_ops->get_wol) in ethtool_get_wol()
178 dev->ethtool_ops->get_wol(dev, &wol); in ethtool_get_wol()
189 if (!dev->ethtool_ops->set_wol) in ethtool_set_wol()
195 return dev->ethtool_ops->set_wol(dev, &wol); in ethtool_set_wol()
202 if (!dev->ethtool_ops->get_msglevel) in ethtool_get_msglevel()
205 edata.data = dev->ethtool_ops->get_msglevel(dev); in ethtool_get_msglevel()
216 if (!dev->ethtool_ops->set_msglevel) in ethtool_set_msglevel()
222 dev->ethtool_ops->set_msglevel(dev, edata.data); in ethtool_set_msglevel()
228 if (!dev->ethtool_ops->nway_reset) in ethtool_nway_reset()
231 return dev->ethtool_ops->nway_reset(dev); in ethtool_nway_reset()
238 if (!dev->ethtool_ops->get_link) in ethtool_get_link()
241 edata.data = dev->ethtool_ops->get_link(dev); in ethtool_get_link()
251 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_eeprom()
296 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_set_eeprom()
338 if (!dev->ethtool_ops->get_coalesce) in ethtool_get_coalesce()
341 dev->ethtool_ops->get_coalesce(dev, &coalesce); in ethtool_get_coalesce()
352 if (!dev->ethtool_ops->set_coalesce) in ethtool_set_coalesce()
358 return dev->ethtool_ops->set_coalesce(dev, &coalesce); in ethtool_set_coalesce()
365 if (!dev->ethtool_ops->get_ringparam) in ethtool_get_ringparam()
368 dev->ethtool_ops->get_ringparam(dev, &ringparam); in ethtool_get_ringparam()
379 if (!dev->ethtool_ops->set_ringparam) in ethtool_set_ringparam()
385 return dev->ethtool_ops->set_ringparam(dev, &ringparam); in ethtool_set_ringparam()
392 if (!dev->ethtool_ops->get_pauseparam) in ethtool_get_pauseparam()
395 dev->ethtool_ops->get_pauseparam(dev, &pauseparam); in ethtool_get_pauseparam()
406 if (!dev->ethtool_ops->set_pauseparam) in ethtool_set_pauseparam()
412 return dev->ethtool_ops->set_pauseparam(dev, &pauseparam); in ethtool_set_pauseparam()
419 if (!dev->ethtool_ops->get_rx_csum) in ethtool_get_rx_csum()
422 edata.data = dev->ethtool_ops->get_rx_csum(dev); in ethtool_get_rx_csum()
433 if (!dev->ethtool_ops->set_rx_csum) in ethtool_set_rx_csum()
439 dev->ethtool_ops->set_rx_csum(dev, edata.data); in ethtool_set_rx_csum()
447 if (!dev->ethtool_ops->get_tx_csum) in ethtool_get_tx_csum()
450 edata.data = dev->ethtool_ops->get_tx_csum(dev); in ethtool_get_tx_csum()
461 if (!dev->ethtool_ops->set_tx_csum) in ethtool_set_tx_csum()
467 return dev->ethtool_ops->set_tx_csum(dev, edata.data); in ethtool_set_tx_csum()
474 if (!dev->ethtool_ops->get_sg) in ethtool_get_sg()
477 edata.data = dev->ethtool_ops->get_sg(dev); in ethtool_get_sg()
488 if (!dev->ethtool_ops->set_sg) in ethtool_set_sg()
494 return dev->ethtool_ops->set_sg(dev, edata.data); in ethtool_set_sg()
502 if (!dev->ethtool_ops->get_tso) in ethtool_get_tso()
505 edata.data = dev->ethtool_ops->get_tso(dev); in ethtool_get_tso()
516 if (!dev->ethtool_ops->set_tso) in ethtool_set_tso()
522 return dev->ethtool_ops->set_tso(dev, edata.data); in ethtool_set_tso()
532 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_self_test()
565 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_strings()
613 if (!dev->ethtool_ops->phys_id) in ethtool_phys_id()
619 return dev->ethtool_ops->phys_id(dev, id.data); in ethtool_phys_id()
625 struct ethtool_ops *ops = dev->ethtool_ops; in ethtool_get_stats()
674 if (!dev->ethtool_ops) in dev_ethtool()
680 if(dev->ethtool_ops->begin) in dev_ethtool()
681 if ((rc = dev->ethtool_ops->begin(dev)) < 0) in dev_ethtool()
782 if(dev->ethtool_ops->complete) in dev_ethtool()
783 dev->ethtool_ops->complete(dev); in dev_ethtool()