Lines Matching refs:dst

19 	struct dst_entry *dst;  member
28 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
30 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set()
31 if (dst) in dst_cache_per_cpu_dst_set()
32 dst_hold(dst); in dst_cache_per_cpu_dst_set()
35 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set()
41 struct dst_entry *dst; in dst_cache_per_cpu_get() local
43 dst = idst->dst; in dst_cache_per_cpu_get()
44 if (!dst) in dst_cache_per_cpu_get()
48 dst_hold(dst); in dst_cache_per_cpu_get()
51 (dst->obsolete && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get()
53 dst_release(dst); in dst_cache_per_cpu_get()
56 return dst; in dst_cache_per_cpu_get()
75 struct dst_entry *dst; in dst_cache_get_ip4() local
81 dst = dst_cache_per_cpu_get(dst_cache, idst); in dst_cache_get_ip4()
82 if (!dst) in dst_cache_get_ip4()
86 return container_of(dst, struct rtable, dst); in dst_cache_get_ip4()
90 void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip4() argument
99 dst_cache_per_cpu_dst_set(idst, dst, 0); in dst_cache_set_ip4()
105 void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip6() argument
114 dst_cache_per_cpu_dst_set(this_cpu_ptr(dst_cache->cache), dst, in dst_cache_set_ip6()
115 rt6_get_cookie((struct rt6_info *)dst)); in dst_cache_set_ip6()
124 struct dst_entry *dst; in dst_cache_get_ip6() local
130 dst = dst_cache_per_cpu_get(dst_cache, idst); in dst_cache_get_ip6()
131 if (!dst) in dst_cache_get_ip6()
135 return dst; in dst_cache_get_ip6()
160 dst_release(per_cpu_ptr(dst_cache->cache, i)->dst); in dst_cache_destroy()
176 struct dst_entry *dst = idst->dst; in dst_cache_reset_now() local
179 idst->dst = NULL; in dst_cache_reset_now()
180 dst_release(dst); in dst_cache_reset_now()