Lines Matching refs:idev

110 int __ipv6_get_lladdr(struct inet6_dev *idev, struct in6_addr *addr,
118 void addrconf_leave_solict(struct inet6_dev *idev, const struct in6_addr *addr);
120 void addrconf_add_linklocal(struct inet6_dev *idev,
228 int __ipv6_dev_mc_dec(struct inet6_dev *idev, const struct in6_addr *addr);
230 void ipv6_mc_up(struct inet6_dev *idev);
231 void ipv6_mc_down(struct inet6_dev *idev);
232 void ipv6_mc_unmap(struct inet6_dev *idev);
233 void ipv6_mc_remap(struct inet6_dev *idev);
234 void ipv6_mc_init_dev(struct inet6_dev *idev);
235 void ipv6_mc_destroy_dev(struct inet6_dev *idev);
242 void ipv6_mc_dad_complete(struct inet6_dev *idev);
282 int __ipv6_dev_ac_inc(struct inet6_dev *idev, const struct in6_addr *addr);
283 int __ipv6_dev_ac_dec(struct inet6_dev *idev, const struct in6_addr *addr);
284 void ipv6_ac_destroy_dev(struct inet6_dev *idev);
356 struct inet6_dev *idev; in in6_dev_get() local
359 idev = rcu_dereference(dev->ip6_ptr); in in6_dev_get()
360 if (idev) in in6_dev_get()
361 refcount_inc(&idev->refcnt); in in6_dev_get()
363 return idev; in in6_dev_get()
368 struct inet6_dev *idev = __in6_dev_get(dev); in __in6_dev_nd_parms_get_rcu() local
370 return idev ? idev->nd_parms : NULL; in __in6_dev_nd_parms_get_rcu()
373 void in6_dev_finish_destroy(struct inet6_dev *idev);
375 static inline void in6_dev_put(struct inet6_dev *idev) in in6_dev_put() argument
377 if (refcount_dec_and_test(&idev->refcnt)) in in6_dev_put()
378 in6_dev_finish_destroy(idev); in in6_dev_put()
383 struct inet6_dev *idev = *pidev; in in6_dev_put_clear() local
385 if (idev) { in in6_dev_put_clear()
386 in6_dev_put(idev); in in6_dev_put_clear()
391 static inline void __in6_dev_put(struct inet6_dev *idev) in __in6_dev_put() argument
393 refcount_dec(&idev->refcnt); in __in6_dev_put()
396 static inline void in6_dev_hold(struct inet6_dev *idev) in in6_dev_hold() argument
398 refcount_inc(&idev->refcnt); in in6_dev_hold()
404 const struct inet6_dev *idev = __in6_dev_get(dev); in ip6_ignore_linkdown() local
406 return !!idev->cnf.ignore_routes_with_linkdown; in ip6_ignore_linkdown()