Lines Matching refs:net_dev

103 static int efx_ethtool_phys_id(struct net_device *net_dev,  in efx_ethtool_phys_id()  argument
106 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_phys_id()
129 efx_ethtool_get_link_ksettings(struct net_device *net_dev, in efx_ethtool_get_link_ksettings() argument
132 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_link_ksettings()
159 efx_ethtool_set_link_ksettings(struct net_device *net_dev, in efx_ethtool_set_link_ksettings() argument
162 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_link_ksettings()
168 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_link_ksettings()
179 static void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument
182 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_drvinfo()
191 static int efx_ethtool_get_regs_len(struct net_device *net_dev) in efx_ethtool_get_regs_len() argument
193 return efx_nic_get_regs_len(netdev_priv(net_dev)); in efx_ethtool_get_regs_len()
196 static void efx_ethtool_get_regs(struct net_device *net_dev, in efx_ethtool_get_regs() argument
199 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_regs()
205 static u32 efx_ethtool_get_msglevel(struct net_device *net_dev) in efx_ethtool_get_msglevel() argument
207 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_msglevel()
211 static void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in efx_ethtool_set_msglevel() argument
213 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_msglevel()
408 static int efx_ethtool_get_sset_count(struct net_device *net_dev, in efx_ethtool_get_sset_count() argument
411 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_sset_count()
426 static void efx_ethtool_get_strings(struct net_device *net_dev, in efx_ethtool_get_strings() argument
429 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_strings()
453 static void efx_ethtool_get_stats(struct net_device *net_dev, in efx_ethtool_get_stats() argument
457 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_stats()
519 static void efx_ethtool_self_test(struct net_device *net_dev, in efx_ethtool_self_test() argument
522 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_self_test()
536 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in efx_ethtool_self_test()
540 already_up = (efx->net_dev->flags & IFF_UP); in efx_ethtool_self_test()
542 rc = dev_open(efx->net_dev); in efx_ethtool_self_test()
544 netif_err(efx, drv, efx->net_dev, in efx_ethtool_self_test()
553 dev_close(efx->net_dev); in efx_ethtool_self_test()
555 netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", in efx_ethtool_self_test()
568 static int efx_ethtool_nway_reset(struct net_device *net_dev) in efx_ethtool_nway_reset() argument
570 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_nway_reset()
604 static int efx_ethtool_get_coalesce(struct net_device *net_dev, in efx_ethtool_get_coalesce() argument
607 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_coalesce()
622 static int efx_ethtool_set_coalesce(struct net_device *net_dev, in efx_ethtool_set_coalesce() argument
625 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_coalesce()
664 static void efx_ethtool_get_ringparam(struct net_device *net_dev, in efx_ethtool_get_ringparam() argument
667 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ringparam()
675 static int efx_ethtool_set_ringparam(struct net_device *net_dev, in efx_ethtool_set_ringparam() argument
678 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_ringparam()
687 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
695 netif_warn(efx, drv, efx->net_dev, in efx_ethtool_set_ringparam()
702 static int efx_ethtool_set_pauseparam(struct net_device *net_dev, in efx_ethtool_set_pauseparam() argument
705 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_pauseparam()
717 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
724 netif_dbg(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
742 netif_err(efx, drv, efx->net_dev, in efx_ethtool_set_pauseparam()
760 static void efx_ethtool_get_pauseparam(struct net_device *net_dev, in efx_ethtool_get_pauseparam() argument
763 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_pauseparam()
770 static void efx_ethtool_get_wol(struct net_device *net_dev, in efx_ethtool_get_wol() argument
773 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_wol()
778 static int efx_ethtool_set_wol(struct net_device *net_dev, in efx_ethtool_set_wol() argument
781 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_wol()
785 static int efx_ethtool_reset(struct net_device *net_dev, u32 *flags) in efx_ethtool_reset() argument
787 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_reset()
977 efx_ethtool_get_rxnfc(struct net_device *net_dev, in efx_ethtool_get_rxnfc() argument
980 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxnfc()
1291 static int efx_ethtool_set_rxnfc(struct net_device *net_dev, in efx_ethtool_set_rxnfc() argument
1294 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxnfc()
1313 static u32 efx_ethtool_get_rxfh_indir_size(struct net_device *net_dev) in efx_ethtool_get_rxfh_indir_size() argument
1315 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_indir_size()
1322 static u32 efx_ethtool_get_rxfh_key_size(struct net_device *net_dev) in efx_ethtool_get_rxfh_key_size() argument
1324 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_key_size()
1329 static int efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, in efx_ethtool_get_rxfh() argument
1332 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh()
1350 static int efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, in efx_ethtool_set_rxfh() argument
1353 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxfh()
1369 static int efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, in efx_ethtool_get_rxfh_context() argument
1372 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_rxfh_context()
1400 static int efx_ethtool_set_rxfh_context(struct net_device *net_dev, in efx_ethtool_set_rxfh_context() argument
1405 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_rxfh_context()
1465 static int efx_ethtool_get_ts_info(struct net_device *net_dev, in efx_ethtool_get_ts_info() argument
1468 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_ts_info()
1479 static int efx_ethtool_get_module_eeprom(struct net_device *net_dev, in efx_ethtool_get_module_eeprom() argument
1483 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_eeprom()
1496 static int efx_ethtool_get_module_info(struct net_device *net_dev, in efx_ethtool_get_module_info() argument
1499 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_module_info()
1512 static int efx_ethtool_get_fecparam(struct net_device *net_dev, in efx_ethtool_get_fecparam() argument
1515 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_get_fecparam()
1527 static int efx_ethtool_set_fecparam(struct net_device *net_dev, in efx_ethtool_set_fecparam() argument
1530 struct efx_nic *efx = netdev_priv(net_dev); in efx_ethtool_set_fecparam()