Searched refs:ts_sess (Results 1 – 12 of 12) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | user_ta.c | 155 struct ts_session *ts_sess __maybe_unused = NULL; in user_ta_enter() 219 ts_sess = ts_pop_current_session(); in user_ta_enter() 220 assert(ts_sess == session); in user_ta_enter() 514 s->ts_sess.ctx = &utc->ta_ctx.ts_ctx; in tee_ta_init_user_ta_session() 515 s->ts_sess.handle_scall = s->ts_sess.ctx->ops->handle_scall; in tee_ta_init_user_ta_session() 528 struct user_ta_ctx *utc = to_user_ta_ctx(s->ts_sess.ctx); in tee_ta_complete_user_ta_session() 535 ts_push_current_session(&s->ts_sess); in tee_ta_complete_user_ta_session() 539 res = ldelf_init_with_ldelf(&s->ts_sess, &utc->uctx); in tee_ta_complete_user_ta_session() 548 s->ts_sess.ctx = NULL; in tee_ta_complete_user_ta_session()
|
| H A D | tee_ta_manager.c | 113 return container_of(sess, struct tee_ta_session, ts_sess); in to_ta_session() 301 struct ts_ctx *ts_ctx = s->ts_sess.ctx; in dump_ftrace() 304 ts_push_current_session(&s->ts_sess); in dump_ftrace() 318 free(s->ts_sess.sbuf); in destroy_session() 400 if (sess->ts_sess.ctx && in check_params() 401 ts_to_ta_ctx(sess->ts_sess.ctx)->flags & TA_FLAG_SECURE_DATA_PATH) in check_params() 489 ts_ctx = sess->ts_sess.ctx; in tee_ta_close_session() 501 ts_ctx->ops->enter_close_session(&sess->ts_sess); in tee_ta_close_session() 571 s->ts_sess.ctx = &ctx->ts_ctx; in tee_ta_init_session_with_context() 572 s->ts_sess.handle_scall = s->ts_sess.ctx->ops->handle_scall; in tee_ta_init_session_with_context() [all …]
|
| H A D | pseudo_ta.c | 327 s->ts_sess.ctx = &ctx->ts_ctx; in tee_ta_init_pseudo_ta_session()
|
| /optee_os/core/arch/arm/include/kernel/ |
| H A D | spmc_sp_handler.h | 28 void spmc_sp_set_to_preempted(struct ts_session *ts_sess); 46 static inline void spmc_sp_set_to_preempted(struct ts_session *ts_sess __unused) in spmc_sp_set_to_preempted()
|
| H A D | secure_partition.h | 30 struct ts_session ts_sess; member 66 return container_of(sess, struct sp_session, ts_sess); in to_sp_session()
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | spmc_sp_handler.c | 174 sp_ctx = to_sp_ctx(owner_sp->ts_sess.ctx); in spmc_sp_add_sp_region() 430 void spmc_sp_set_to_preempted(struct ts_session *ts_sess) in spmc_sp_set_to_preempted() argument 432 if (ts_sess && is_sp_ctx(ts_sess->ctx)) { in spmc_sp_set_to_preempted() 433 struct sp_session *sp_sess = to_sp_session(ts_sess); in spmc_sp_set_to_preempted() 604 struct sp_ctx *ctx = to_sp_ctx(s->ts_sess.ctx); in create_retrieve_response() 805 struct sp_ctx *ctx = to_sp_ctx(s->ts_sess.ctx); in zero_mem_region() 808 ts_push_current_session(&s->ts_sess); in zero_mem_region() 1152 sp_ctx = to_sp_ctx(sp_s->ts_sess.ctx); in handle_mem_perm_get() 1157 ts_push_current_session(&sp_s->ts_sess); in handle_mem_perm_get() 1199 sp_ctx = to_sp_ctx(sp_s->ts_sess.ctx); in handle_mem_perm_set() [all …]
|
| H A D | secure_partition.c | 232 s->ts_sess.ctx = &spc->ts_ctx; in sp_create_ctx() 330 ctx = to_sp_ctx(s->ts_sess.ctx); in sp_map_shared() 369 struct sp_ctx *ctx = to_sp_ctx(s->ts_sess.ctx); in sp_unmap_ffa_regions() 636 ctx = to_sp_ctx(s->ts_sess.ctx); in sp_open_session() 642 ts_push_current_session(&s->ts_sess); in sp_open_session() 649 res = ldelf_init_with_ldelf(&s->ts_sess, &ctx->uctx); in sp_open_session() 652 res = load_binary_sp(&s->ts_sess, &ctx->uctx); in sp_open_session() 1664 ctx = to_sp_ctx(sess->ts_sess.ctx); in sp_first_run() 1665 ts_push_current_session(&sess->ts_sess); in sp_first_run() 1709 ts_push_current_session(&sess->ts_sess); in sp_first_run() [all …]
|
| H A D | stmm_sp.c | 434 sess->ts_sess.ctx = &spc->ta_ctx.ts_ctx; in stmm_init_session() 435 sess->ts_sess.handle_scall = sess->ts_sess.ctx->ops->handle_scall; in stmm_init_session() 442 struct stmm_ctx *spc = to_stmm_ctx(sess->ts_sess.ctx); in stmm_complete_session() 445 ts_push_current_session(&sess->ts_sess); in stmm_complete_session() 450 sess->ts_sess.ctx = NULL; in stmm_complete_session()
|
| H A D | thread.c | 537 struct ts_session *ts_sess = in thread_state_suspend() local 540 spmc_sp_set_to_preempted(ts_sess); in thread_state_suspend()
|
| /optee_os/core/tee/ |
| H A D | tee_obj.c | 67 tee_obj_close(to_user_ta_ctx(sess->ts_sess.ctx), o); in tee_obj_verify()
|
| H A D | tee_svc.c | 866 res = tee_svc_copy_param(sess, &called_sess->ts_sess, usr_param, in syscall_invoke_ta_command()
|
| /optee_os/core/include/kernel/ |
| H A D | tee_ta_manager.h | 83 struct ts_session ts_sess; member
|