Lines Matching refs:xfrm_state_afinfo
193 static struct xfrm_state_afinfo __rcu *xfrm_state_afinfo[NPROTO]; variable
205 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_register_type()
251 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_unregister_type()
295 struct xfrm_state_afinfo *afinfo; in xfrm_get_type()
351 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_register_type_offload()
376 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_unregister_type_offload()
398 struct xfrm_state_afinfo *afinfo; in xfrm_get_type_offload()
2502 int xfrm_state_register_afinfo(struct xfrm_state_afinfo *afinfo) in xfrm_state_register_afinfo()
2510 if (unlikely(xfrm_state_afinfo[afinfo->family] != NULL)) in xfrm_state_register_afinfo()
2513 rcu_assign_pointer(xfrm_state_afinfo[afinfo->family], afinfo); in xfrm_state_register_afinfo()
2519 int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo) in xfrm_state_unregister_afinfo()
2527 if (likely(xfrm_state_afinfo[afinfo->family] != NULL)) { in xfrm_state_unregister_afinfo()
2528 if (rcu_access_pointer(xfrm_state_afinfo[family]) != afinfo) in xfrm_state_unregister_afinfo()
2531 RCU_INIT_POINTER(xfrm_state_afinfo[afinfo->family], NULL); in xfrm_state_unregister_afinfo()
2539 struct xfrm_state_afinfo *xfrm_state_afinfo_get_rcu(unsigned int family) in xfrm_state_afinfo_get_rcu()
2544 return rcu_dereference(xfrm_state_afinfo[family]); in xfrm_state_afinfo_get_rcu()
2548 struct xfrm_state_afinfo *xfrm_state_get_afinfo(unsigned int family) in xfrm_state_get_afinfo()
2550 struct xfrm_state_afinfo *afinfo; in xfrm_state_get_afinfo()
2554 afinfo = rcu_dereference(xfrm_state_afinfo[family]); in xfrm_state_get_afinfo()