Lines Matching defs:idev

128 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
130 void addrconf_add_linklocal(struct inet6_dev *idev,
238 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
240 void ipv6_mc_up(struct inet6_dev *idev);
241 void ipv6_mc_down(struct inet6_dev *idev);
242 void ipv6_mc_unmap(struct inet6_dev *idev);
243 void ipv6_mc_remap(struct inet6_dev *idev);
244 void ipv6_mc_init_dev(struct inet6_dev *idev);
245 void ipv6_mc_destroy_dev(struct inet6_dev *idev);
252 void ipv6_mc_dad_complete(struct inet6_dev *idev);
292 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr);
293 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
294 void ipv6_ac_destroy_dev(struct inet6_dev *idev);
366 struct inet6_dev *idev;
369 idev = rcu_dereference(dev->ip6_ptr);
370 if (idev)
371 refcount_inc(&idev->refcnt);
373 return idev;
378 struct inet6_dev *idev = __in6_dev_get(dev);
380 return idev ? idev->nd_parms : NULL;
383 void in6_dev_finish_destroy(struct inet6_dev *idev);
385 static inline void in6_dev_put(struct inet6_dev *idev)
387 if (refcount_dec_and_test(&idev->refcnt))
388 in6_dev_finish_destroy(idev);
393 struct inet6_dev *idev = *pidev;
395 if (idev) {
396 in6_dev_put(idev);
401 static inline void __in6_dev_put(struct inet6_dev *idev)
403 refcount_dec(&idev->refcnt);
406 static inline void in6_dev_hold(struct inet6_dev *idev)
408 refcount_inc(&idev->refcnt);
414 const struct inet6_dev *idev = __in6_dev_get(dev);
416 if (unlikely(!idev))
419 return !!idev->cnf.ignore_routes_with_linkdown;