Home
last modified time | relevance | path

Searched refs:ts_ctx (Results 1 – 25 of 27) sorted by relevance

12

/optee_os-3.20.0/core/include/kernel/
A Dts_manager.h14 struct ts_ctx { struct
22 struct ts_ctx *ctx; /* Generic TS context */ argument
49 void (*dump_state)(struct ts_ctx *ctx);
50 void (*dump_ftrace)(struct ts_ctx *ctx);
51 void (*destroy)(struct ts_ctx *ctx);
52 uint32_t (*get_instance_id)(struct ts_ctx *ctx);
A Duser_ta.h46 bool is_user_ta_ctx(struct ts_ctx *ctx);
48 static inline bool is_user_ta_ctx(struct ts_ctx *ctx __unused) in is_user_ta_ctx()
54 static inline struct user_ta_ctx *to_user_ta_ctx(struct ts_ctx *ctx) in to_user_ta_ctx()
57 return container_of(ctx, struct user_ta_ctx, ta_ctx.ts_ctx); in to_user_ta_ctx()
A Dpseudo_ta.h52 bool is_pseudo_ta_ctx(struct ts_ctx *ctx);
54 static inline struct pseudo_ta_ctx *to_pseudo_ta_ctx(struct ts_ctx *ctx) in to_pseudo_ta_ctx()
57 return container_of(ctx, struct pseudo_ta_ctx, ctx.ts_ctx); in to_pseudo_ta_ctx()
A Dtee_ta_manager.h71 struct ts_ctx ts_ctx; member
160 bool is_ta_ctx(struct ts_ctx *ctx);
164 static inline struct tee_ta_ctx *to_ta_ctx(struct ts_ctx *ctx) in to_ta_ctx()
167 return container_of(ctx, struct tee_ta_ctx, ts_ctx); in to_ta_ctx()
A Duser_mode_ctx.h17 static inline bool is_user_mode_ctx(struct ts_ctx *ctx) in is_user_mode_ctx()
22 static inline struct user_mode_ctx *to_user_mode_ctx(struct ts_ctx *ctx) in to_user_mode_ctx()
A Duser_mode_ctx_struct.h42 struct ts_ctx *ts_ctx; member
A Dthread.h32 struct ts_ctx *ctx;
/optee_os-3.20.0/core/arch/riscv/include/kernel/
A Dsecure_partition.h16 struct ts_ctx ts_ctx; member
19 static inline bool is_sp_ctx(struct ts_ctx *ctx __unused) in is_sp_ctx()
31 static inline struct sp_ctx *to_sp_ctx(struct ts_ctx *ctx __unused) in to_sp_ctx()
A Dstmm_sp.h20 static inline bool is_stmm_ctx(struct ts_ctx *ctx __unused) in is_stmm_ctx()
25 static inline struct stmm_ctx *to_stmm_ctx(struct ts_ctx *ctx __unused) in to_stmm_ctx()
/optee_os-3.20.0/core/kernel/
A Dtee_ta_manager.c329 ctx->ts_ctx.ops->destroy(&ctx->ts_ctx); in destroy_context()
338 struct ts_ctx *ts_ctx = s->ts_sess.ctx; in destroy_ta_ctx_from_session() local
526 struct ts_ctx *ts_ctx = NULL; in tee_ta_close_session() local
551 if (!ts_ctx) { in tee_ta_close_session()
729 struct ts_ctx *ts_ctx = NULL; in tee_ta_open_session() local
742 ts_ctx = s->ts_sess.ctx; in tee_ta_open_session()
743 if (ts_ctx) in tee_ta_open_session()
797 struct ts_ctx *ts_ctx = NULL; in tee_ta_invoke_command() local
807 if (!ts_ctx) { in tee_ta_invoke_command()
851 struct ts_ctx *ts_ctx = NULL; in dump_ta_memstats() local
[all …]
A Duser_ta.c244 static void user_ta_dump_state(struct ts_ctx *ctx) in user_ta_dump_state()
267 static void user_ta_dump_ftrace(struct ts_ctx *ctx) in user_ta_dump_ftrace()
369 static void user_ta_ctx_destroy(struct ts_ctx *ctx) in user_ta_ctx_destroy()
374 static uint32_t user_ta_get_instance_id(struct ts_ctx *ctx) in user_ta_get_instance_id()
404 ctx->ts_ctx.ops = &user_ta_ops; in set_ta_ctx_ops()
407 bool is_user_ta_ctx(struct ts_ctx *ctx) in is_user_ta_ctx()
446 utc->ta_ctx.ts_ctx.uuid = *uuid; in tee_ta_init_user_ta_session()
447 res = vm_info_init(&utc->uctx, &utc->ta_ctx.ts_ctx); in tee_ta_init_user_ta_session()
457 s->ts_sess.ctx = &utc->ta_ctx.ts_ctx; in tee_ta_init_user_ta_session()
A Dpseudo_ta.c236 static void pseudo_ta_destroy(struct ts_ctx *ctx) in pseudo_ta_destroy()
248 bool is_pseudo_ta_ctx(struct ts_ctx *ctx) in is_pseudo_ta_ctx()
318 ctx->ts_ctx.uuid = ta->uuid; in tee_ta_init_pseudo_ta_session()
319 ctx->ts_ctx.ops = &pseudo_ta_ops; in tee_ta_init_pseudo_ta_session()
322 s->ts_sess.ctx = &ctx->ts_ctx; in tee_ta_init_pseudo_ta_session()
326 DMSG("%s : %pUl", stc->pseudo_ta->name, (void *)&ctx->ts_ctx.uuid); in tee_ta_init_pseudo_ta_session()
A Dts_manager.c18 struct ts_ctx *ctx = NULL; in update_current_ctx()
A Dldelf_syscalls.c325 vm_set_ctx(uctx->ts_ctx); in ldelf_syscall_map_bin()
393 vm_set_ctx(uctx->ts_ctx); in ldelf_syscall_map_bin()
414 vm_set_ctx(uctx->ts_ctx); in ldelf_syscall_map_bin()
/optee_os-3.20.0/core/arch/arm/include/kernel/
A Dsecure_partition.h53 struct ts_ctx ts_ctx; member
62 bool is_sp_ctx(struct ts_ctx *ctx);
64 static inline bool is_sp_ctx(struct ts_ctx *ctx __unused) in is_sp_ctx()
77 static inline struct sp_ctx *to_sp_ctx(struct ts_ctx *ctx) in to_sp_ctx()
80 return container_of(ctx, struct sp_ctx, ts_ctx); in to_sp_ctx()
A Dstmm_sp.h145 static inline bool is_stmm_ctx(struct ts_ctx *ctx __maybe_unused) in is_stmm_ctx()
150 static inline struct stmm_ctx *to_stmm_ctx(struct ts_ctx *ctx) in to_stmm_ctx()
153 return container_of(ctx, struct stmm_ctx, ta_ctx.ts_ctx); in to_stmm_ctx()
/optee_os-3.20.0/core/include/mm/
A Dpgt_cache.h22 struct ts_ctx;
28 struct ts_ctx *ctx;
89 struct ts_ctx *ctx __unused) in pgt_pop_from_cache_list()
93 struct pgt *pgt_pop_from_cache_list(vaddr_t vabase, struct ts_ctx *ctx);
A Dvm.h13 TEE_Result vm_info_init(struct user_mode_ctx *uctx, struct ts_ctx *ts_ctx);
104 void vm_set_ctx(struct ts_ctx *ctx);
/optee_os-3.20.0/core/arch/arm/mm/
A Dpgt_cache.c608 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_flush()
717 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_flush_range()
759 struct ts_ctx *ctx = uctx->ts_ctx; in pgt_clear_range()
769 static bool pgt_alloc_unlocked(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_alloc_unlocked()
830 while (!pgt_alloc_unlocked(pgt_cache, uctx->ts_ctx, vm_info)) { in pgt_get_all()
855 struct pgt *pgt_pop_from_cache_list(vaddr_t vabase, struct ts_ctx *ctx) in pgt_pop_from_cache_list()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dstmm_sp.c88 spc->ta_ctx.ts_ctx.ops = &stmm_sp_ops; in stmm_alloc_ctx()
89 spc->ta_ctx.ts_ctx.uuid = *uuid; in stmm_alloc_ctx()
93 res = vm_info_init(&spc->uctx, &spc->ta_ctx.ts_ctx); in stmm_alloc_ctx()
267 vm_set_ctx(&spc->ta_ctx.ts_ctx); in load_stmm()
344 sess->ts_sess.ctx = &spc->ta_ctx.ts_ctx; in stmm_init_session()
354 spc->ta_ctx.ts_ctx.ops->destroy(&spc->ta_ctx.ts_ctx); in stmm_init_session()
480 static void stmm_dump_state(struct ts_ctx *ctx) in stmm_dump_state()
486 static uint32_t stmm_get_instance_id(struct ts_ctx *ctx) in stmm_get_instance_id()
491 static void stmm_ctx_destroy(struct ts_ctx *ctx) in stmm_ctx_destroy()
A Dldelf_loader.c82 vm_set_ctx(uctx->ts_ctx); in ldelf_load_ldelf()
114 arg->uuid = uctx->ts_ctx->uuid; in ldelf_init_with_ldelf()
142 if (is_user_ta_ctx(uctx->ts_ctx)) { in ldelf_init_with_ldelf()
150 to_user_ta_ctx(uctx->ts_ctx)->ta_ctx.flags = arg->flags; in ldelf_init_with_ldelf()
A Dsecure_partition.c88 bool is_sp_ctx(struct ts_ctx *ctx) in is_sp_ctx()
93 static void set_sp_ctx_ops(struct ts_ctx *ctx) in set_sp_ctx_ops()
199 s->ts_sess.ctx = &spc->ts_ctx; in sp_create_ctx()
200 spc->ts_ctx.uuid = *uuid; in sp_create_ctx()
202 res = vm_info_init(&spc->uctx, &spc->ts_ctx); in sp_create_ctx()
206 set_sp_ctx_ops(&spc->ts_ctx); in sp_create_ctx()
1079 static void sp_dump_state(struct ts_ctx *ctx) in sp_dump_state()
/optee_os-3.20.0/core/mm/
A Dvm.c123 if (uctx->ts_ctx == tsd->ctx) { in alloc_pgt()
358 if (thread_get_tsd()->ctx == uctx->ts_ctx) in vm_map_pad()
359 vm_set_ctx(uctx->ts_ctx); in vm_map_pad()
570 assert(thread_get_tsd()->ctx == uctx->ts_ctx); in vm_remap()
598 vm_set_ctx(uctx->ts_ctx); in vm_remap()
659 vm_set_ctx(uctx->ts_ctx); in vm_remap()
683 vm_set_ctx(uctx->ts_ctx); in vm_remap()
752 assert(thread_get_tsd()->ctx == uctx->ts_ctx); in vm_set_prot()
879 TEE_Result vm_info_init(struct user_mode_ctx *uctx, struct ts_ctx *ts_ctx) in vm_info_init() argument
893 uctx->ts_ctx = ts_ctx; in vm_info_init()
[all …]
A Dmobj.c489 if (&m->utc->ta_ctx.ts_ctx != thread_get_tsd()->ctx) in mobj_seccpy_shm_get_va()
/optee_os-3.20.0/core/pta/
A Dsystem.c103 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()

Completed in 34 milliseconds

12