Lines Matching full:xtr
2613 struct xfrm_translator *xtr; in xfrm_get_translator() local
2616 xtr = rcu_dereference(xfrm_translator); in xfrm_get_translator()
2617 if (unlikely(!xtr)) in xfrm_get_translator()
2619 if (!try_module_get(xtr->owner)) in xfrm_get_translator()
2620 xtr = NULL; in xfrm_get_translator()
2623 return xtr; in xfrm_get_translator()
2627 void xfrm_put_translator(struct xfrm_translator *xtr) in xfrm_put_translator() argument
2629 module_put(xtr->owner); in xfrm_put_translator()
2633 int xfrm_register_translator(struct xfrm_translator *xtr) in xfrm_register_translator() argument
2641 rcu_assign_pointer(xfrm_translator, xtr); in xfrm_register_translator()
2648 int xfrm_unregister_translator(struct xfrm_translator *xtr) in xfrm_unregister_translator() argument
2654 if (rcu_access_pointer(xfrm_translator) != xtr) in xfrm_unregister_translator()
2689 struct xfrm_translator *xtr = xfrm_get_translator(); in xfrm_user_policy() local
2691 if (!xtr) { in xfrm_user_policy()
2696 err = xtr->xlate_user_policy_sockptr(&data, optlen); in xfrm_user_policy()
2697 xfrm_put_translator(xtr); in xfrm_user_policy()