Home
last modified time | relevance | path

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

12

/optee_os/core/kernel/
A Dtee_ta_manager.c311 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 Duser_ta.c237 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 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()
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 Dpgt_cache.h22 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 Dts_manager.h14 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 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 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 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 Duser_mode_ctx_struct.h37 struct ts_ctx *ts_ctx; member
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()
/optee_os/core/arch/arm/include/kernel/
A Dsecure_partition.h51 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 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()
A Dthread.h255 struct ts_ctx *ctx;
/optee_os/core/arch/arm/kernel/
A Dsecure_partition.c49 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 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()
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 Dldelf_loader.c81 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 Dpgt_cache.c280 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 Dtee_pager.c680 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 Dvm.c154 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 Dmobj.c473 if (&m->utc->ta_ctx.ts_ctx != thread_get_tsd()->ctx) in mobj_seccpy_shm_get_va()
/optee_os/core/include/mm/
A Dvm.h100 void vm_set_ctx(struct ts_ctx *ctx);
/optee_os/core/pta/
A Dsystem.c103 memcpy(data, &uctx->ts_ctx->uuid, sizeof(TEE_UUID)); in system_derive_ta_unique_key()
/optee_os/core/tee/
A Dtee_svc.c832 vm_set_ctx(&utc->ta_ctx.ts_ctx); in syscall_open_ta_session()

Completed in 58 milliseconds

12