Lines Matching refs:ndev
137 netdev_dbg(priv->ndev, "%s: err: %i\n", __func__, err); in j1939_sk_queue_drop_all()
181 netdev_warn_once(first->priv->ndev, in j1939_sk_queue_activate_next_locked()
474 struct net_device *ndev; in j1939_sk_bind() local
476 ndev = dev_get_by_index(net, addr->can_ifindex); in j1939_sk_bind()
477 if (!ndev) { in j1939_sk_bind()
482 if (ndev->type != ARPHRD_CAN) { in j1939_sk_bind()
483 dev_put(ndev); in j1939_sk_bind()
488 if (!ndev->ml_priv) { in j1939_sk_bind()
489 netdev_warn_once(ndev, in j1939_sk_bind()
491 dev_put(ndev); in j1939_sk_bind()
496 if (!(ndev->flags & IFF_UP)) { in j1939_sk_bind()
497 dev_put(ndev); in j1939_sk_bind()
502 priv = j1939_netdev_start(ndev); in j1939_sk_bind()
503 dev_put(ndev); in j1939_sk_bind()
873 static struct sk_buff *j1939_sk_alloc_skb(struct net_device *ndev, in j1939_sk_alloc_skb() argument
893 can_skb_prv(skb)->ifindex = ndev->ifindex; in j1939_sk_alloc_skb()
901 skb->dev = ndev; in j1939_sk_alloc_skb()
1018 netdev_err(priv->ndev, "Unknown errqueue type %i\n", type); in j1939_sk_errqueue()
1025 netdev_dbg(session->priv->ndev, "%s: 0x%p tskey: %i, state: %s\n", in j1939_sk_errqueue()
1070 skb = j1939_sk_alloc_skb(priv->ndev, sk, msg, segment_size, in j1939_sk_send_loop()
1113 netdev_warn(priv->ndev, in j1939_sk_send_loop()