Lines Matching refs:netdev
123 ((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues * \
125 (((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues * \
137 static int igb_get_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in igb_get_settings() argument
139 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_settings()
258 static int igb_set_settings(struct net_device *netdev, struct ethtool_cmd *ecmd) in igb_set_settings() argument
260 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_settings()
341 if (netif_running(adapter->netdev)) { in igb_set_settings()
351 static u32 igb_get_link(struct net_device *netdev) in igb_get_link() argument
353 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_link()
362 if (!netif_carrier_ok(netdev)) in igb_get_link()
368 static void igb_get_pauseparam(struct net_device *netdev, in igb_get_pauseparam() argument
371 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_pauseparam()
387 static int igb_set_pauseparam(struct net_device *netdev, in igb_set_pauseparam() argument
390 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_pauseparam()
405 if (netif_running(adapter->netdev)) { in igb_set_pauseparam()
431 static u32 igb_get_msglevel(struct net_device *netdev) in igb_get_msglevel() argument
433 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_msglevel()
437 static void igb_set_msglevel(struct net_device *netdev, u32 data) in igb_set_msglevel() argument
439 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_msglevel()
443 static int igb_get_regs_len(struct net_device *netdev) in igb_get_regs_len() argument
449 static void igb_get_regs(struct net_device *netdev, in igb_get_regs() argument
452 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_regs()
709 static int igb_get_eeprom_len(struct net_device *netdev) in igb_get_eeprom_len() argument
711 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eeprom_len()
715 static int igb_get_eeprom(struct net_device *netdev, in igb_get_eeprom() argument
718 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eeprom()
762 static int igb_set_eeprom(struct net_device *netdev, in igb_set_eeprom() argument
765 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_eeprom()
830 static void igb_get_drvinfo(struct net_device *netdev, in igb_get_drvinfo() argument
833 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_drvinfo()
847 drvinfo->regdump_len = igb_get_regs_len(netdev); in igb_get_drvinfo()
848 drvinfo->eedump_len = igb_get_eeprom_len(netdev); in igb_get_drvinfo()
851 static void igb_get_ringparam(struct net_device *netdev, in igb_get_ringparam() argument
854 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ringparam()
862 static int igb_set_ringparam(struct net_device *netdev, in igb_set_ringparam() argument
865 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_ringparam()
890 if (!netif_running(adapter->netdev)) { in igb_set_ringparam()
1384 struct net_device *netdev = adapter->netdev; in igb_intr_test() local
1393 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1400 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1405 netdev->name, adapter)) { in igb_intr_test()
1408 netdev->name, adapter)) { in igb_intr_test()
1548 tx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
1562 rx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
1980 static void igb_diag_test(struct net_device *netdev, in igb_diag_test() argument
1983 struct igb_adapter *adapter = netdev_priv(netdev); in igb_diag_test()
1986 bool if_running = netif_running(netdev); in igb_diag_test()
2014 dev_close(netdev); in igb_diag_test()
2047 dev_open(netdev); in igb_diag_test()
2068 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_get_wol() argument
2070 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_wol()
2099 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2101 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_wol()
2130 static int igb_set_phys_id(struct net_device *netdev, in igb_set_phys_id() argument
2133 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_phys_id()
2156 static int igb_set_coalesce(struct net_device *netdev, in igb_set_coalesce() argument
2159 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_coalesce()
2212 static int igb_get_coalesce(struct net_device *netdev, in igb_get_coalesce() argument
2215 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_coalesce()
2232 static int igb_nway_reset(struct net_device *netdev) in igb_nway_reset() argument
2234 struct igb_adapter *adapter = netdev_priv(netdev); in igb_nway_reset()
2235 if (netif_running(netdev)) in igb_nway_reset()
2240 static int igb_get_sset_count(struct net_device *netdev, int sset) in igb_get_sset_count() argument
2252 static void igb_get_ethtool_stats(struct net_device *netdev, in igb_get_ethtool_stats() argument
2255 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ethtool_stats()
2308 static void igb_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in igb_get_strings() argument
2310 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_strings()
2594 static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in igb_get_eee() argument
2596 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eee()
2672 static int igb_set_eee(struct net_device *netdev, in igb_set_eee() argument
2675 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_eee()
2687 ret_val = igb_get_eee(netdev, &eee_curr); in igb_set_eee()
2726 if (netif_running(netdev)) in igb_set_eee()
2746 static int igb_get_module_info(struct net_device *netdev, in igb_get_module_info() argument
2749 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_info()
2788 static int igb_get_module_eeprom(struct net_device *netdev, in igb_get_module_eeprom() argument
2791 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_eeprom()
2827 static int igb_ethtool_begin(struct net_device *netdev) in igb_ethtool_begin() argument
2829 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_begin()
2834 static void igb_ethtool_complete(struct net_device *netdev) in igb_ethtool_complete() argument
2836 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_complete()
2840 static u32 igb_get_rxfh_indir_size(struct net_device *netdev) in igb_get_rxfh_indir_size() argument
2845 static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igb_get_rxfh() argument
2848 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_rxfh()
2896 static int igb_set_rxfh(struct net_device *netdev, const u32 *indir, in igb_set_rxfh() argument
2899 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_rxfh()
2972 static void igb_get_channels(struct net_device *netdev, in igb_get_channels() argument
2975 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_channels()
2989 static int igb_set_channels(struct net_device *netdev, in igb_set_channels() argument
2992 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_channels()
3064 void igb_set_ethtool_ops(struct net_device *netdev) in igb_set_ethtool_ops() argument
3066 netdev->ethtool_ops = &igb_ethtool_ops; in igb_set_ethtool_ops()