Lines Matching refs:encap
253 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_register_mode()
263 if (modemap[mode->encap]) in xfrm_register_mode()
271 modemap[mode->encap] = mode; in xfrm_register_mode()
287 if (unlikely(mode->encap >= XFRM_MODE_MAX)) in xfrm_unregister_mode()
297 if (likely(modemap[mode->encap] == mode)) { in xfrm_unregister_mode()
298 modemap[mode->encap] = NULL; in xfrm_unregister_mode()
309 static struct xfrm_mode *xfrm_get_mode(unsigned int encap, int family) in xfrm_get_mode() argument
315 if (unlikely(encap >= XFRM_MODE_MAX)) in xfrm_get_mode()
323 mode = afinfo->mode_map[encap]; in xfrm_get_mode()
328 request_module("xfrm-mode-%d-%d", family, encap); in xfrm_get_mode()
349 kfree(x->encap); in xfrm_state_gc_destroy()
1164 if (orig->encap) { in xfrm_state_clone()
1165 x->encap = kmemdup(orig->encap, sizeof(*x->encap), GFP_KERNEL); in xfrm_state_clone()
1166 if (!x->encap) in xfrm_state_clone()
1326 if (x->encap && x1->encap) in xfrm_state_update()
1327 memcpy(x1->encap, x->encap, sizeof(*x1->encap)); in xfrm_state_update()