Home
last modified time | relevance | path

Searched refs:utc (Results 1 – 14 of 14) sorted by relevance

/optee_os-3.20.0/core/kernel/
A Duser_ta.c168 utc->uctx.entry_func, utc->uctx.is_32bit, in user_ta_enter()
174 if (utc->ta_ctx.panicked) { in user_ta_enter()
358 vm_info_final(&utc->uctx); in free_utc()
363 tee_obj_close_all(utc); in free_utc()
366 free(utc); in free_utc()
430 if (!utc) in tee_ta_init_user_ta_session()
435 TAILQ_INIT(&utc->objects); in tee_ta_init_user_ta_session()
438 utc->ta_ctx.ref_count = 1; 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()
453 crypto_rng_read(&utc->uctx.keys, sizeof(utc->uctx.keys)); in tee_ta_init_user_ta_session()
[all …]
A Dtee_ta_manager.c337 struct user_ta_ctx *utc = NULL; in destroy_ta_ctx_from_session() local
371 utc = to_user_ta_ctx(&ctx->ts_ctx); in destroy_ta_ctx_from_session()
373 TAILQ_FOREACH(sess, &utc->open_sessions, link) { in destroy_ta_ctx_from_session()
1063 struct user_ta_ctx *utc = NULL; in tee_ta_gprof_sample_pc() local
1074 utc = to_user_ta_ctx(s->ctx); in tee_ta_gprof_sample_pc()
1075 res = vm_check_access_rights(&utc->uctx, in tee_ta_gprof_sample_pc()
/optee_os-3.20.0/core/tee/
A Dtee_obj.c16 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_add() argument
18 TAILQ_INSERT_TAIL(&utc->objects, o, link); in tee_obj_add()
21 TEE_Result tee_obj_get(struct user_ta_ctx *utc, vaddr_t obj_id, in tee_obj_get() argument
26 TAILQ_FOREACH(o, &utc->objects, link) { in tee_obj_get()
35 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o) in tee_obj_close() argument
37 TAILQ_REMOVE(&utc->objects, o, link); in tee_obj_close()
47 void tee_obj_close_all(struct user_ta_ctx *utc) in tee_obj_close_all() argument
49 struct tee_obj_head *objects = &utc->objects; in tee_obj_close_all()
52 tee_obj_close(utc, TAILQ_FIRST(objects)); in tee_obj_close_all()
A Dtee_svc_storage.c49 TAILQ_FOREACH(e, &utc->storage_enums, link) { in tee_svc_storage_get_enum()
61 if (e == NULL || utc == NULL) in tee_svc_close_enum()
64 TAILQ_REMOVE(&utc->storage_enums, e, link); in tee_svc_close_enum()
219 tee_obj_add(utc, o); in syscall_storage_obj_open()
237 tee_obj_close(utc, o); in syscall_storage_obj_open()
397 tee_obj_add(utc, o); in syscall_storage_obj_create()
407 tee_obj_close(utc, o); in syscall_storage_obj_create()
450 tee_obj_close(utc, o); in syscall_storage_obj_del()
548 res = tee_svc_storage_get_enum(utc, in syscall_storage_free_enum()
553 return tee_svc_close_enum(utc, e); in syscall_storage_free_enum()
[all …]
A Dtee_svc.c602 if (vm_check_access_rights(&utc->uctx, flags, a, b)) in utee_param_to_param()
662 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in tee_svc_copy_param() local
682 res = vm_check_access_rights(&utc->uctx, flags, in tee_svc_copy_param()
687 res = utee_param_to_param(utc, param, callee_params); in tee_svc_copy_param()
723 res = vm_buf_to_mboj_offs(&utc->uctx, va, s, in tee_svc_copy_param()
855 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_open_ta_session() local
887 vm_set_ctx(&utc->ta_ctx.ts_ctx); in syscall_open_ta_session()
910 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_close_ta_session() local
914 s = tee_ta_find_session(ta_sess, &utc->open_sessions); in syscall_close_ta_session()
927 struct user_ta_ctx *utc = to_user_ta_ctx(sess->ctx); in syscall_invoke_ta_command() local
[all …]
A Dtee_svc_cryp.c1640 res = vm_check_access_rights(&utc->uctx, in copy_in_attrs()
2453 tee_obj_close(utc, o); in cryp_state_free()
2455 tee_obj_close(utc, o); in cryp_state_free()
2716 cryp_state_free(utc, cs); in syscall_cryp_state_alloc()
2990 res = vm_check_access_rights(&utc->uctx, in syscall_cipher_init()
2997 res = tee_obj_get(utc, cs->key1, &o); in syscall_cipher_init()
3394 res = tee_obj_get(utc, cs->key1, &ko); in syscall_cryp_derive_key()
3609 res = tee_obj_get(utc, cs->key2, &ko2); in syscall_cryp_derive_key()
4045 res = vm_check_access_rights(&utc->uctx, in syscall_asymm_operate()
4074 res = tee_obj_get(utc, cs->key1, &o); in syscall_asymm_operate()
[all …]
/optee_os-3.20.0/core/arch/arm/tee/
A Dsvc_cache.c15 struct user_ta_ctx *utc = NULL; in syscall_cache_operation() local
21 utc = to_user_ta_ctx(s->ctx); in syscall_cache_operation()
27 if (vm_buf_intersects_um_private(&utc->uctx, va, len)) in syscall_cache_operation()
30 res = vm_check_access_rights(&utc->uctx, in syscall_cache_operation()
A Darch_svc.c359 struct user_ta_ctx *utc = to_user_ta_ctx(s->ctx); in save_panic_stack() local
365 if (vm_check_access_rights(&utc->uctx, in save_panic_stack()
428 struct user_ta_ctx *utc = to_user_ta_ctx(s->ctx); in save_panic_stack() local
430 if (vm_check_access_rights(&utc->uctx, in save_panic_stack()
434 utc->uctx.is_32bit ? in save_panic_stack()
447 if (utc->uctx.is_32bit) in save_panic_stack()
/optee_os-3.20.0/core/include/tee/
A Dtee_obj.h27 void tee_obj_add(struct user_ta_ctx *utc, struct tee_obj *o);
29 TEE_Result tee_obj_get(struct user_ta_ctx *utc, vaddr_t obj_id,
32 void tee_obj_close(struct user_ta_ctx *utc, struct tee_obj *o);
34 void tee_obj_close_all(struct user_ta_ctx *utc);
A Dtee_svc_storage.h60 void tee_svc_storage_close_all_enum(struct user_ta_ctx *utc);
A Dtee_svc_cryp.h38 void tee_svc_cryp_free_states(struct user_ta_ctx *utc);
/optee_os-3.20.0/core/mm/
A Dmobj.c471 struct user_ta_ctx *utc; member
489 if (&m->utc->ta_ctx.ts_ctx != thread_get_tsd()->ctx) in mobj_seccpy_shm_get_va()
509 tee_pager_rem_um_region(&m->utc->uctx, m->va, mobj->size); in mobj_seccpy_shm_free()
510 vm_rem_rwmem(&m->utc->uctx, mobj, m->va); in mobj_seccpy_shm_free()
541 struct user_ta_ctx *utc; in mobj_seccpy_shm_alloc() local
546 utc = to_user_ta_ctx(tsd->ctx); in mobj_seccpy_shm_alloc()
556 if (vm_add_rwmem(&utc->uctx, &m->mobj, &va) != TEE_SUCCESS) in mobj_seccpy_shm_alloc()
561 if (tee_pager_add_um_region(&utc->uctx, va, m->fobj, in mobj_seccpy_shm_alloc()
566 m->utc = to_user_ta_ctx(tsd->ctx); in mobj_seccpy_shm_alloc()
570 vm_rem_rwmem(&utc->uctx, &m->mobj, va); in mobj_seccpy_shm_alloc()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dsecure_partition.c1081 struct sp_ctx *utc = to_sp_ctx(ctx); in sp_dump_state() local
1083 if (utc->uctx.dump_entry_func) { in sp_dump_state()
1084 TEE_Result res = ldelf_dump_state(&utc->uctx); in sp_dump_state()
1090 user_mode_ctx_print_mappings(&utc->uctx); in sp_dump_state()
A Dthread.c988 struct user_ta_ctx *utc = to_user_ta_ctx(s->ctx); in thread_get_pauth_keys() local
990 return &utc->uctx.keys; in thread_get_pauth_keys()

Completed in 26 milliseconds