Lines Matching refs:dev
16 static int ag71xx_ethtool_get_settings(struct net_device *dev,
19 struct ag71xx *ag = netdev_priv(dev);
28 static int ag71xx_ethtool_set_settings(struct net_device *dev,
31 struct ag71xx *ag = netdev_priv(dev);
40 static void ag71xx_ethtool_get_drvinfo(struct net_device *dev,
43 struct ag71xx *ag = netdev_priv(dev);
45 strcpy(info->driver, ag->pdev->dev.driver->name);
47 strcpy(info->bus_info, dev_name(&ag->pdev->dev));
50 static u32 ag71xx_ethtool_get_msglevel(struct net_device *dev)
52 struct ag71xx *ag = netdev_priv(dev);
57 static void ag71xx_ethtool_set_msglevel(struct net_device *dev, u32 msg_level)
59 struct ag71xx *ag = netdev_priv(dev);
64 static void ag71xx_ethtool_get_ringparam(struct net_device *dev,
67 struct ag71xx *ag = netdev_priv(dev);
83 static int ag71xx_ethtool_set_ringparam(struct net_device *dev,
86 struct ag71xx *ag = netdev_priv(dev);
103 if (netif_running(dev)) {
104 err = dev->netdev_ops->ndo_stop(dev);
115 if (netif_running(dev))
116 err = dev->netdev_ops->ndo_open(dev);