Lines Matching refs:net_dev
100 static int efx_ethtool_phys_id(struct net_device *net_dev, in efx_ethtool_phys_id() argument
103 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
126 efx_ethtool_get_link_ksettings(struct net_device *net_dev, in efx_ethtool_get_link_ksettings() argument
129 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_link_ksettings()
156 efx_ethtool_set_link_ksettings(struct net_device *net_dev, in efx_ethtool_set_link_ksettings() argument
159 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_link_ksettings()
165 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_link_ksettings()
176 static void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument
179 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
188 static int efx_ethtool_get_regs_len(struct net_device *net_dev) in efx_ethtool_get_regs_len() argument
190 return efx_nic_get_regs_len(netdev_priv(net_dev)); in efx_ethtool_get_regs_len()
193 static void efx_ethtool_get_regs(struct net_device *net_dev, in efx_ethtool_get_regs() argument
196 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs()
202 static u32 efx_ethtool_get_msglevel(struct net_device *net_dev) in efx_ethtool_get_msglevel() argument
204 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel()
208 static void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in efx_ethtool_set_msglevel() argument
210 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel()
405 static int efx_ethtool_get_sset_count(struct net_device *net_dev, in efx_ethtool_get_sset_count() argument
408 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_sset_count()
423 static void efx_ethtool_get_strings(struct net_device *net_dev, in efx_ethtool_get_strings() argument
426 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_strings()
450 static void efx_ethtool_get_stats(struct net_device *net_dev, in efx_ethtool_get_stats() argument
454 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_stats()
516 static void efx_ethtool_self_test(struct net_device *net_dev, in efx_ethtool_self_test() argument
519 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_self_test()
533 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in efx_ethtool_self_test()
537 already_up = (efx->net_dev->flags & IFF_UP); in efx_ethtool_self_test()
539 rc = dev_open(efx->net_dev, NULL); in efx_ethtool_self_test()
541 netif_err(efx, drv, efx->net_dev, in efx_ethtool_self_test()
550 dev_close(efx->net_dev); in efx_ethtool_self_test()
552 netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", in efx_ethtool_self_test()
565 static int efx_ethtool_nway_reset(struct net_device *net_dev) in efx_ethtool_nway_reset() argument
567 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_nway_reset()
601 static int efx_ethtool_get_coalesce(struct net_device *net_dev, in efx_ethtool_get_coalesce() argument
604 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_coalesce()
619 static int efx_ethtool_set_coalesce(struct net_device *net_dev, in efx_ethtool_set_coalesce() argument
622 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_coalesce()
661 static void efx_ethtool_get_ringparam(struct net_device *net_dev, in efx_ethtool_get_ringparam() argument
664 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ringparam()
672 static int efx_ethtool_set_ringparam(struct net_device *net_dev, in efx_ethtool_set_ringparam() argument
675 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_ringparam()
684 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
692 netif_warn(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
699 static int efx_ethtool_set_pauseparam(struct net_device *net_dev, in efx_ethtool_set_pauseparam() argument
702 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_pauseparam()
714 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
721 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
739 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
757 static void efx_ethtool_get_pauseparam(struct net_device *net_dev, in efx_ethtool_get_pauseparam() argument
760 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_pauseparam()
767 static void efx_ethtool_get_wol(struct net_device *net_dev, in efx_ethtool_get_wol() argument
770 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_wol()
775 static int efx_ethtool_set_wol(struct net_device *net_dev, in efx_ethtool_set_wol() argument
778 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_wol()
782 static int efx_ethtool_reset(struct net_device *net_dev, u32 *flags) in efx_ethtool_reset() argument
784 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_reset()
974 efx_ethtool_get_rxnfc(struct net_device *net_dev, in efx_ethtool_get_rxnfc() argument
977 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxnfc()
1288 static int efx_ethtool_set_rxnfc(struct net_device *net_dev, in efx_ethtool_set_rxnfc() argument
1291 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxnfc()
1310 static u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev) in efx_ethtool_get_rxfh_indir_size() argument
1312 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_indir_size()
1319 static u32 efx_ethtool_get_rxfh_key_size(struct net_device *net_dev) in efx_ethtool_get_rxfh_key_size() argument
1321 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_key_size()
1326 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument
1329 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh()
1347 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument
1350 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxfh()
1366 static int efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, in efx_ethtool_get_rxfh_context() argument
1369 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_context()
1397 static int efx_ethtool_set_rxfh_context(struct net_device *net_dev, in efx_ethtool_set_rxfh_context() argument
1402 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxfh_context()
1462 static int efx_ethtool_get_ts_info(struct net_device *net_dev, in efx_ethtool_get_ts_info() argument
1465 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ts_info()
1476 static int efx_ethtool_get_module_eeprom(struct net_device *net_dev, in efx_ethtool_get_module_eeprom() argument
1480 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_eeprom()
1493 static int efx_ethtool_get_module_info(struct net_device *net_dev, in efx_ethtool_get_module_info() argument
1496 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_info()
1509 static int efx_ethtool_get_fecparam(struct net_device *net_dev, in efx_ethtool_get_fecparam() argument
1512 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_fecparam()
1524 static int efx_ethtool_set_fecparam(struct net_device *net_dev, in efx_ethtool_set_fecparam() argument
1527 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_fecparam()