Lines Matching refs:netdev

104 	((((struct igb_adapter *)netdev_priv(netdev))->num_rx_queues * \
106 (((struct igb_adapter *)netdev_priv(netdev))->num_tx_queues * \
135 static int igb_get_link_ksettings(struct net_device *netdev, in igb_get_link_ksettings() argument
138 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_link_ksettings()
260 static int igb_set_link_ksettings(struct net_device *netdev, in igb_set_link_ksettings() argument
263 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_link_ksettings()
348 if (netif_running(adapter->netdev)) { in igb_set_link_ksettings()
358 static u32 igb_get_link(struct net_device *netdev) in igb_get_link() argument
360 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_link()
369 if (!netif_carrier_ok(netdev)) in igb_get_link()
375 static void igb_get_pauseparam(struct net_device *netdev, in igb_get_pauseparam() argument
378 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_pauseparam()
394 static int igb_set_pauseparam(struct net_device *netdev, in igb_set_pauseparam() argument
397 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_pauseparam()
413 if (netif_running(adapter->netdev)) { in igb_set_pauseparam()
446 static u32 igb_get_msglevel(struct net_device *netdev) in igb_get_msglevel() argument
448 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_msglevel()
452 static void igb_set_msglevel(struct net_device *netdev, u32 data) in igb_set_msglevel() argument
454 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_msglevel()
458 static int igb_get_regs_len(struct net_device *netdev) in igb_get_regs_len() argument
464 static void igb_get_regs(struct net_device *netdev, in igb_get_regs() argument
467 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_regs()
727 static int igb_get_eeprom_len(struct net_device *netdev) in igb_get_eeprom_len() argument
729 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eeprom_len()
733 static int igb_get_eeprom(struct net_device *netdev, in igb_get_eeprom() argument
736 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eeprom()
780 static int igb_set_eeprom(struct net_device *netdev, in igb_set_eeprom() argument
783 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_eeprom()
851 static void igb_get_drvinfo(struct net_device *netdev, in igb_get_drvinfo() argument
854 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_drvinfo()
869 static void igb_get_ringparam(struct net_device *netdev, in igb_get_ringparam() argument
874 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ringparam()
882 static int igb_set_ringparam(struct net_device *netdev, in igb_set_ringparam() argument
887 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_ringparam()
912 if (!netif_running(adapter->netdev)) { in igb_set_ringparam()
1406 struct net_device *netdev = adapter->netdev; in igb_intr_test() local
1415 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1424 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1429 netdev->name, adapter)) { in igb_intr_test()
1432 netdev->name, adapter)) { in igb_intr_test()
1572 tx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
1586 rx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
2013 static void igb_diag_test(struct net_device *netdev, in igb_diag_test() argument
2016 struct igb_adapter *adapter = netdev_priv(netdev); in igb_diag_test()
2019 bool if_running = netif_running(netdev); in igb_diag_test()
2047 igb_close(netdev); in igb_diag_test()
2080 igb_open(netdev); in igb_diag_test()
2101 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_get_wol() argument
2103 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_wol()
2132 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2134 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_wol()
2163 static int igb_set_phys_id(struct net_device *netdev, in igb_set_phys_id() argument
2166 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_phys_id()
2189 static int igb_set_coalesce(struct net_device *netdev, in igb_set_coalesce() argument
2194 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_coalesce()
2247 static int igb_get_coalesce(struct net_device *netdev, in igb_get_coalesce() argument
2252 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_coalesce()
2269 static int igb_nway_reset(struct net_device *netdev) in igb_nway_reset() argument
2271 struct igb_adapter *adapter = netdev_priv(netdev); in igb_nway_reset()
2272 if (netif_running(netdev)) in igb_nway_reset()
2277 static int igb_get_sset_count(struct net_device *netdev, int sset) in igb_get_sset_count() argument
2291 static void igb_get_ethtool_stats(struct net_device *netdev, in igb_get_ethtool_stats() argument
2294 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ethtool_stats()
2347 static void igb_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in igb_get_strings() argument
2349 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_strings()
2903 struct net_device *netdev = adapter->netdev; in igb_add_ethtool_nfc_entry() local
2909 if (!(netdev->hw_features & NETIF_F_NTUPLE)) in igb_add_ethtool_nfc_entry()
3033 static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in igb_get_eee() argument
3035 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eee()
3111 static int igb_set_eee(struct net_device *netdev, in igb_set_eee() argument
3114 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_eee()
3126 ret_val = igb_get_eee(netdev, &eee_curr); in igb_set_eee()
3165 if (netif_running(netdev)) in igb_set_eee()
3185 static int igb_get_module_info(struct net_device *netdev, in igb_get_module_info() argument
3188 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_info()
3227 static int igb_get_module_eeprom(struct net_device *netdev, in igb_get_module_eeprom() argument
3230 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_eeprom()
3267 static int igb_ethtool_begin(struct net_device *netdev) in igb_ethtool_begin() argument
3269 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_begin()
3274 static void igb_ethtool_complete(struct net_device *netdev) in igb_ethtool_complete() argument
3276 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_complete()
3280 static u32 igb_get_rxfh_indir_size(struct net_device *netdev) in igb_get_rxfh_indir_size() argument
3285 static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igb_get_rxfh() argument
3288 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_rxfh()
3336 static int igb_set_rxfh(struct net_device *netdev, const u32 *indir, in igb_set_rxfh() argument
3339 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_rxfh()
3382 static void igb_get_channels(struct net_device *netdev, in igb_get_channels() argument
3385 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_channels()
3399 static int igb_set_channels(struct net_device *netdev, in igb_set_channels() argument
3402 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_channels()
3432 static u32 igb_get_priv_flags(struct net_device *netdev) in igb_get_priv_flags() argument
3434 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_priv_flags()
3443 static int igb_set_priv_flags(struct net_device *netdev, u32 priv_flags) in igb_set_priv_flags() argument
3445 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_priv_flags()
3456 if (netif_running(netdev)) in igb_set_priv_flags()
3508 void igb_set_ethtool_ops(struct net_device *netdev) in igb_set_ethtool_ops() argument
3510 netdev->ethtool_ops = &igb_ethtool_ops; in igb_set_ethtool_ops()