Home
last modified time | relevance | path

Searched refs:param (Results 1 – 16 of 16) sorted by relevance

/optee_os-3.20.0/core/kernel/
A Dpseudo_ta.c56 struct tee_ta_param *param, in copy_in_param() argument
69 tee_param[n].value.a = param->u[n].val.a; in copy_in_param()
70 tee_param[n].value.b = param->u[n].val.b; in copy_in_param()
75 mem = &param->u[n].mem; in copy_in_param()
105 struct tee_ta_param *param) in update_out_param() argument
162 if (ta_sess->param) { in pseudo_ta_enter_open_session()
170 param_types = ta_sess->param->types; in pseudo_ta_enter_open_session()
176 if (ta_sess->param) { in pseudo_ta_enter_open_session()
197 if (ta_sess->param) { in pseudo_ta_enter_invoke_cmd()
204 param_types = ta_sess->param->types; in pseudo_ta_enter_invoke_cmd()
[all …]
A Dtee_ta_manager.c454 struct tee_ta_param *param) in check_params() argument
739 if (!check_params(s, param)) in tee_ta_open_session()
758 s->param = param; in tee_ta_open_session()
769 s->param = NULL; in tee_ta_open_session()
794 struct tee_ta_param *param) in tee_ta_invoke_command() argument
803 if (!check_params(sess, param)) in tee_ta_invoke_command()
823 sess->param = param; in tee_ta_invoke_command()
827 sess->param = NULL; in tee_ta_invoke_command()
863 s->param = param; in dump_ta_memstats()
866 s->param = NULL; in dump_ta_memstats()
[all …]
A Duser_ta.c147 if (ta_sess->param) { in user_ta_enter()
149 res = vm_map_param(&utc->uctx, ta_sess->param, param_va); in user_ta_enter()
161 if (ta_sess->param) in user_ta_enter()
162 init_utee_param(usr_params, ta_sess->param, param_va); in user_ta_enter()
187 if (ta_sess->param) { in user_ta_enter()
189 update_from_utee_param(ta_sess->param, usr_params); in user_ta_enter()
/optee_os-3.20.0/core/tee/
A Dtee_svc.c657 struct tee_ta_param *param, in tee_svc_copy_param() argument
676 memset(param, 0, sizeof(*param)); in tee_svc_copy_param()
708 s = param->u[n].mem.size; in tee_svc_copy_param()
724 &param->u[n].mem.mobj, in tee_svc_copy_param()
725 &param->u[n].mem.offs); in tee_svc_copy_param()
755 param->u[n].mem.size); in tee_svc_copy_param()
794 struct tee_ta_param *param, in tee_svc_update_out_param() argument
813 sz = param->u[n].mem.size; in tee_svc_update_out_param()
836 vals[n * 2] = param->u[n].val.a; in tee_svc_update_out_param()
901 free_wipe(param); in syscall_open_ta_session()
[all …]
A Dentry_std.c253 struct tee_ta_param *param, uint32_t num_params) in cleanup_shm_refs() argument
267 mobj_put(param->u[n].mem.mobj); in cleanup_shm_refs()
359 struct tee_ta_param param; in entry_open_session() local
369 &param, saved_attr); in entry_open_session()
374 &clnt_id, TEE_TIMEOUT_INFINITE, &param); in entry_open_session()
389 cleanup_shm_refs(saved_attr, &param, num_params - num_meta); in entry_open_session()
425 struct tee_ta_param param = { 0 }; in entry_invoke_command() local
430 res = copy_in_params(arg->params, num_params, &param, saved_attr); in entry_invoke_command()
441 TEE_TIMEOUT_INFINITE, arg->func, &param); in entry_invoke_command()
447 copy_out_param(&param, num_params, arg->params, saved_attr); in entry_invoke_command()
[all …]
/optee_os-3.20.0/core/arch/arm/kernel/
A Dthread_optee_smc.c419 static bool set_rmem(struct optee_msg_param *param, in set_rmem() argument
422 param->attr = tpm->attr - THREAD_PARAM_ATTR_MEMREF_IN + in set_rmem()
424 param->u.rmem.offs = tpm->u.memref.offs; in set_rmem()
425 param->u.rmem.size = tpm->u.memref.size; in set_rmem()
428 if (!param->u.rmem.shm_ref) in set_rmem()
431 param->u.rmem.shm_ref = 0; in set_rmem()
437 static bool set_tmem(struct optee_msg_param *param, in set_tmem() argument
444 param->attr = tpm->attr - THREAD_PARAM_ATTR_MEMREF_IN + in set_tmem()
454 param->u.tmem.size = tpm->u.memref.size; in set_tmem()
455 param->u.tmem.buf_ptr = pa; in set_tmem()
[all …]
A Dthread_spmc.c1091 param->attr = tpm->attr - THREAD_PARAM_ATTR_MEMREF_IN + in set_fmem()
1094 param->u.fmem.offs_low = offs; in set_fmem()
1095 param->u.fmem.offs_high = offs >> 32; in set_fmem()
1096 if (param->u.fmem.offs_high != offs >> 32) in set_fmem()
1099 param->u.fmem.size = tpm->u.memref.size; in set_fmem()
1106 param->u.fmem.global_id = cookie; in set_fmem()
1108 param->u.fmem.global_id = OPTEE_MSG_FMEM_INVALID_GLOBAL_ID; in set_fmem()
1217 struct thread_param param = THREAD_PARAM_VALUE(IN, bt, cookie, 0); in thread_rpc_free() local
1223 res = get_rpc_arg(OPTEE_RPC_CMD_SHM_FREE, 1, &param, NULL); in thread_rpc_free()
1241 struct thread_param param = THREAD_PARAM_VALUE(IN, bt, size, align); in thread_rpc_alloc() local
[all …]
A Dstmm_sp.c376 if (ta_sess->param->types != exp_pt) in stmm_enter_open_session()
405 if (ta_sess->param->types != exp_pt) in stmm_enter_invoke_cmd()
408 mem = &ta_sess->param->u[0].mem; in stmm_enter_invoke_cmd()
459 ta_sess->param->u[1].val.a = spc->regs.x[4]; in stmm_enter_invoke_cmd()
462 ta_sess->param->u[1].val.a = spc->regs.r4; in stmm_enter_invoke_cmd()
/optee_os-3.20.0/core/include/kernel/
A Dtee_ta_manager.h84 struct tee_ta_param *param; member
108 struct tee_ta_param *param);
114 struct tee_ta_param *param);
/optee_os-3.20.0/core/pta/
A Dscmi.c29 TEE_Param param[TEE_NUM_PARAMS]) in cmd_capabilities()
39 param[0].value.a = supported_caps(); in cmd_capabilities()
40 param[0].value.b = 0; in cmd_capabilities()
/optee_os-3.20.0/ta/pkcs11/src/
A Dprocessing_symm.c425 struct input_data_ref *param = NULL; in tee_init_derive_symm() local
431 param = TEE_Malloc(sizeof(struct input_data_ref), TEE_MALLOC_FILL_ZERO); in tee_init_derive_symm()
432 if (!param) in tee_init_derive_symm()
447 rc = serialargs_get(&args, &param->size, sizeof(uint32_t)); in tee_init_derive_symm()
451 rc = serialargs_get_ptr(&args, &param->data, param->size); in tee_init_derive_symm()
460 processing->extra_ctx = param; in tee_init_derive_symm()
464 if (param->size % TEE_AES_BLOCK_SIZE) { in tee_init_derive_symm()
471 if (param->size % TEE_AES_BLOCK_SIZE) { in tee_init_derive_symm()
486 TEE_Free(param); in tee_init_derive_symm()
/optee_os-3.20.0/core/
A Dcore.mk49 --param asan-stack=1 --param asan-globals=1 \
50 --param asan-instrumentation-with-call-threshold=0
/optee_os-3.20.0/core/mm/
A Dvm.c979 TEE_Result vm_map_param(struct user_mode_ctx *uctx, struct tee_ta_param *param, in vm_map_param() argument
989 uint32_t param_type = TEE_PARAM_TYPE_GET(param->types, n); in vm_map_param()
996 phys_offs = mobj_get_phys_offs(param->u[n].mem.mobj, in vm_map_param()
998 mem[n].mobj = param->u[n].mem.mobj; in vm_map_param()
999 mem[n].offs = ROUNDDOWN(phys_offs + param->u[n].mem.offs, in vm_map_param()
1001 mem[n].size = ROUNDUP(phys_offs + param->u[n].mem.offs - in vm_map_param()
1002 mem[n].offs + param->u[n].mem.size, in vm_map_param()
1056 uint32_t param_type = TEE_PARAM_TYPE_GET(param->types, n); in vm_map_param()
1062 if (!param->u[n].mem.mobj) in vm_map_param()
1065 res = param_mem_to_user_va(uctx, &param->u[n].mem, in vm_map_param()
/optee_os-3.20.0/core/include/mm/
A Dvm.h61 TEE_Result vm_map_param(struct user_mode_ctx *uctx, struct tee_ta_param *param,
/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Ddhm.c101 static int dhm_check_range( const mbedtls_mpi *param, const mbedtls_mpi *P ) in dhm_check_range() argument
110 if( mbedtls_mpi_cmp_int( param, 2 ) < 0 || in dhm_check_range()
111 mbedtls_mpi_cmp_mpi( param, &U ) > 0 ) in dhm_check_range()
/optee_os-3.20.0/core/arch/arm/dts/
A Dfsl-lx2160a.dtsi366 arm,psci-suspend-param = <0x0>;

Completed in 28 milliseconds