Lines Matching refs:netdev

117 	((((struct igc_adapter *)netdev_priv(netdev))->num_rx_queues * \
119 (((struct igc_adapter *)netdev_priv(netdev))->num_tx_queues * \
131 static void igc_ethtool_get_drvinfo(struct net_device *netdev, in igc_ethtool_get_drvinfo() argument
134 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_drvinfo()
162 static int igc_ethtool_get_regs_len(struct net_device *netdev) in igc_ethtool_get_regs_len() argument
167 static void igc_ethtool_get_regs(struct net_device *netdev, in igc_ethtool_get_regs() argument
170 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_regs()
349 static void igc_ethtool_get_wol(struct net_device *netdev, in igc_ethtool_get_wol() argument
352 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_wol()
381 static int igc_ethtool_set_wol(struct net_device *netdev, in igc_ethtool_set_wol() argument
384 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_wol()
410 static u32 igc_ethtool_get_msglevel(struct net_device *netdev) in igc_ethtool_get_msglevel() argument
412 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_msglevel()
417 static void igc_ethtool_set_msglevel(struct net_device *netdev, u32 data) in igc_ethtool_set_msglevel() argument
419 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_msglevel()
424 static int igc_ethtool_nway_reset(struct net_device *netdev) in igc_ethtool_nway_reset() argument
426 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_nway_reset()
428 if (netif_running(netdev)) in igc_ethtool_nway_reset()
433 static u32 igc_ethtool_get_link(struct net_device *netdev) in igc_ethtool_get_link() argument
435 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_link()
444 if (!netif_carrier_ok(netdev)) in igc_ethtool_get_link()
450 static int igc_ethtool_get_eeprom_len(struct net_device *netdev) in igc_ethtool_get_eeprom_len() argument
452 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_eeprom_len()
457 static int igc_ethtool_get_eeprom(struct net_device *netdev, in igc_ethtool_get_eeprom() argument
460 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_eeprom()
504 static int igc_ethtool_set_eeprom(struct net_device *netdev, in igc_ethtool_set_eeprom() argument
507 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_eeprom()
572 igc_ethtool_get_ringparam(struct net_device *netdev, in igc_ethtool_get_ringparam() argument
577 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_ringparam()
586 igc_ethtool_set_ringparam(struct net_device *netdev, in igc_ethtool_set_ringparam() argument
591 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_ringparam()
616 if (!netif_running(adapter->netdev)) { in igc_ethtool_set_ringparam()
703 static void igc_ethtool_get_pauseparam(struct net_device *netdev, in igc_ethtool_get_pauseparam() argument
706 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_pauseparam()
722 static int igc_ethtool_set_pauseparam(struct net_device *netdev, in igc_ethtool_set_pauseparam() argument
725 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_pauseparam()
736 if (netif_running(adapter->netdev)) { in igc_ethtool_set_pauseparam()
762 static void igc_ethtool_get_strings(struct net_device *netdev, u32 stringset, in igc_ethtool_get_strings() argument
765 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_strings()
801 static int igc_ethtool_get_sset_count(struct net_device *netdev, int sset) in igc_ethtool_get_sset_count() argument
815 static void igc_ethtool_get_stats(struct net_device *netdev, in igc_ethtool_get_stats() argument
818 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_stats()
883 static int igc_ethtool_get_coalesce(struct net_device *netdev, in igc_ethtool_get_coalesce() argument
888 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_coalesce()
896 static int igc_ethtool_set_coalesce(struct net_device *netdev, in igc_ethtool_set_coalesce() argument
901 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_coalesce()
1191 netdev_err(adapter->netdev, in igc_ethtool_set_rss_hash_opt()
1302 struct net_device *dev = adapter->netdev; in igc_ethtool_check_nfc_rule()
1326 struct net_device *netdev = adapter->netdev; in igc_ethtool_add_nfc_rule() local
1332 if (!(netdev->hw_features & NETIF_F_NTUPLE)) { in igc_ethtool_add_nfc_rule()
1333 netdev_dbg(netdev, "N-tuple filters disabled\n"); in igc_ethtool_add_nfc_rule()
1338 netdev_dbg(netdev, "Only ethernet flow type is supported\n"); in igc_ethtool_add_nfc_rule()
1343 netdev_dbg(netdev, "Invalid action\n"); in igc_ethtool_add_nfc_rule()
1355 netdev_dbg(netdev, "VLAN mask not supported\n"); in igc_ethtool_add_nfc_rule()
1363 netdev_dbg(netdev, "VLAN EtherType mask not supported\n"); in igc_ethtool_add_nfc_rule()
1368 netdev_dbg(netdev, "Invalid location\n"); in igc_ethtool_add_nfc_rule()
1461 static u32 igc_ethtool_get_rxfh_indir_size(struct net_device *netdev) in igc_ethtool_get_rxfh_indir_size() argument
1466 static int igc_ethtool_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in igc_ethtool_get_rxfh() argument
1469 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_rxfh()
1482 static int igc_ethtool_set_rxfh(struct net_device *netdev, const u32 *indir, in igc_ethtool_set_rxfh() argument
1485 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_rxfh()
1511 static void igc_ethtool_get_channels(struct net_device *netdev, in igc_ethtool_get_channels() argument
1514 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_channels()
1528 static int igc_ethtool_set_channels(struct net_device *netdev, in igc_ethtool_set_channels() argument
1531 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_channels()
1594 static u32 igc_ethtool_get_priv_flags(struct net_device *netdev) in igc_ethtool_get_priv_flags() argument
1596 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_priv_flags()
1605 static int igc_ethtool_set_priv_flags(struct net_device *netdev, u32 priv_flags) in igc_ethtool_set_priv_flags() argument
1607 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_priv_flags()
1618 if (netif_running(netdev)) in igc_ethtool_set_priv_flags()
1625 static int igc_ethtool_get_eee(struct net_device *netdev, in igc_ethtool_get_eee() argument
1628 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_eee()
1666 static int igc_ethtool_set_eee(struct net_device *netdev, in igc_ethtool_set_eee() argument
1669 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_eee()
1676 ret_val = igc_ethtool_get_eee(netdev, &eee_curr); in igc_ethtool_set_eee()
1678 netdev_err(netdev, in igc_ethtool_set_eee()
1685 netdev_err(netdev, in igc_ethtool_set_eee()
1692 netdev_err(netdev, in igc_ethtool_set_eee()
1697 netdev_err(netdev, in igc_ethtool_set_eee()
1708 if (netif_running(netdev)) in igc_ethtool_set_eee()
1717 static int igc_ethtool_begin(struct net_device *netdev) in igc_ethtool_begin() argument
1719 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_begin()
1725 static void igc_ethtool_complete(struct net_device *netdev) in igc_ethtool_complete() argument
1727 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_complete()
1732 static int igc_ethtool_get_link_ksettings(struct net_device *netdev, in igc_ethtool_get_link_ksettings() argument
1735 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_get_link_ksettings()
1850 igc_ethtool_set_link_ksettings(struct net_device *netdev, in igc_ethtool_set_link_ksettings() argument
1853 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_set_link_ksettings()
1854 struct net_device *dev = adapter->netdev; in igc_ethtool_set_link_ksettings()
1926 if (netif_running(adapter->netdev)) { in igc_ethtool_set_link_ksettings()
1938 static void igc_ethtool_diag_test(struct net_device *netdev, in igc_ethtool_diag_test() argument
1941 struct igc_adapter *adapter = netdev_priv(netdev); in igc_ethtool_diag_test()
1942 bool if_running = netif_running(netdev); in igc_ethtool_diag_test()
1945 netdev_info(adapter->netdev, "Offline testing starting"); in igc_ethtool_diag_test()
1955 igc_close(netdev); in igc_ethtool_diag_test()
1959 netdev_info(adapter->netdev, "Register testing starting"); in igc_ethtool_diag_test()
1965 netdev_info(adapter->netdev, "EEPROM testing starting"); in igc_ethtool_diag_test()
1979 igc_open(netdev); in igc_ethtool_diag_test()
1981 netdev_info(adapter->netdev, "Online testing starting"); in igc_ethtool_diag_test()
2038 void igc_ethtool_set_ops(struct net_device *netdev) in igc_ethtool_set_ops() argument
2040 netdev->ethtool_ops = &igc_ethtool_ops; in igc_ethtool_set_ops()