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()
476 struct net_device *ndev; in j1939_sk_bind() local
478 ndev = dev_get_by_index(net, addr->can_ifindex); in j1939_sk_bind()
479 if (!ndev) { in j1939_sk_bind()
484 can_ml = can_get_ml_priv(ndev); in j1939_sk_bind()
486 dev_put(ndev); in j1939_sk_bind()
491 if (!(ndev->flags & IFF_UP)) { in j1939_sk_bind()
492 dev_put(ndev); in j1939_sk_bind()
497 priv = j1939_netdev_start(ndev); in j1939_sk_bind()
498 dev_put(ndev); in j1939_sk_bind()
868 static struct sk_buff *j1939_sk_alloc_skb(struct net_device *ndev, in j1939_sk_alloc_skb() argument
888 can_skb_prv(skb)->ifindex = ndev->ifindex; in j1939_sk_alloc_skb()
896 skb->dev = ndev; in j1939_sk_alloc_skb()
1013 netdev_err(priv->ndev, "Unknown errqueue type %i\n", type); in j1939_sk_errqueue()
1020 netdev_dbg(session->priv->ndev, "%s: 0x%p tskey: %i, state: %s\n", in j1939_sk_errqueue()
1065 skb = j1939_sk_alloc_skb(priv->ndev, sk, msg, segment_size, in j1939_sk_send_loop()
1108 netdev_warn(priv->ndev, in j1939_sk_send_loop()