Lines Matching defs:idev
154 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
156 void addrconf_add_linklocal(struct inet6_dev *idev,
266 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
268 void ipv6_mc_up(struct inet6_dev *idev);
269 void ipv6_mc_down(struct inet6_dev *idev);
270 void ipv6_mc_unmap(struct inet6_dev *idev);
271 void ipv6_mc_remap(struct inet6_dev *idev);
272 void ipv6_mc_init_dev(struct inet6_dev *idev);
273 void ipv6_mc_destroy_dev(struct inet6_dev *idev);
280 void ipv6_mc_dad_complete(struct inet6_dev *idev);
320 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr);
321 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
322 void ipv6_ac_destroy_dev(struct inet6_dev *idev);
407 struct inet6_dev *idev;
410 idev = rcu_dereference(dev->ip6_ptr);
411 if (idev && !refcount_inc_not_zero(&idev->refcnt))
412 idev = NULL;
414 return idev;
419 struct inet6_dev *idev = __in6_dev_get(dev);
421 return idev ? idev->nd_parms : NULL;
424 void in6_dev_finish_destroy(struct inet6_dev *idev);
426 static inline void in6_dev_put(struct inet6_dev *idev)
428 if (refcount_dec_and_test(&idev->refcnt))
429 in6_dev_finish_destroy(idev);
434 struct inet6_dev *idev = *pidev;
436 if (idev) {
437 in6_dev_put(idev);
442 static inline void __in6_dev_put(struct inet6_dev *idev)
444 refcount_dec(&idev->refcnt);
447 static inline void in6_dev_hold(struct inet6_dev *idev)
449 refcount_inc(&idev->refcnt);
452 static inline bool in6_dev_hold_safe(struct inet6_dev *idev)
454 return refcount_inc_not_zero(&idev->refcnt);
460 const struct inet6_dev *idev = __in6_dev_get(dev);
462 if (unlikely(!idev))
465 return !!READ_ONCE(idev->cnf.ignore_routes_with_linkdown);