Lines Matching refs:net_dev
93 static int ef4_ethtool_phys_id(struct net_device *net_dev, in ef4_ethtool_phys_id() argument
96 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id()
119 ef4_ethtool_get_link_ksettings(struct net_device *net_dev, in ef4_ethtool_get_link_ksettings() argument
122 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings()
143 ef4_ethtool_set_link_ksettings(struct net_device *net_dev, in ef4_ethtool_set_link_ksettings() argument
146 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings()
152 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_link_ksettings()
163 static void ef4_ethtool_get_drvinfo(struct net_device *net_dev, in ef4_ethtool_get_drvinfo() argument
166 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo()
173 static int ef4_ethtool_get_regs_len(struct net_device *net_dev) in ef4_ethtool_get_regs_len() argument
175 return ef4_nic_get_regs_len(netdev_priv(net_dev)); in ef4_ethtool_get_regs_len()
178 static void ef4_ethtool_get_regs(struct net_device *net_dev, in ef4_ethtool_get_regs() argument
181 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_regs()
187 static u32 ef4_ethtool_get_msglevel(struct net_device *net_dev) in ef4_ethtool_get_msglevel() argument
189 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_msglevel()
193 static void ef4_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in ef4_ethtool_set_msglevel() argument
195 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_msglevel()
390 static int ef4_ethtool_get_sset_count(struct net_device *net_dev, in ef4_ethtool_get_sset_count() argument
393 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_sset_count()
407 static void ef4_ethtool_get_strings(struct net_device *net_dev, in ef4_ethtool_get_strings() argument
410 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_strings()
433 static void ef4_ethtool_get_stats(struct net_device *net_dev, in ef4_ethtool_get_stats() argument
437 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_stats()
497 static void ef4_ethtool_self_test(struct net_device *net_dev, in ef4_ethtool_self_test() argument
500 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_self_test()
514 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in ef4_ethtool_self_test()
518 already_up = (efx->net_dev->flags & IFF_UP); in ef4_ethtool_self_test()
520 rc = dev_open(efx->net_dev); in ef4_ethtool_self_test()
522 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_self_test()
531 dev_close(efx->net_dev); in ef4_ethtool_self_test()
533 netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", in ef4_ethtool_self_test()
546 static int ef4_ethtool_nway_reset(struct net_device *net_dev) in ef4_ethtool_nway_reset() argument
548 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_nway_reset()
582 static int ef4_ethtool_get_coalesce(struct net_device *net_dev, in ef4_ethtool_get_coalesce() argument
585 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_coalesce()
600 static int ef4_ethtool_set_coalesce(struct net_device *net_dev, in ef4_ethtool_set_coalesce() argument
603 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_coalesce()
642 static void ef4_ethtool_get_ringparam(struct net_device *net_dev, in ef4_ethtool_get_ringparam() argument
645 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_ringparam()
653 static int ef4_ethtool_set_ringparam(struct net_device *net_dev, in ef4_ethtool_set_ringparam() argument
656 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_ringparam()
665 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_set_ringparam()
673 netif_warn(efx, drv, efx->net_dev, in ef4_ethtool_set_ringparam()
680 static int ef4_ethtool_set_pauseparam(struct net_device *net_dev, in ef4_ethtool_set_pauseparam() argument
683 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_pauseparam()
695 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
702 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
720 netif_err(efx, drv, efx->net_dev, in ef4_ethtool_set_pauseparam()
738 static void ef4_ethtool_get_pauseparam(struct net_device *net_dev, in ef4_ethtool_get_pauseparam() argument
741 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_pauseparam()
748 static void ef4_ethtool_get_wol(struct net_device *net_dev, in ef4_ethtool_get_wol() argument
751 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_wol()
756 static int ef4_ethtool_set_wol(struct net_device *net_dev, in ef4_ethtool_set_wol() argument
759 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_wol()
763 static int ef4_ethtool_reset(struct net_device *net_dev, u32 *flags) in ef4_ethtool_reset() argument
765 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_reset()
949 ef4_ethtool_get_rxnfc(struct net_device *net_dev, in ef4_ethtool_get_rxnfc() argument
952 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxnfc()
1226 static int ef4_ethtool_set_rxnfc(struct net_device *net_dev, in ef4_ethtool_set_rxnfc() argument
1229 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_rxnfc()
1247 static u32 ef4_ethtool_get_rxfh_indir_size(struct net_device *net_dev) in ef4_ethtool_get_rxfh_indir_size() argument
1249 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxfh_indir_size()
1256 static int ef4_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in ef4_ethtool_get_rxfh() argument
1259 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_rxfh()
1268 static int ef4_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in ef4_ethtool_set_rxfh() argument
1271 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_rxfh()
1283 static int ef4_ethtool_get_module_eeprom(struct net_device *net_dev, in ef4_ethtool_get_module_eeprom() argument
1287 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_module_eeprom()
1300 static int ef4_ethtool_get_module_info(struct net_device *net_dev, in ef4_ethtool_get_module_info() argument
1303 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_module_info()