Lines Matching full:xtr
2590 struct xfrm_translator *xtr; in xfrm_get_translator() local
2593 xtr = rcu_dereference(xfrm_translator); in xfrm_get_translator()
2594 if (unlikely(!xtr)) in xfrm_get_translator()
2596 if (!try_module_get(xtr->owner)) in xfrm_get_translator()
2597 xtr = NULL; in xfrm_get_translator()
2600 return xtr; in xfrm_get_translator()
2604 void xfrm_put_translator(struct xfrm_translator *xtr) in xfrm_put_translator() argument
2606 module_put(xtr->owner); in xfrm_put_translator()
2610 int xfrm_register_translator(struct xfrm_translator *xtr) in xfrm_register_translator() argument
2618 rcu_assign_pointer(xfrm_translator, xtr); in xfrm_register_translator()
2625 int xfrm_unregister_translator(struct xfrm_translator *xtr) in xfrm_unregister_translator() argument
2631 if (rcu_access_pointer(xfrm_translator) != xtr) in xfrm_unregister_translator()
2666 struct xfrm_translator *xtr = xfrm_get_translator(); in xfrm_user_policy() local
2668 if (!xtr) { in xfrm_user_policy()
2673 err = xtr->xlate_user_policy_sockptr(&data, optlen); in xfrm_user_policy()
2674 xfrm_put_translator(xtr); in xfrm_user_policy()