| /optee_os/core/tee/ |
| H A D | entry_std.c | 185 uint32_t num_params, in copy_in_params() argument 193 if (num_params > TEE_NUM_PARAMS) in copy_in_params() 198 for (n = 0; n < num_params; n++) { in copy_in_params() 265 struct tee_ta_param *param, uint32_t num_params) in cleanup_shm_refs() argument 269 for (n = 0; n < MIN((unsigned int)TEE_NUM_PARAMS, num_params); n++) { in cleanup_shm_refs() 287 static void copy_out_param(struct tee_ta_param *ta_param, uint32_t num_params, in copy_out_param() argument 292 for (n = 0; n < num_params; n++) { in copy_out_param() 327 static TEE_Result get_open_session_meta(size_t num_params, in get_open_session_meta() argument 335 if (num_params < 2) in get_open_session_meta() 364 static void entry_open_session(struct optee_msg_arg *arg, uint32_t num_params) in entry_open_session() argument [all …]
|
| H A D | tee_fs_rpc.c | 45 return thread_rpc_cmd(op->id, op->num_params, op->params); in operation_commit() 68 .id = id, .num_params = 3, .params = { in operation_open_dfh() 99 .id = id, .num_params = 1, .params = { in tee_fs_rpc_close() 124 .id = id, .num_params = 2, .params = { in tee_fs_rpc_read_init() 163 .id = id, .num_params = 2, .params = { in tee_fs_rpc_write_init() 183 .id = id, .num_params = 1, .params = { in tee_fs_rpc_truncate() 212 .id = id, .num_params = 2, .params = { in tee_fs_rpc_remove_dfh()
|
| H A D | tee_svc_cryp.c | 2323 tee_svc_obj_ed25519_parse_params(const TEE_Attribute *params, size_t num_params, in tee_svc_obj_ed25519_parse_params() argument 2331 for (n = 0; n < num_params; n++) { in tee_svc_obj_ed25519_parse_params() 2373 const TEE_Attribute *params, size_t num_params) in tee_svc_obj_ed25519_sign() argument 2380 err = tee_svc_obj_ed25519_parse_params(params, num_params, &ph_flag, in tee_svc_obj_ed25519_sign() 2398 const TEE_Attribute *params, size_t num_params) in tee_svc_obj_ed25519_verify() argument 2405 err = tee_svc_obj_ed25519_parse_params(params, num_params, &ph_flag, in tee_svc_obj_ed25519_verify() 4392 static int pkcs1_get_salt_len(const TEE_Attribute *params, uint32_t num_params, in pkcs1_get_salt_len() argument 4399 for (n = 0; n < num_params; n++) { in pkcs1_get_salt_len() 4415 size_t num_params, const void *src_data, size_t src_len, in syscall_asymm_operate() argument 4458 if (MUL_OVERFLOW(sizeof(TEE_Attribute), num_params, &alloc_size)) in syscall_asymm_operate() [all …]
|
| /optee_os/core/arch/riscv/kernel/ |
| H A D | thread_optee_abi.c | 101 size_t *num_params, struct optee_msg_arg **arg, in get_msg_arg() argument 115 *num_params = READ_ONCE((*arg)->num_params); in get_msg_arg() 116 if (*num_params > OPTEE_MSG_MAX_NUM_PARAMS) in get_msg_arg() 119 sz = OPTEE_MSG_GET_ARG_SIZE(*num_params); in get_msg_arg() 144 static uint32_t call_entry_std(struct optee_msg_arg *arg, size_t num_params, in call_entry_std() argument 166 if (tee_entry_std(arg, num_params)) in call_entry_std() 188 size_t num_params = 0; in std_entry_with_parg() local 201 num_params = READ_ONCE(arg->num_params); in std_entry_with_parg() 202 if (num_params > OPTEE_MSG_MAX_NUM_PARAMS) in std_entry_with_parg() 205 sz = OPTEE_MSG_GET_ARG_SIZE(num_params); in std_entry_with_parg() [all …]
|
| /optee_os/core/arch/arm/kernel/ |
| H A D | thread_optee_smc.c | 100 size_t *num_params, struct optee_msg_arg **arg, in get_msg_arg() argument 114 *num_params = READ_ONCE((*arg)->num_params); in get_msg_arg() 115 if (*num_params > OPTEE_MSG_MAX_NUM_PARAMS) in get_msg_arg() 118 sz = OPTEE_MSG_GET_ARG_SIZE(*num_params); in get_msg_arg() 143 static uint32_t call_entry_std(struct optee_msg_arg *arg, size_t num_params, in call_entry_std() argument 165 if (tee_entry_std(arg, num_params)) in call_entry_std() 187 size_t num_params = 0; in std_entry_with_parg() local 200 num_params = READ_ONCE(arg->num_params); in std_entry_with_parg() 201 if (num_params > OPTEE_MSG_MAX_NUM_PARAMS) in std_entry_with_parg() 204 sz = OPTEE_MSG_GET_ARG_SIZE(num_params); in std_entry_with_parg() [all …]
|
| H A D | thread_spmc.c | 2042 uint32_t num_params = 0; in yielding_call_with_arg() local 2060 num_params = READ_ONCE(arg->num_params); in yielding_call_with_arg() 2061 if (num_params > OPTEE_MSG_MAX_NUM_PARAMS) in yielding_call_with_arg() 2064 sz = OPTEE_MSG_GET_ARG_SIZE(num_params); in yielding_call_with_arg() 2071 res = tee_entry_std(arg, num_params); in yielding_call_with_arg() 2134 static uint32_t get_rpc_arg(uint32_t cmd, size_t num_params, in get_rpc_arg() argument 2142 if (num_params > THREAD_RPC_MAX_NUM_PARAMS) in get_rpc_arg() 2152 arg->num_params = num_params; in get_rpc_arg() 2155 for (size_t n = 0; n < num_params; n++) { in get_rpc_arg() 2187 static uint32_t get_rpc_arg_res(struct optee_msg_arg *arg, size_t num_params, in get_rpc_arg_res() argument [all …]
|
| /optee_os/core/include/tee/ |
| H A D | entry_std.h | 20 TEE_Result tee_entry_std(struct optee_msg_arg *arg, uint32_t num_params); 21 TEE_Result __tee_entry_std(struct optee_msg_arg *arg, uint32_t num_params);
|
| H A D | tee_svc_cryp.h | 78 size_t num_params, const void *src_data, 82 size_t num_params, const void *data, size_t data_len,
|
| H A D | tee_fs_rpc.h | 22 size_t num_params; member
|
| /optee_os/core/include/ |
| H A D | optee_msg.h | 218 uint32_t num_params; member 232 #define OPTEE_MSG_GET_ARG_SIZE(num_params) \ argument 234 sizeof(struct optee_msg_param) * (num_params))
|
| /optee_os/core/arch/arm/plat-stm/ |
| H A D | main.c | 51 TEE_Result tee_entry_std(struct optee_msg_arg *arg, uint32_t num_params) in tee_entry_std() argument 55 return __tee_entry_std(arg, num_params); in tee_entry_std()
|
| /optee_os/lib/libutee/include/ |
| H A D | utee_syscalls.h | 154 unsigned long num_params, const void *src_data, 160 unsigned long num_params, const void *data,
|
| /optee_os/core/include/kernel/ |
| H A D | thread.h | 346 uint32_t thread_rpc_cmd(uint32_t cmd, size_t num_params,
|