Home
last modified time | relevance | path

Searched refs:xtr (Results 1 – 2 of 2) sorted by relevance

/net/xfrm/
Dxfrm_user.c978 struct xfrm_translator *xtr; in dump_one_state() local
997 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() local
1114 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 …]
Dxfrm_state.c2311 struct xfrm_translator *xtr; in xfrm_get_translator() local
2314 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() argument
2327 module_put(xtr->owner); in xfrm_put_translator()
2331 int xfrm_register_translator(struct xfrm_translator *xtr) in xfrm_register_translator() argument
2339 rcu_assign_pointer(xfrm_translator, xtr); in xfrm_register_translator()
[all …]