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 static void igb_get_ringparam(struct net_device *netdev, in igb_get_ringparam() argument
850 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ringparam()
858 static int igb_set_ringparam(struct net_device *netdev, in igb_set_ringparam() argument
861 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_ringparam()
886 if (!netif_running(adapter->netdev)) { in igb_set_ringparam()
1380 struct net_device *netdev = adapter->netdev; in igb_intr_test() local
1389 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1396 igb_test_intr, 0, netdev->name, adapter)) { in igb_intr_test()
1401 netdev->name, adapter)) { in igb_intr_test()
1404 netdev->name, adapter)) { in igb_intr_test()
1544 tx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
1558 rx_ring->netdev = adapter->netdev; in igb_setup_desc_rings()
1976 static void igb_diag_test(struct net_device *netdev, in igb_diag_test() argument
1979 struct igb_adapter *adapter = netdev_priv(netdev); in igb_diag_test()
1982 bool if_running = netif_running(netdev); in igb_diag_test()
2010 dev_close(netdev); in igb_diag_test()
2043 dev_open(netdev); in igb_diag_test()
2064 static void igb_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_get_wol() argument
2066 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_wol()
2095 static int igb_set_wol(struct net_device *netdev, struct ethtool_wolinfo *wol) in igb_set_wol() argument
2097 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_wol()
2126 static int igb_set_phys_id(struct net_device *netdev, in igb_set_phys_id() argument
2129 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_phys_id()
2152 static int igb_set_coalesce(struct net_device *netdev, in igb_set_coalesce() argument
2155 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_coalesce()
2229 static int igb_get_coalesce(struct net_device *netdev, in igb_get_coalesce() argument
2232 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_coalesce()
2249 static int igb_nway_reset(struct net_device *netdev) in igb_nway_reset() argument
2251 struct igb_adapter *adapter = netdev_priv(netdev); in igb_nway_reset()
2252 if (netif_running(netdev)) in igb_nway_reset()
2257 static int igb_get_sset_count(struct net_device *netdev, int sset) in igb_get_sset_count() argument
2269 static void igb_get_ethtool_stats(struct net_device *netdev, in igb_get_ethtool_stats() argument
2272 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_ethtool_stats()
2325 static void igb_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in igb_get_strings() argument
2327 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_strings()
2607 static int igb_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in igb_get_eee() argument
2609 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_eee()
2685 static int igb_set_eee(struct net_device *netdev, in igb_set_eee() argument
2688 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_eee()
2700 ret_val = igb_get_eee(netdev, &eee_curr); in igb_set_eee()
2739 if (netif_running(netdev)) in igb_set_eee()
2759 static int igb_get_module_info(struct net_device *netdev, in igb_get_module_info() argument
2762 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_info()
2801 static int igb_get_module_eeprom(struct net_device *netdev, in igb_get_module_eeprom() argument
2804 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_module_eeprom()
2840 static int igb_ethtool_begin(struct net_device *netdev) in igb_ethtool_begin() argument
2842 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_begin()
2847 static void igb_ethtool_complete(struct net_device *netdev) in igb_ethtool_complete() argument
2849 struct igb_adapter *adapter = netdev_priv(netdev); in igb_ethtool_complete()
2853 static u32 igb_get_rxfh_indir_size(struct net_device *netdev) in igb_get_rxfh_indir_size() argument
2858 static int igb_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igb_get_rxfh() argument
2861 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_rxfh()
2909 static int igb_set_rxfh(struct net_device *netdev, const u32 *indir, in igb_set_rxfh() argument
2912 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_rxfh()
2985 static void igb_get_channels(struct net_device *netdev, in igb_get_channels() argument
2988 struct igb_adapter *adapter = netdev_priv(netdev); in igb_get_channels()
3002 static int igb_set_channels(struct net_device *netdev, in igb_set_channels() argument
3005 struct igb_adapter *adapter = netdev_priv(netdev); in igb_set_channels()
3077 void igb_set_ethtool_ops(struct net_device *netdev) in igb_set_ethtool_ops() argument
3079 netdev->ethtool_ops = &igb_ethtool_ops; in igb_set_ethtool_ops()