Lines Matching full:netdev

267  * @netdev: network interface device structure
273 static int iavf_get_link_ksettings(struct net_device *netdev, in iavf_get_link_ksettings() argument
276 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_link_ksettings()
327 * @netdev: network interface device structure
332 static int iavf_get_sset_count(struct net_device *netdev, int sset) in iavf_get_sset_count() argument
345 * @netdev: network interface device structure
351 static void iavf_get_ethtool_stats(struct net_device *netdev, in iavf_get_ethtool_stats() argument
354 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_ethtool_stats()
378 * @netdev: network interface device structure
383 static void iavf_get_priv_flag_strings(struct net_device *netdev, u8 *data) in iavf_get_priv_flag_strings() argument
396 * @netdev: network interface device structure
401 static void iavf_get_stat_strings(struct net_device *netdev, u8 *data) in iavf_get_stat_strings() argument
410 for (i = 0; i < netdev->num_tx_queues; i++) { in iavf_get_stat_strings()
420 * @netdev: network interface device structure
426 static void iavf_get_strings(struct net_device *netdev, u32 sset, u8 *data) in iavf_get_strings() argument
430 iavf_get_stat_strings(netdev, data); in iavf_get_strings()
433 iavf_get_priv_flag_strings(netdev, data); in iavf_get_strings()
442 * @netdev: network interface device structure
450 static u32 iavf_get_priv_flags(struct net_device *netdev) in iavf_get_priv_flags() argument
452 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_priv_flags()
469 * @netdev: network interface device structure
472 static int iavf_set_priv_flags(struct net_device *netdev, u32 flags) in iavf_set_priv_flags() argument
474 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_set_priv_flags()
522 if (netif_running(netdev)) { in iavf_set_priv_flags()
533 * @netdev: network interface device structure
537 static u32 iavf_get_msglevel(struct net_device *netdev) in iavf_get_msglevel() argument
539 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_msglevel()
546 * @netdev: network interface device structure
552 static void iavf_set_msglevel(struct net_device *netdev, u32 data) in iavf_set_msglevel() argument
554 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_set_msglevel()
563 * @netdev: network interface device structure
568 static void iavf_get_drvinfo(struct net_device *netdev, in iavf_get_drvinfo() argument
571 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_drvinfo()
581 * @netdev: network interface device structure
587 static void iavf_get_ringparam(struct net_device *netdev, in iavf_get_ringparam() argument
590 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_ringparam()
600 * @netdev: network interface device structure
606 static int iavf_set_ringparam(struct net_device *netdev, in iavf_set_ringparam() argument
609 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_set_ringparam()
633 if (netif_running(netdev)) { in iavf_set_ringparam()
643 * @netdev: the netdev to check
651 static int __iavf_get_coalesce(struct net_device *netdev, in __iavf_get_coalesce() argument
654 struct iavf_adapter *adapter = netdev_priv(netdev); in __iavf_get_coalesce()
686 * @netdev: network interface device structure
694 static int iavf_get_coalesce(struct net_device *netdev, in iavf_get_coalesce() argument
697 return __iavf_get_coalesce(netdev, ec, -1); in iavf_get_coalesce()
702 * @netdev: netdev to read
708 static int iavf_get_per_queue_coalesce(struct net_device *netdev, u32 queue, in iavf_get_per_queue_coalesce() argument
711 return __iavf_get_coalesce(netdev, ec, queue); in iavf_get_per_queue_coalesce()
754 * @netdev: the netdev to change
760 static int __iavf_set_coalesce(struct net_device *netdev, in __iavf_set_coalesce() argument
763 struct iavf_adapter *adapter = netdev_priv(netdev); in __iavf_set_coalesce()
772 …netif_info(adapter, drv, netdev, "rx-usecs=0, need to disable adaptive-rx for a complete disable\n… in __iavf_set_coalesce()
775 netif_info(adapter, drv, netdev, "Invalid value, rx-usecs range is 0-8160\n"); in __iavf_set_coalesce()
779 …netif_info(adapter, drv, netdev, "tx-usecs=0, need to disable adaptive-tx for a complete disable\n… in __iavf_set_coalesce()
782 netif_info(adapter, drv, netdev, "Invalid value, tx-usecs range is 0-8160\n"); in __iavf_set_coalesce()
795 netif_info(adapter, drv, netdev, "Invalid queue value, queue range is 0 - %d\n", in __iavf_set_coalesce()
805 * @netdev: network interface device structure
810 static int iavf_set_coalesce(struct net_device *netdev, in iavf_set_coalesce() argument
813 return __iavf_set_coalesce(netdev, ec, -1); in iavf_set_coalesce()
818 * @netdev: the netdev to change
824 static int iavf_set_per_queue_coalesce(struct net_device *netdev, u32 queue, in iavf_set_per_queue_coalesce() argument
827 return __iavf_set_coalesce(netdev, ec, queue); in iavf_set_per_queue_coalesce()
832 * @netdev: network interface device structure
838 static int iavf_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *cmd, in iavf_get_rxnfc() argument
841 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_rxnfc()
850 netdev_info(netdev, in iavf_get_rxnfc()
861 * @netdev: network interface device structure
867 static void iavf_get_channels(struct net_device *netdev, in iavf_get_channels() argument
870 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_channels()
883 * @netdev: network interface device structure
890 static int iavf_set_channels(struct net_device *netdev, in iavf_set_channels() argument
893 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_set_channels()
922 * @netdev: network interface device structure
926 static u32 iavf_get_rxfh_key_size(struct net_device *netdev) in iavf_get_rxfh_key_size() argument
928 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_rxfh_key_size()
935 * @netdev: network interface device structure
939 static u32 iavf_get_rxfh_indir_size(struct net_device *netdev) in iavf_get_rxfh_indir_size() argument
941 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_rxfh_indir_size()
948 * @netdev: network interface device structure
955 static int iavf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, in iavf_get_rxfh() argument
958 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_get_rxfh()
977 * @netdev: network interface device structure
985 static int iavf_set_rxfh(struct net_device *netdev, const u32 *indir, in iavf_set_rxfh() argument
988 struct iavf_adapter *adapter = netdev_priv(netdev); in iavf_set_rxfh()
1040 * @netdev: network interface device structure
1042 * Sets ethtool ops struct in our netdev so that ethtool can call
1045 void iavf_set_ethtool_ops(struct net_device *netdev) in iavf_set_ethtool_ops() argument
1047 netdev->ethtool_ops = &iavf_ethtool_ops; in iavf_set_ethtool_ops()