Lines Matching defs:dev
2512 static inline int xfrm_fill_dst(struct xfrm_dst *xdst, struct net_device *dev,
2522 err = afinfo->fill_dst(xdst, dev, fl);
2545 struct net_device *dev;
2639 dev = dst->dev;
2640 if (!dev)
2648 err = xfrm_fill_dst(xdst_prev, dev, fl);
2892 struct net_device *dev;
2927 dev = dst->dev;
2928 if (!dev)
2931 err = xfrm_fill_dst(xdst, dev, fl);
3165 if ((!dst_orig->dev || !(dst_orig->dev->flags & IFF_LOOPBACK)) &&
3302 if (skb_dst(skb) && skb_dst(skb)->dev)
3303 oif = skb_dst(skb)->dev->ifindex;
3420 if (skb_dst(skb) && skb_dst(skb)->dev)
3421 oif = skb_dst(skb)->dev->ifindex;
3556 struct net *net = dev_net(skb->dev);
3733 struct net *net = dev_net(skb->dev);
3795 void xfrm_dst_ifdown(struct dst_entry *dst, struct net_device *dev)
3797 while ((dst = xfrm_dst_child(dst)) && dst->xfrm && dst->dev == dev) {
3798 dst->dev = dev_net(dev)->loopback_dev;
3799 dev_hold(dst->dev);
3800 dev_put(dev);
3852 (dst->dev && !netif_running(dst->dev)))