Lines Matching refs:net_dev

96 static int efx_ethtool_phys_id(struct net_device *net_dev,  in efx_ethtool_phys_id()  argument
99 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
121 static int efx_ethtool_get_settings(struct net_device *net_dev, in efx_ethtool_get_settings() argument
124 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_settings()
143 static int efx_ethtool_set_settings(struct net_device *net_dev, in efx_ethtool_set_settings() argument
146 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_settings()
152 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_settings()
163 static void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument
166 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
176 static int efx_ethtool_get_regs_len(struct net_device *net_dev) in efx_ethtool_get_regs_len() argument
178 return efx_nic_get_regs_len(netdev_priv(net_dev)); in efx_ethtool_get_regs_len()
181 static void efx_ethtool_get_regs(struct net_device *net_dev, in efx_ethtool_get_regs() argument
184 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs()
190 static u32 efx_ethtool_get_msglevel(struct net_device *net_dev) in efx_ethtool_get_msglevel() argument
192 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel()
196 static void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in efx_ethtool_set_msglevel() argument
198 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel()
393 static int efx_ethtool_get_sset_count(struct net_device *net_dev, in efx_ethtool_get_sset_count() argument
396 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_sset_count()
411 static void efx_ethtool_get_strings(struct net_device *net_dev, in efx_ethtool_get_strings() argument
414 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_strings()
438 static void efx_ethtool_get_stats(struct net_device *net_dev, in efx_ethtool_get_stats() argument
442 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_stats()
504 static void efx_ethtool_self_test(struct net_device *net_dev, in efx_ethtool_self_test() argument
507 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_self_test()
521 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in efx_ethtool_self_test()
525 already_up = (efx->net_dev->flags & IFF_UP); in efx_ethtool_self_test()
527 rc = dev_open(efx->net_dev); in efx_ethtool_self_test()
529 netif_err(efx, drv, efx->net_dev, in efx_ethtool_self_test()
538 dev_close(efx->net_dev); in efx_ethtool_self_test()
540 netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", in efx_ethtool_self_test()
553 static int efx_ethtool_nway_reset(struct net_device *net_dev) in efx_ethtool_nway_reset() argument
555 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_nway_reset()
589 static int efx_ethtool_get_coalesce(struct net_device *net_dev, in efx_ethtool_get_coalesce() argument
592 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_coalesce()
607 static int efx_ethtool_set_coalesce(struct net_device *net_dev, in efx_ethtool_set_coalesce() argument
610 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_coalesce()
649 static void efx_ethtool_get_ringparam(struct net_device *net_dev, in efx_ethtool_get_ringparam() argument
652 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ringparam()
660 static int efx_ethtool_set_ringparam(struct net_device *net_dev, in efx_ethtool_set_ringparam() argument
663 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_ringparam()
672 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
680 netif_warn(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
687 static int efx_ethtool_set_pauseparam(struct net_device *net_dev, in efx_ethtool_set_pauseparam() argument
690 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_pauseparam()
702 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
709 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
727 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
745 static void efx_ethtool_get_pauseparam(struct net_device *net_dev, in efx_ethtool_get_pauseparam() argument
748 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_pauseparam()
755 static void efx_ethtool_get_wol(struct net_device *net_dev, in efx_ethtool_get_wol() argument
758 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_wol()
763 static int efx_ethtool_set_wol(struct net_device *net_dev, in efx_ethtool_set_wol() argument
766 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_wol()
770 static int efx_ethtool_reset(struct net_device *net_dev, u32 *flags) in efx_ethtool_reset() argument
772 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_reset()
874 efx_ethtool_get_rxnfc(struct net_device *net_dev, in efx_ethtool_get_rxnfc() argument
877 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxnfc()
1059 static int efx_ethtool_set_rxnfc(struct net_device *net_dev, in efx_ethtool_set_rxnfc() argument
1062 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxnfc()
1080 static u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev) in efx_ethtool_get_rxfh_indir_size() argument
1082 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_indir_size()
1089 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument
1092 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh()
1101 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument
1104 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxfh()
1116 static int efx_ethtool_get_ts_info(struct net_device *net_dev, in efx_ethtool_get_ts_info() argument
1119 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ts_info()
1130 static int efx_ethtool_get_module_eeprom(struct net_device *net_dev, in efx_ethtool_get_module_eeprom() argument
1134 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_eeprom()
1147 static int efx_ethtool_get_module_info(struct net_device *net_dev, in efx_ethtool_get_module_info() argument
1150 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_info()