Lines Matching refs:ndev
138 netdev_dbg(priv->ndev, "%s: err: %i\n", __func__, err); in j1939_sk_queue_drop_all()
182 netdev_warn_once(first->priv->ndev, in j1939_sk_queue_activate_next_locked()
477 struct net_device *ndev; in j1939_sk_bind() local
479 ndev = dev_get_by_index(net, addr->can_ifindex); in j1939_sk_bind()
480 if (!ndev) { in j1939_sk_bind()
485 can_ml = can_get_ml_priv(ndev); in j1939_sk_bind()
487 dev_put(ndev); in j1939_sk_bind()
492 if (!(ndev->flags & IFF_UP)) { in j1939_sk_bind()
493 dev_put(ndev); in j1939_sk_bind()
498 priv = j1939_netdev_start(ndev); in j1939_sk_bind()
499 dev_put(ndev); in j1939_sk_bind()
870 static struct sk_buff *j1939_sk_alloc_skb(struct net_device *ndev, in j1939_sk_alloc_skb() argument
890 can_skb_prv(skb)->ifindex = ndev->ifindex; in j1939_sk_alloc_skb()
898 skb->dev = ndev; in j1939_sk_alloc_skb()
1022 netdev_err(priv->ndev, "Unknown errqueue type %i\n", type); in __j1939_sk_errqueue()
1078 netdev_dbg(session->priv->ndev, "%s: 0x%p tskey: %i, state: %s\n", in __j1939_sk_errqueue()
1144 skb = j1939_sk_alloc_skb(priv->ndev, sk, msg, segment_size, in j1939_sk_send_loop()
1187 netdev_warn(priv->ndev, in j1939_sk_send_loop()