Searched refs:xtr (Results 1 – 2 of 2) sorted by relevance
978 struct xfrm_translator *xtr; in dump_one_state() local997 xtr = xfrm_get_translator(); in dump_one_state()998 if (xtr) { in dump_one_state()999 err = xtr->alloc_compat(skb, nlh); in dump_one_state()1001 xfrm_put_translator(xtr); in dump_one_state()1107 struct xfrm_translator *xtr; in xfrm_nlmsg_multicast() local1114 xtr = xfrm_get_translator(); in xfrm_nlmsg_multicast()1115 if (xtr) { in xfrm_nlmsg_multicast()1116 int err = xtr->alloc_compat(skb, nlmsg_hdr(skb)); in xfrm_nlmsg_multicast()1118 xfrm_put_translator(xtr); in xfrm_nlmsg_multicast()[all …]
2311 struct xfrm_translator *xtr; in xfrm_get_translator() local2314 xtr = rcu_dereference(xfrm_translator); in xfrm_get_translator()2315 if (unlikely(!xtr)) in xfrm_get_translator()2317 if (!try_module_get(xtr->owner)) in xfrm_get_translator()2318 xtr = NULL; in xfrm_get_translator()2321 return xtr; in xfrm_get_translator()2325 void xfrm_put_translator(struct xfrm_translator *xtr) in xfrm_put_translator() argument2327 module_put(xtr->owner); in xfrm_put_translator()2331 int xfrm_register_translator(struct xfrm_translator *xtr) in xfrm_register_translator() argument2339 rcu_assign_pointer(xfrm_translator, xtr); in xfrm_register_translator()[all …]