Lines Matching refs:idev

151 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
153 void addrconf_add_linklocal(struct inet6_dev *idev,
263 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
265 void ipv6_mc_up(struct inet6_dev *idev);
266 void ipv6_mc_down(struct inet6_dev *idev);
267 void ipv6_mc_unmap(struct inet6_dev *idev);
268 void ipv6_mc_remap(struct inet6_dev *idev);
269 void ipv6_mc_init_dev(struct inet6_dev *idev);
270 void ipv6_mc_destroy_dev(struct inet6_dev *idev);
277 void ipv6_mc_dad_complete(struct inet6_dev *idev);
317 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr);
318 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
319 void ipv6_ac_destroy_dev(struct inet6_dev *idev);
404 struct inet6_dev *idev; in in6_dev_get() local
407 idev = rcu_dereference(dev->ip6_ptr); in in6_dev_get()
408 if (idev && !refcount_inc_not_zero(&idev->refcnt)) in in6_dev_get()
409 idev = NULL; in in6_dev_get()
411 return idev; in in6_dev_get()
416 struct inet6_dev *idev = __in6_dev_get(dev); in __in6_dev_nd_parms_get_rcu() local
418 return idev ? idev->nd_parms : NULL; in __in6_dev_nd_parms_get_rcu()
421 void in6_dev_finish_destroy(struct inet6_dev *idev);
423 static inline void in6_dev_put(struct inet6_dev *idev) in in6_dev_put() argument
425 if (refcount_dec_and_test(&idev->refcnt)) in in6_dev_put()
426 in6_dev_finish_destroy(idev); in in6_dev_put()
431 struct inet6_dev *idev = *pidev; in in6_dev_put_clear() local
433 if (idev) { in in6_dev_put_clear()
434 in6_dev_put(idev); in in6_dev_put_clear()
439 static inline void __in6_dev_put(struct inet6_dev *idev) in __in6_dev_put() argument
441 refcount_dec(&idev->refcnt); in __in6_dev_put()
444 static inline void in6_dev_hold(struct inet6_dev *idev) in in6_dev_hold() argument
446 refcount_inc(&idev->refcnt); in in6_dev_hold()
449 static inline bool in6_dev_hold_safe(struct inet6_dev *idev) in in6_dev_hold_safe() argument
451 return refcount_inc_not_zero(&idev->refcnt); in in6_dev_hold_safe()
457 const struct inet6_dev *idev = __in6_dev_get(dev); in ip6_ignore_linkdown() local
459 if (unlikely(!idev)) in ip6_ignore_linkdown()
462 return !!READ_ONCE(idev->cnf.ignore_routes_with_linkdown); in ip6_ignore_linkdown()