Home
last modified time | relevance | path

Searched refs:spc (Results 1 – 3 of 3) sorted by relevance

/optee_os/core/arch/arm/kernel/
H A Dstmm_sp.c94 struct stmm_ctx *spc = NULL; in stmm_alloc_ctx() local
96 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 …]
H A Dsecure_partition.c224 struct sp_ctx *spc = NULL; in sp_create_ctx() local
227 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()
H A Dthread.c992 struct sp_ctx *spc = to_sp_ctx(s->ctx); in thread_get_pauth_keys() local
994 return &spc->uctx.keys; in thread_get_pauth_keys()