/optee_os/core/kernel/ |
A D | tee_ta_manager.c | 311 pgt_flush_ctx(&ctx->ts_ctx); in destroy_context() 312 ctx->ts_ctx.ops->destroy(&ctx->ts_ctx); in destroy_context() 321 struct ts_ctx *ts_ctx = s->ts_sess.ctx; in destroy_ta_ctx_from_session() local 366 ctx = ts_to_ta_ctx(ts_ctx); in destroy_ta_ctx_from_session() 509 struct ts_ctx *ts_ctx = NULL; in tee_ta_close_session() local 534 if (!ts_ctx) { in tee_ta_close_session() 712 struct ts_ctx *ts_ctx = NULL; in tee_ta_open_session() local 725 ts_ctx = s->ts_sess.ctx; in tee_ta_open_session() 726 if (ts_ctx) in tee_ta_open_session() 780 struct ts_ctx *ts_ctx = NULL; in tee_ta_invoke_command() local [all …]
|
A D | user_ta.c | 237 static void user_ta_dump_state(struct ts_ctx *ctx) in user_ta_dump_state() 260 static void user_ta_dump_ftrace(struct ts_ctx *ctx) in user_ta_dump_ftrace() 363 static void user_ta_ctx_destroy(struct ts_ctx *ctx) in user_ta_ctx_destroy() 368 static uint32_t user_ta_get_instance_id(struct ts_ctx *ctx) in user_ta_get_instance_id() 395 ctx->ts_ctx.ops = &user_ta_ops; in set_ta_ctx_ops() 398 bool is_user_ta_ctx(struct ts_ctx *ctx) in is_user_ta_ctx() 432 utc->uctx.ts_ctx = &utc->ta_ctx.ts_ctx; in tee_ta_init_user_ta_session() 440 utc->ta_ctx.ts_ctx.uuid = *uuid; in tee_ta_init_user_ta_session() 446 s->ts_sess.ctx = &utc->ta_ctx.ts_ctx; in tee_ta_init_user_ta_session() 485 pgt_flush_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() 392 vm_set_ctx(uctx->ts_ctx); in ldelf_syscall_map_bin() 413 vm_set_ctx(uctx->ts_ctx); in ldelf_syscall_map_bin()
|
/optee_os/core/arch/arm/include/mm/ |
A D | pgt_cache.h | 22 struct ts_ctx; 28 struct ts_ctx *ctx; 60 void pgt_alloc(struct pgt_cache *pgt_cache, struct ts_ctx *owning_ctx, 64 void pgt_clear_ctx_range(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, 67 void pgt_flush_ctx_range(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, 71 struct ts_ctx *ctx __unused, in pgt_flush_ctx_range() 81 void pgt_flush_ctx(struct ts_ctx *ctx); 101 static inline void pgt_flush_ctx(struct ts_ctx *ctx __unused) in pgt_flush_ctx()
|
/optee_os/core/include/kernel/ |
A D | ts_manager.h | 14 struct ts_ctx { struct 22 struct ts_ctx *ctx; /* Generic TS context */ argument 46 void (*dump_state)(struct ts_ctx *ctx); 47 void (*dump_ftrace)(struct ts_ctx *ctx); 48 void (*destroy)(struct ts_ctx *ctx); 49 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 | 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 | 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 | user_mode_ctx_struct.h | 37 struct ts_ctx *ts_ctx; member
|
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()
|
/optee_os/core/arch/arm/include/kernel/ |
A D | secure_partition.h | 51 struct ts_ctx ts_ctx; member 55 bool is_sp_ctx(struct ts_ctx *ctx); 57 static inline bool is_sp_ctx(struct ts_ctx *ctx __unused) in is_sp_ctx() 70 static inline struct sp_ctx *to_sp_ctx(struct ts_ctx *ctx) in to_sp_ctx() 73 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()
|
A D | thread.h | 255 struct ts_ctx *ctx;
|
/optee_os/core/arch/arm/kernel/ |
A D | secure_partition.c | 49 bool is_sp_ctx(struct ts_ctx *ctx) in is_sp_ctx() 54 static void set_sp_ctx_ops(struct ts_ctx *ctx) in set_sp_ctx_ops() 176 spc->uctx.ts_ctx = &spc->ts_ctx; in sp_create_ctx() 178 s->ts_sess.ctx = &spc->ts_ctx; in sp_create_ctx() 179 spc->ts_ctx.uuid = *uuid; in sp_create_ctx() 185 set_sp_ctx_ops(&spc->ts_ctx); in sp_create_ctx()
|
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() 92 spc->uctx.ts_ctx = &spc->ta_ctx.ts_ctx; in stmm_alloc_ctx() 256 vm_set_ctx(&spc->ta_ctx.ts_ctx); in load_stmm() 333 sess->ts_sess.ctx = &spc->ta_ctx.ts_ctx; in stmm_init_session() 343 spc->ta_ctx.ts_ctx.ops->destroy(&spc->ta_ctx.ts_ctx); in stmm_init_session() 469 static void stmm_dump_state(struct ts_ctx *ctx) in stmm_dump_state() 475 static uint32_t stmm_get_instance_id(struct ts_ctx *ctx) in stmm_get_instance_id() 480 static void stmm_ctx_destroy(struct ts_ctx *ctx) in stmm_ctx_destroy()
|
A D | ldelf_loader.c | 81 vm_set_ctx(uctx->ts_ctx); in ldelf_load_ldelf() 113 arg->uuid = uctx->ts_ctx->uuid; in ldelf_init_with_ldelf() 141 if (is_user_ta_ctx(uctx->ts_ctx)) { in ldelf_init_with_ldelf() 149 to_user_ta_ctx(uctx->ts_ctx)->ta_ctx.flags = arg->flags; in ldelf_init_with_ldelf()
|
/optee_os/core/arch/arm/mm/ |
A D | pgt_cache.c | 280 void pgt_flush_ctx(struct ts_ctx *ctx) in pgt_flush_ctx() 390 void pgt_flush_ctx_range(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_flush_ctx_range() 417 struct ts_ctx *ctx __unused) in pop_from_some_list() 459 void pgt_clear_ctx_range(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_clear_ctx_range() 473 static bool pgt_alloc_unlocked(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_alloc_unlocked() 500 void pgt_alloc(struct pgt_cache *pgt_cache, struct ts_ctx *ctx, in pgt_alloc()
|
A D | tee_pager.c | 680 struct ts_ctx *ctx = thread_get_tsd()->ctx; in find_uta_region() 824 if (uctx->ts_ctx == tsd->ctx) { in tee_pager_add_um_region()
|
/optee_os/core/mm/ |
A D | vm.c | 154 if (uctx->ts_ctx == tsd->ctx) { in alloc_pgt() 174 if (uctx->ts_ctx == tsd->ctx) in rem_um_region() 321 if (thread_get_tsd()->ctx == uctx->ts_ctx) in vm_map_pad() 322 vm_set_ctx(uctx->ts_ctx); in vm_map_pad() 533 assert(thread_get_tsd()->ctx == uctx->ts_ctx); in vm_remap() 561 vm_set_ctx(uctx->ts_ctx); in vm_remap() 615 vm_set_ctx(uctx->ts_ctx); in vm_remap() 635 vm_set_ctx(uctx->ts_ctx); in vm_remap() 704 assert(thread_get_tsd()->ctx == uctx->ts_ctx); in vm_set_prot() 728 vm_set_ctx(uctx->ts_ctx); in vm_set_prot() [all …]
|
A D | mobj.c | 473 if (&m->utc->ta_ctx.ts_ctx != thread_get_tsd()->ctx) in mobj_seccpy_shm_get_va()
|
/optee_os/core/include/mm/ |
A D | vm.h | 100 void vm_set_ctx(struct ts_ctx *ctx);
|
/optee_os/core/pta/ |
A D | system.c | 103 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()
|
/optee_os/core/tee/ |
A D | tee_svc.c | 832 vm_set_ctx(&utc->ta_ctx.ts_ctx); in syscall_open_ta_session()
|