Lines Matching refs:net_dev
90 static int ef4_ethtool_phys_id(struct net_device *net_dev, in ef4_ethtool_phys_id() argument
93 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id()
116 ef4_ethtool_get_link_ksettings(struct net_device *net_dev, in ef4_ethtool_get_link_ksettings() argument
119 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings()
140 ef4_ethtool_set_link_ksettings(struct net_device *net_dev, in ef4_ethtool_set_link_ksettings() argument
143 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings()
149 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_link_ksettings()
160 static void ef4_ethtool_get_drvinfo(struct net_device *net_dev, in ef4_ethtool_get_drvinfo() argument
163 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo()
170 static int ef4_ethtool_get_regs_len(struct net_device *net_dev) in ef4_ethtool_get_regs_len() argument
172 return ef4_nic_get_regs_len(netdev_priv(net_dev)); in ef4_ethtool_get_regs_len()
175 static void ef4_ethtool_get_regs(struct net_device *net_dev, in ef4_ethtool_get_regs() argument
178 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_regs()
184 static u32 ef4_ethtool_get_msglevel(struct net_device *net_dev) in ef4_ethtool_get_msglevel() argument
186 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_msglevel()
190 static void ef4_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in ef4_ethtool_set_msglevel() argument
192 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_msglevel()
387 static int ef4_ethtool_get_sset_count(struct net_device *net_dev, in ef4_ethtool_get_sset_count() argument
390 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_sset_count()
404 static void ef4_ethtool_get_strings(struct net_device *net_dev, in ef4_ethtool_get_strings() argument
407 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_strings()
430 static void ef4_ethtool_get_stats(struct net_device *net_dev, in ef4_ethtool_get_stats() argument
434 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_stats()
494 static void ef4_ethtool_self_test(struct net_device *net_dev, in ef4_ethtool_self_test() argument
497 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_self_test()
511 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in ef4_ethtool_self_test()
515 already_up = (efx->net_dev->flags & IFF_UP); in ef4_ethtool_self_test()
517 rc = dev_open(efx->net_dev, NULL); in ef4_ethtool_self_test()
519 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_self_test()
528 dev_close(efx->net_dev); in ef4_ethtool_self_test()
530 netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", in ef4_ethtool_self_test()
543 static int ef4_ethtool_nway_reset(struct net_device *net_dev) in ef4_ethtool_nway_reset() argument
545 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_nway_reset()
579 static int ef4_ethtool_get_coalesce(struct net_device *net_dev, in ef4_ethtool_get_coalesce() argument
582 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_coalesce()
597 static int ef4_ethtool_set_coalesce(struct net_device *net_dev, in ef4_ethtool_set_coalesce() argument
600 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_coalesce()
639 static void ef4_ethtool_get_ringparam(struct net_device *net_dev, in ef4_ethtool_get_ringparam() argument
642 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_ringparam()
650 static int ef4_ethtool_set_ringparam(struct net_device *net_dev, in ef4_ethtool_set_ringparam() argument
653 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_ringparam()
662 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_set_ringparam()
670 netif_warn(efx, drv, efx->net_dev, in ef4_ethtool_set_ringparam()
677 static int ef4_ethtool_set_pauseparam(struct net_device *net_dev, in ef4_ethtool_set_pauseparam() argument
680 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_pauseparam()
692 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
699 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
717 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
735 static void ef4_ethtool_get_pauseparam(struct net_device *net_dev, in ef4_ethtool_get_pauseparam() argument
738 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_pauseparam()
745 static void ef4_ethtool_get_wol(struct net_device *net_dev, in ef4_ethtool_get_wol() argument
748 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_wol()
753 static int ef4_ethtool_set_wol(struct net_device *net_dev, in ef4_ethtool_set_wol() argument
756 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_wol()
760 static int ef4_ethtool_reset(struct net_device *net_dev, u32 *flags) in ef4_ethtool_reset() argument
762 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_reset()
946 ef4_ethtool_get_rxnfc(struct net_device *net_dev, in ef4_ethtool_get_rxnfc() argument
949 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxnfc()
1223 static int ef4_ethtool_set_rxnfc(struct net_device *net_dev, in ef4_ethtool_set_rxnfc() argument
1226 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_rxnfc()
1244 static u32 ef4_ethtool_get_rxfh_indir_size(struct net_device *net_dev) in ef4_ethtool_get_rxfh_indir_size() argument
1246 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxfh_indir_size()
1253 static int ef4_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in ef4_ethtool_get_rxfh() argument
1256 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxfh()
1265 static int ef4_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in ef4_ethtool_set_rxfh() argument
1268 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_rxfh()
1280 static int ef4_ethtool_get_module_eeprom(struct net_device *net_dev, in ef4_ethtool_get_module_eeprom() argument
1284 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_module_eeprom()
1297 static int ef4_ethtool_get_module_info(struct net_device *net_dev, in ef4_ethtool_get_module_info() argument
1300 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_module_info()