Lines Matching refs:dev

115 static void gfar_gstrings(struct net_device *dev, u32 stringset, u8 * buf)  in gfar_gstrings()  argument
117 struct gfar_private *priv = netdev_priv(dev); in gfar_gstrings()
130 static void gfar_fill_stats(struct net_device *dev, struct ethtool_stats *dummy, in gfar_fill_stats() argument
134 struct gfar_private *priv = netdev_priv(dev); in gfar_fill_stats()
149 static int gfar_sset_count(struct net_device *dev, int sset) in gfar_sset_count() argument
151 struct gfar_private *priv = netdev_priv(dev); in gfar_sset_count()
165 static void gfar_gdrvinfo(struct net_device *dev, in gfar_gdrvinfo() argument
172 static int gfar_reglen(struct net_device *dev) in gfar_reglen() argument
178 static void gfar_get_regs(struct net_device *dev, struct ethtool_regs *regs, in gfar_get_regs() argument
182 struct gfar_private *priv = netdev_priv(dev); in gfar_get_regs()
247 static int gfar_gcoalesce(struct net_device *dev, in gfar_gcoalesce() argument
252 struct gfar_private *priv = netdev_priv(dev); in gfar_gcoalesce()
263 if (!dev->phydev) in gfar_gcoalesce()
286 static int gfar_scoalesce(struct net_device *dev, in gfar_scoalesce() argument
291 struct gfar_private *priv = netdev_priv(dev); in gfar_scoalesce()
297 if (!dev->phydev) in gfar_scoalesce()
302 netdev_info(dev, "Coalescing is limited to %d microseconds\n", in gfar_scoalesce()
308 netdev_info(dev, "Coalescing is limited to %d frames\n", in gfar_scoalesce()
315 netdev_info(dev, "Coalescing is limited to %d microseconds\n", in gfar_scoalesce()
321 netdev_info(dev, "Coalescing is limited to %d frames\n", in gfar_scoalesce()
361 if (dev->flags & IFF_UP) { in gfar_scoalesce()
362 stop_gfar(dev); in gfar_scoalesce()
363 err = startup_gfar(dev); in gfar_scoalesce()
376 static void gfar_gringparam(struct net_device *dev, in gfar_gringparam() argument
381 struct gfar_private *priv = netdev_priv(dev); in gfar_gringparam()
405 static int gfar_sringparam(struct net_device *dev, in gfar_sringparam() argument
410 struct gfar_private *priv = netdev_priv(dev); in gfar_sringparam()
417 netdev_err(dev, "Ring sizes must be a power of 2\n"); in gfar_sringparam()
425 netdev_err(dev, "Ring sizes must be a power of 2\n"); in gfar_sringparam()
432 if (dev->flags & IFF_UP) in gfar_sringparam()
433 stop_gfar(dev); in gfar_sringparam()
443 if (dev->flags & IFF_UP) in gfar_sringparam()
444 err = startup_gfar(dev); in gfar_sringparam()
451 static void gfar_gpauseparam(struct net_device *dev, in gfar_gpauseparam() argument
454 struct gfar_private *priv = netdev_priv(dev); in gfar_gpauseparam()
461 static int gfar_spauseparam(struct net_device *dev, in gfar_spauseparam() argument
464 struct gfar_private *priv = netdev_priv(dev); in gfar_spauseparam()
465 struct phy_device *phydev = dev->phydev; in gfar_spauseparam()
510 int gfar_set_features(struct net_device *dev, netdev_features_t features) in gfar_set_features() argument
512 netdev_features_t changed = dev->features ^ features; in gfar_set_features()
513 struct gfar_private *priv = netdev_priv(dev); in gfar_set_features()
523 dev->features = features; in gfar_set_features()
525 if (dev->flags & IFF_UP) { in gfar_set_features()
527 stop_gfar(dev); in gfar_set_features()
528 err = startup_gfar(dev); in gfar_set_features()
538 static uint32_t gfar_get_msglevel(struct net_device *dev) in gfar_get_msglevel() argument
540 struct gfar_private *priv = netdev_priv(dev); in gfar_get_msglevel()
545 static void gfar_set_msglevel(struct net_device *dev, uint32_t data) in gfar_set_msglevel() argument
547 struct gfar_private *priv = netdev_priv(dev); in gfar_set_msglevel()
553 static void gfar_get_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in gfar_get_wol() argument
555 struct gfar_private *priv = netdev_priv(dev); in gfar_get_wol()
573 static int gfar_set_wol(struct net_device *dev, struct ethtool_wolinfo *wol) in gfar_set_wol() argument
575 struct gfar_private *priv = netdev_priv(dev); in gfar_set_wol()
595 err = device_set_wakeup_enable(priv->dev, wol_opts); in gfar_set_wol()
1388 static int gfar_set_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd) in gfar_set_nfc() argument
1390 struct gfar_private *priv = netdev_priv(dev); in gfar_set_nfc()
1423 static int gfar_get_nfc(struct net_device *dev, struct ethtool_rxnfc *cmd, in gfar_get_nfc() argument
1426 struct gfar_private *priv = netdev_priv(dev); in gfar_get_nfc()
1450 static int gfar_get_ts_info(struct net_device *dev, in gfar_get_ts_info() argument
1453 struct gfar_private *priv = netdev_priv(dev); in gfar_get_ts_info()