Searched refs:spc (Results 1 – 3 of 3) sorted by relevance
94 struct stmm_ctx *spc = NULL; in stmm_alloc_ctx() local96 spc = calloc(1, sizeof(*spc)); in stmm_alloc_ctx()97 if (!spc) in stmm_alloc_ctx()100 spc->ta_ctx.ts_ctx.ops = &stmm_sp_ops; in stmm_alloc_ctx()101 spc->ta_ctx.ts_ctx.uuid = *uuid; in stmm_alloc_ctx()102 spc->ta_ctx.flags = TA_FLAG_SINGLE_INSTANCE | in stmm_alloc_ctx()105 res = vm_info_init(&spc->uctx, &spc->ta_ctx.ts_ctx); in stmm_alloc_ctx()107 free(spc); in stmm_alloc_ctx()111 spc->ta_ctx.ref_count = 1; in stmm_alloc_ctx()112 condvar_init(&spc->ta_ctx.busy_cv); in stmm_alloc_ctx()[all …]
224 struct sp_ctx *spc = NULL; in sp_create_ctx() local227 spc = calloc(1, sizeof(struct sp_ctx)); in sp_create_ctx()228 if (!spc) in sp_create_ctx()231 spc->open_session = s; in sp_create_ctx()232 s->ts_sess.ctx = &spc->ts_ctx; in sp_create_ctx()233 spc->ts_ctx.uuid = *bin_uuid; in sp_create_ctx()235 res = vm_info_init(&spc->uctx, &spc->ts_ctx); in sp_create_ctx()239 set_sp_ctx_ops(&spc->ts_ctx); in sp_create_ctx()242 crypto_rng_read(&spc->uctx.keys, sizeof(spc->uctx.keys)); in sp_create_ctx()248 free(spc); in sp_create_ctx()
992 struct sp_ctx *spc = to_sp_ctx(s->ctx); in thread_get_pauth_keys() local994 return &spc->uctx.keys; in thread_get_pauth_keys()