/optee_os-3.20.0/core/include/kernel/ |
A D | ts_manager.h | 14 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 D | user_ta.h | 46 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 D | pseudo_ta.h | 52 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 D | tee_ta_manager.h | 71 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 D | user_mode_ctx.h | 17 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 D | user_mode_ctx_struct.h | 42 struct ts_ctx *ts_ctx; member
|
A D | thread.h | 32 struct ts_ctx *ctx;
|
/optee_os-3.20.0/core/arch/riscv/include/kernel/ |
A D | secure_partition.h | 16 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 D | stmm_sp.h | 20 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 D | tee_ta_manager.c | 329 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 D | user_ta.c | 244 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 D | pseudo_ta.c | 236 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 D | ts_manager.c | 18 struct ts_ctx *ctx = NULL; in update_current_ctx()
|
A D | ldelf_syscalls.c | 325 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 D | secure_partition.h | 53 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 D | stmm_sp.h | 145 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 D | pgt_cache.h | 22 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 D | vm.h | 13 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 D | pgt_cache.c | 608 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 D | stmm_sp.c | 88 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 D | ldelf_loader.c | 82 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 D | secure_partition.c | 88 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 D | vm.c | 123 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 D | mobj.c | 489 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 D | system.c | 103 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()
|