Lines Matching refs:netdev
256 bnad_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd) in bnad_get_settings() argument
266 if (netif_carrier_ok(netdev)) { in bnad_get_settings()
281 bnad_set_settings(struct net_device *netdev, struct ethtool_cmd *cmd) in bnad_set_settings() argument
295 bnad_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) in bnad_get_drvinfo() argument
297 struct bnad *bnad = netdev_priv(netdev); in bnad_get_drvinfo()
320 bnad_get_wol(struct net_device *netdev, struct ethtool_wolinfo *wolinfo) in bnad_get_wol() argument
327 bnad_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_get_coalesce() argument
329 struct bnad *bnad = netdev_priv(netdev); in bnad_get_coalesce()
348 bnad_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *coalesce) in bnad_set_coalesce() argument
350 struct bnad *bnad = netdev_priv(netdev); in bnad_set_coalesce()
419 bnad_get_ringparam(struct net_device *netdev, in bnad_get_ringparam() argument
422 struct bnad *bnad = netdev_priv(netdev); in bnad_get_ringparam()
432 bnad_set_ringparam(struct net_device *netdev, in bnad_set_ringparam() argument
436 struct bnad *bnad = netdev_priv(netdev); in bnad_set_ringparam()
461 if (!netif_running(netdev)) { in bnad_set_ringparam()
480 bnad_mac_addr_set_locked(bnad, netdev->dev_addr); in bnad_set_ringparam()
484 bnad_set_rx_mode(netdev); in bnad_set_ringparam()
489 if (!netif_running(netdev)) { in bnad_set_ringparam()
509 bnad_get_pauseparam(struct net_device *netdev, in bnad_get_pauseparam() argument
512 struct bnad *bnad = netdev_priv(netdev); in bnad_get_pauseparam()
520 bnad_set_pauseparam(struct net_device *netdev, in bnad_set_pauseparam() argument
523 struct bnad *bnad = netdev_priv(netdev); in bnad_set_pauseparam()
544 bnad_get_strings(struct net_device *netdev, u32 stringset, u8 *string) in bnad_get_strings() argument
546 struct bnad *bnad = netdev_priv(netdev); in bnad_get_strings()
720 bnad_get_stats_count_locked(struct net_device *netdev) in bnad_get_stats_count_locked() argument
722 struct bnad *bnad = netdev_priv(netdev); in bnad_get_stats_count_locked()
849 bnad_get_ethtool_stats(struct net_device *netdev, struct ethtool_stats *stats, in bnad_get_ethtool_stats() argument
852 struct bnad *bnad = netdev_priv(netdev); in bnad_get_ethtool_stats()
860 if (bnad_get_stats_count_locked(netdev) != stats->n_stats) { in bnad_get_ethtool_stats()
880 bnad->stats.drv_stats.netif_queue_stopped = netif_queue_stopped(netdev); in bnad_get_ethtool_stats()
930 bnad_get_sset_count(struct net_device *netdev, int sset) in bnad_get_sset_count() argument
934 return bnad_get_stats_count_locked(netdev); in bnad_get_sset_count()
986 bnad_get_eeprom_len(struct net_device *netdev) in bnad_get_eeprom_len() argument
992 bnad_get_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, in bnad_get_eeprom() argument
995 struct bnad *bnad = netdev_priv(netdev); in bnad_get_eeprom()
1032 bnad_set_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, in bnad_set_eeprom() argument
1035 struct bnad *bnad = netdev_priv(netdev); in bnad_set_eeprom()
1074 bnad_flash_device(struct net_device *netdev, struct ethtool_flash *eflash) in bnad_flash_device() argument
1076 struct bnad *bnad = netdev_priv(netdev); in bnad_flash_device()
1137 bnad_set_ethtool_ops(struct net_device *netdev) in bnad_set_ethtool_ops() argument
1139 netdev->ethtool_ops = &bnad_ethtool_ops; in bnad_set_ethtool_ops()