Lines Matching defs:ndev
379 static int softing_netdev_open(struct net_device *ndev)
384 ret = open_candev(ndev);
388 ret = softing_startstop(ndev, 1);
390 close_candev(ndev);
395 static int softing_netdev_stop(struct net_device *ndev)
399 netif_stop_queue(ndev);
402 ret = softing_startstop(ndev, 0);
406 static int softing_candev_set_mode(struct net_device *ndev, enum can_mode mode)
413 ret = softing_startstop(ndev, 1);
558 struct net_device *ndev = to_net_dev(dev);
559 struct softing_priv *priv = netdev2softing(ndev);
567 struct net_device *ndev = to_net_dev(dev);
568 struct softing_priv *priv = netdev2softing(ndev);
576 struct net_device *ndev = to_net_dev(dev);
577 struct softing_priv *priv = netdev2softing(ndev);
590 if (netif_running(ndev)) {