Lines Matching refs:uctx

439 	struct xfrm_user_sec_ctx *uctx = NULL;  in pfkey_sadb2xfrm_user_sec_ctx()  local
442 uctx = kmalloc((sizeof(*uctx)+ctx_size), gfp); in pfkey_sadb2xfrm_user_sec_ctx()
444 if (!uctx) in pfkey_sadb2xfrm_user_sec_ctx()
447 uctx->len = pfkey_sec_ctx_len(sec_ctx); in pfkey_sadb2xfrm_user_sec_ctx()
448 uctx->exttype = sec_ctx->sadb_x_sec_exttype; in pfkey_sadb2xfrm_user_sec_ctx()
449 uctx->ctx_doi = sec_ctx->sadb_x_ctx_doi; in pfkey_sadb2xfrm_user_sec_ctx()
450 uctx->ctx_alg = sec_ctx->sadb_x_ctx_alg; in pfkey_sadb2xfrm_user_sec_ctx()
451 uctx->ctx_len = sec_ctx->sadb_x_ctx_len; in pfkey_sadb2xfrm_user_sec_ctx()
452 memcpy(uctx + 1, sec_ctx + 1, in pfkey_sadb2xfrm_user_sec_ctx()
453 uctx->ctx_len); in pfkey_sadb2xfrm_user_sec_ctx()
455 return uctx; in pfkey_sadb2xfrm_user_sec_ctx()
1126 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); in pfkey_msg2xfrm_state() local
1128 if (!uctx) in pfkey_msg2xfrm_state()
1131 err = security_xfrm_state_alloc(x, uctx); in pfkey_msg2xfrm_state()
1132 kfree(uctx); in pfkey_msg2xfrm_state()
2243 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); in pfkey_spdadd() local
2245 if (!uctx) { in pfkey_spdadd()
2250 err = security_xfrm_policy_alloc(&xp->security, uctx, GFP_KERNEL); in pfkey_spdadd()
2251 kfree(uctx); in pfkey_spdadd()
2345 struct xfrm_user_sec_ctx *uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_KERNEL); in pfkey_spddelete() local
2347 if (!uctx) in pfkey_spddelete()
2350 err = security_xfrm_policy_alloc(&pol_ctx, uctx, GFP_KERNEL); in pfkey_spddelete()
2351 kfree(uctx); in pfkey_spddelete()
3248 struct xfrm_user_sec_ctx *uctx; in pfkey_compile_policy() local
3259 uctx = pfkey_sadb2xfrm_user_sec_ctx(sec_ctx, GFP_ATOMIC); in pfkey_compile_policy()
3260 *dir = security_xfrm_policy_alloc(&xp->security, uctx, GFP_ATOMIC); in pfkey_compile_policy()
3261 kfree(uctx); in pfkey_compile_policy()