/optee_os-3.20.0/lib/libutee/ |
A D | tee_socket_pta.c | 45 memset(params, 0, sizeof(params)); in __tee_socket_pta_open() 51 params[0].value.a = ip_vers; in __tee_socket_pta_open() 57 params[0].value.b = port; in __tee_socket_pta_open() 87 memset(params, 0, sizeof(params)); in __tee_socket_pta_close() 89 params[0].value.a = handle; in __tee_socket_pta_close() 104 memset(params, 0, sizeof(params)); in __tee_socket_pta_send() 106 params[0].value.a = handle; in __tee_socket_pta_send() 113 *len = params[2].value.a; in __tee_socket_pta_send() 128 memset(params, 0, sizeof(params)); in __tee_socket_pta_recv() 130 params[0].value.a = handle; in __tee_socket_pta_recv() [all …]
|
A D | tee_system_pta.c | 29 param_types, params, NULL); in invoke_system_pta() 41 params[0].value.a = len; in tee_map_zi() 42 if (params[0].value.a != len) in tee_map_zi() 59 params[1].value.b); in tee_map_zi() 71 params[0].value.a = len; in tee_unmap() 72 reg_pair_from_64((vaddr_t)buf, ¶ms[1].value.a, ¶ms[1].value.b); in tee_unmap() 97 params[1].value.a = cmd; in tee_invoke_supp_plugin() 98 params[1].value.b = sub_cmd; in tee_invoke_supp_plugin() 100 params[2].memref.size = len; in tee_invoke_supp_plugin() 103 params); in tee_invoke_supp_plugin() [all …]
|
/optee_os-3.20.0/ta/pkcs11/src/ |
A D | entry.c | 29 TEE_Param __unused params[4], in TA_OpenSessionEntryPoint() 60 TEE_Param *out = params + 2; in entry_ping() 118 TEE_Param params[TEE_NUM_PARAMS]) in TA_InvokeCommandEntryPoint() 136 if (params[0].memref.size < sizeof(rc)) in TA_InvokeCommandEntryPoint() 145 params[0].memref.size, params[0].memref.buffer, in TA_InvokeCommandEntryPoint() 157 rc = entry_ping(ptypes, params); in TA_InvokeCommandEntryPoint() 161 rc = entry_ck_slot_list(ptypes, params); in TA_InvokeCommandEntryPoint() 164 rc = entry_ck_slot_info(ptypes, params); in TA_InvokeCommandEntryPoint() 167 rc = entry_ck_token_info(ptypes, params); in TA_InvokeCommandEntryPoint() 199 rc = entry_ck_login(client, ptypes, params); in TA_InvokeCommandEntryPoint() [all …]
|
A D | object.h | 62 uint32_t ptypes, TEE_Param *params); 65 uint32_t ptypes, TEE_Param *params); 68 uint32_t ptypes, TEE_Param *params); 71 uint32_t ptypes, TEE_Param *params); 74 uint32_t ptypes, TEE_Param *params); 77 uint32_t ptypes, TEE_Param *params); 80 uint32_t ptypes, TEE_Param *params); 83 uint32_t ptypes, TEE_Param *params); 86 TEE_Param *params);
|
/optee_os-3.20.0/lib/libutee/arch/arm/gprof/ |
A D | gprof_pta.c | 40 memset(params, 0, sizeof(params)); in __pta_gprof_send() 41 params[0].value.a = *id; in __pta_gprof_send() 43 params[1].memref.size = len; in __pta_gprof_send() 46 *id = params[0].value.a; in __pta_gprof_send() 60 memset(params, 0, sizeof(params)); in __pta_gprof_pc_sampling_start() 63 params[1].value.a = offset; in __pta_gprof_pc_sampling_start() 64 params[1].value.b = scale; in __pta_gprof_pc_sampling_start() 66 params); in __pta_gprof_pc_sampling_start() 79 memset(params, 0, sizeof(params)); in __pta_gprof_pc_sampling_stop() 81 params); in __pta_gprof_pc_sampling_stop() [all …]
|
/optee_os-3.20.0/core/pta/ |
A D | system.c | 107 params[0].memref.size); in system_derive_ta_unique_key() 110 params[1].memref.buffer, in system_derive_ta_unique_key() 111 params[1].memref.size); in system_derive_ta_unique_key() 143 num_bytes = params[0].value.a; in system_map_zi() 144 va = reg_pair_to_64(params[1].value.a, params[1].value.b); in system_map_zi() 146 pad_end = params[2].value.b; in system_map_zi() 159 reg_pair_from_64(va, ¶ms[1].value.a, ¶ms[1].value.b); in system_map_zi() 180 if (params[0].value.b) in system_unmap() 183 va = reg_pair_to_64(params[1].value.a, params[1].value.b); in system_unmap() 224 flags = params[1].value.a; in system_dlopen() [all …]
|
A D | gprof.c | 20 struct thread_param params[3] = { }; in gprof_send_rpc() local 44 *id = (uint32_t)params[0].u.value.a; in gprof_send_rpc() 51 TEE_Param params[TEE_NUM_PARAMS]) in gprof_send() 62 params[1].memref.size, ¶ms[0].value.a); in gprof_send() 67 TEE_Param params[TEE_NUM_PARAMS]) in gprof_start_pc_sampling() 88 len = params[0].memref.size; in gprof_start_pc_sampling() 89 offset = params[1].value.a; in gprof_start_pc_sampling() 90 scale = params[1].value.b; in gprof_start_pc_sampling() 109 TEE_Param params[TEE_NUM_PARAMS]) in gprof_stop_pc_sampling() 131 params[0].value.a = rate; in gprof_stop_pc_sampling() [all …]
|
A D | scmi.c | 46 TEE_Param params[TEE_NUM_PARAMS]) in cmd_process_smt_channel() 76 TEE_Param params[TEE_NUM_PARAMS]) in cmd_process_smt_message() 83 TEE_Param *param1 = params + 1; in cmd_process_smt_message() 114 TEE_Param params[TEE_NUM_PARAMS]) in cmd_process_msg_channel() 122 void *in_buf = params[1].memref.buffer; in cmd_process_msg_channel() 123 size_t in_size = params[1].memref.size; in cmd_process_msg_channel() 124 void *out_buf = params[2].memref.buffer; in cmd_process_msg_channel() 125 size_t out_size = params[2].memref.size; in cmd_process_msg_channel() 143 params[2].memref.size = out_size; in cmd_process_msg_channel() 167 TEE_Param params[TEE_NUM_PARAMS]) in cmd_get_channel_handle() [all …]
|
A D | hwrng.c | 23 TEE_Param params[TEE_NUM_PARAMS]) in rng_get_entropy() 35 e = (uint8_t *)params[0].memref.buffer; in rng_get_entropy() 39 return crypto_rng_read(e, params[0].memref.size); in rng_get_entropy() 43 TEE_Param params[TEE_NUM_PARAMS]) in rng_get_info() 53 params[0].value.a = CFG_HWRNG_RATE; in rng_get_info() 54 params[0].value.b = CFG_HWRNG_QUALITY; in rng_get_info() 61 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() 67 return rng_get_entropy(ptypes, params); in invoke_command() 69 return rng_get_info(ptypes, params); in invoke_command()
|
A D | rtc.c | 31 TEE_Param params[TEE_NUM_PARAMS]) in rtc_pta_get_time() 43 pta_time = params[0].memref.buffer; in rtc_pta_get_time() 57 TEE_Param params[TEE_NUM_PARAMS]) in rtc_pta_set_time() 68 pta_time = params[0].memref.buffer; in rtc_pta_set_time() 84 TEE_Param params[TEE_NUM_PARAMS]) in rtc_pta_set_offset() 96 TEE_Param params[TEE_NUM_PARAMS]) in rtc_pta_get_offset() 114 params[0].value.a = (uint32_t)offset; in rtc_pta_get_offset() 120 TEE_Param params[TEE_NUM_PARAMS]) in rtc_pta_get_info() 134 info = params[0].memref.buffer; in rtc_pta_get_info() 171 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() [all …]
|
A D | apdu.c | 47 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() 64 ret = get_apdu_type(params[0].value.a, &type); in invoke_command() 68 len = params[3].memref.size; in invoke_command() 70 params[1].memref.buffer, in invoke_command() 71 params[1].memref.size, in invoke_command() 72 params[2].memref.buffer, in invoke_command() 73 params[2].memref.size, in invoke_command() 74 params[3].memref.buffer, in invoke_command() 77 params[3].memref.size = len; in invoke_command()
|
/optee_os-3.20.0/core/tee/ |
A D | socket.c | 20 TEE_Param params[TEE_NUM_PARAMS]) in socket_open() 39 params[1].memref.size, &mobj); in socket_open() 43 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_open() 76 params[0].value.a); in socket_close() 101 params[1].memref.size, &mobj); in socket_send() 105 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_send() 137 if (params[1].memref.size) { in socket_recv() 140 params[1].memref.size, &mobj); in socket_recv() 152 if (params[1].memref.size) in socket_recv() 180 params[1].memref.size, &mobj); in socket_ioctl() [all …]
|
A D | tee_supp_plugin_rpc.c | 23 struct thread_param params[THREAD_RPC_MAX_NUM_PARAMS]; in tee_invoke_supp_plugin_rpc() local 59 params[0] = THREAD_PARAM_VALUE(IN, OPTEE_RPC_SUPP_PLUGIN_INVOKE, in tee_invoke_supp_plugin_rpc() 61 params[1] = THREAD_PARAM_VALUE(IN, uuid_words[2], uuid_words[3], cmd); in tee_invoke_supp_plugin_rpc() 62 params[2] = THREAD_PARAM_VALUE(INOUT, sub_cmd, 0, 0); in tee_invoke_supp_plugin_rpc() 63 params[3] = THREAD_PARAM_MEMREF(INOUT, mobj, 0, len); in tee_invoke_supp_plugin_rpc() 65 res = thread_rpc_cmd(OPTEE_RPC_CMD_SUPP_PLUGIN, 4, params); in tee_invoke_supp_plugin_rpc() 68 *outlen = params[2].u.value.b; in tee_invoke_supp_plugin_rpc()
|
/optee_os-3.20.0/core/pta/tests/ |
A D | mutex.c | 23 static TEE_Result mutex_test_writer(TEE_Param params[TEE_NUM_PARAMS]) in mutex_test_writer() 27 params[1].value.a = atomic_inc32(&before_lock_writers); in mutex_test_writer() 33 params[1].value.b = atomic_inc32(&during_lock_writers); in mutex_test_writer() 35 for (n = 0; n < params[0].value.b; n++) { in mutex_test_writer() 52 params[1].value.a = atomic_inc32(&before_lock_readers); in mutex_test_reader() 58 params[1].value.b = atomic_inc32(&during_lock_readers); in mutex_test_reader() 60 for (n = 0; n < params[0].value.b; n++) { in mutex_test_reader() 72 TEE_Param params[TEE_NUM_PARAMS]) in core_mutex_tests() 84 switch (params[0].value.a) { in core_mutex_tests() 86 return mutex_test_writer(params); in core_mutex_tests() [all …]
|
/optee_os-3.20.0/lib/libdl/ |
A D | dlfcn.c | 19 TEE_Param params[TEE_NUM_PARAMS]) in invoke_system_pta() 31 cmd_id, param_types, params, NULL); in invoke_system_pta() 40 TEE_Param params[TEE_NUM_PARAMS] = { }; in dlopen() local 60 params[0].memref.buffer = (void *)&uuid; in dlopen() 61 params[0].memref.size = sizeof(uuid); in dlopen() 62 params[1].value.a = flags; in dlopen() 94 TEE_Param params[TEE_NUM_PARAMS] = { }; in dlsym() local 107 params[0].memref.buffer = &h->uuid; in dlsym() 108 params[0].memref.size = sizeof(h->uuid); in dlsym() 109 params[1].memref.buffer = (void *)symbol; in dlsym() [all …]
|
/optee_os-3.20.0/core/pta/bcm/ |
A D | elog.c | 58 TEE_Param params[TEE_NUM_PARAMS]) in pta_elog_load_nitro_fw() 83 offset = params[1].value.a; in pta_elog_load_nitro_fw() 84 buf = params[0].memref.buffer; in pta_elog_load_nitro_fw() 85 sz = params[0].memref.size; in pta_elog_load_nitro_fw() 116 buf = params[0].memref.buffer; in get_dump_data() 117 sz = params[0].memref.size; in get_dump_data() 130 params[0].memref.size = sz; in get_dump_data() 154 offset = params[1].value.a; in pta_elog_nitro_crash_dump() 178 get_dump_data(src_vaddr, params); in pta_elog_nitro_crash_dump() 185 TEE_Param params[TEE_NUM_PARAMS]) in pta_elog_dump() [all …]
|
A D | wdt.c | 35 TEE_Param params[TEE_NUM_PARAMS]) in pta_wd_config() 48 timeout = params[0].value.a; in pta_wd_config() 78 TEE_Param params[TEE_NUM_PARAMS] __unused) in pta_wd_ping() 114 TEE_Param params[TEE_NUM_PARAMS]) in pta_wd_set_timeout() 127 timeout = params[0].value.a; in pta_wd_set_timeout() 137 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() 145 res = pta_wd_config(param_types, params); in invoke_command() 148 res = pta_wd_start(param_types, params); in invoke_command() 151 res = pta_wd_ping(param_types, params); in invoke_command() 154 res = pta_wd_stop(param_types, params); in invoke_command() [all …]
|
A D | gpio.c | 42 TEE_Param params[TEE_NUM_PARAMS]) in pta_gpio_config() 59 gpio_num = params[0].value.a; in pta_gpio_config() 60 dir = params[0].value.b; in pta_gpio_config() 85 TEE_Param params[TEE_NUM_PARAMS]) in pta_gpio_set() 102 gpio_num = params[0].value.a; in pta_gpio_set() 103 val = !!params[0].value.b; in pta_gpio_set() 132 TEE_Param params[TEE_NUM_PARAMS]) in pta_gpio_get() 147 gpio_num = params[0].value.a; in pta_gpio_get() 167 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() 178 res = pta_gpio_set(param_types, params); in invoke_command() [all …]
|
A D | sotp.c | 38 TEE_Param params[TEE_NUM_PARAMS]) in pta_sotp_read() 51 val = params[0].value.a; in pta_sotp_read() 54 reg_pair_from_64(sotp_row_value, ¶ms[1].value.a, in pta_sotp_read() 55 ¶ms[1].value.b); in pta_sotp_read() 61 TEE_Param params[TEE_NUM_PARAMS] __unused) in pta_sotp_write() 70 TEE_Param params[TEE_NUM_PARAMS]) in invoke_command() 83 res = pta_sotp_read(param_types, params); in invoke_command() 86 res = pta_sotp_write(param_types, params); in invoke_command()
|
A D | bnxt.c | 71 TEE_Param params[TEE_NUM_PARAMS]) in copy_bnxt_crash_dump() 86 d = (uint32_t *)params[0].memref.buffer; in copy_bnxt_crash_dump() 87 offset = params[1].value.a; in copy_bnxt_crash_dump() 88 req_len = params[1].value.b; in copy_bnxt_crash_dump() 90 if (!d || params[0].memref.size < req_len) in copy_bnxt_crash_dump() 101 TEE_Param params[TEE_NUM_PARAMS] __unused) in invoke_command() 115 return get_bnxt_status(param_types, params); in invoke_command() 118 return get_bnxt_handshake_status(param_types, params); in invoke_command() 121 return copy_bnxt_crash_dump(param_types, params); in invoke_command()
|
/optee_os-3.20.0/ta/trusted_keys/ |
A D | entry.c | 44 if (!params[0].memref.buffer || !params[0].memref.size) in get_random() 52 memcpy(params[0].memref.buffer, rng_buf, params[0].memref.size); in get_random() 79 params[0].memref.buffer = extra; in derive_unique_key() 83 params[1].memref.buffer = key; in derive_unique_key() 84 params[1].memref.size = key_size; in derive_unique_key() 221 in = params[0].memref.buffer; in seal_trusted_key() 222 in_sz = params[0].memref.size; in seal_trusted_key() 223 out = params[1].memref.buffer; in seal_trusted_key() 264 in = params[0].memref.buffer; in unseal_trusted_key() 265 in_sz = params[0].memref.size; in unseal_trusted_key() [all …]
|
/optee_os-3.20.0/ta/avb/ |
A D | entry.c | 121 params[1].value.a = idx >> 32; in read_rb_idx() 122 params[1].value.b = idx; in read_rb_idx() 147 widx = ((uint64_t)params[1].value.a << 32) | params[1].value.b; in write_rb_idx() 208 params[0].value.a = lock_state; in read_lock_state() 230 wlock_state = params[0].value.a; in write_lock_state() 270 name_buf = params[0].memref.buffer; in write_persist_value() 272 value_sz = params[1].memref.size; in write_persist_value() 322 value_sz = params[1].memref.size; in read_persist_value() 348 params[1].memref.size = count; in read_persist_value() 383 return read_rb_idx(pt, params); in TA_InvokeCommandEntryPoint() [all …]
|
/optee_os-3.20.0/lib/libutee/arch/arm/ |
A D | user_ta_entry.c | 185 TEE_Param params[TEE_NUM_PARAMS]) in ta_header_save_params() 189 if (params) in ta_header_save_params() 264 up->vals[n * 2] = params[n].value.a; in to_utee_params() 296 params[n].value.a = a; in from_utee_params() 297 params[n].value.b = b; in from_utee_params() 303 params[n].memref.size = b; in from_utee_params() 320 TEE_Param params[TEE_NUM_PARAMS]; in entry_open_session() local 361 TEE_Param params[TEE_NUM_PARAMS]; in entry_invoke_command() local 371 param_types, params); in entry_invoke_command() 395 params[0].value.a = stats.allocated; in entry_dump_memstats() [all …]
|
/optee_os-3.20.0/core/kernel/ |
A D | tee_time.c | 39 struct thread_param params = in tee_time_wait() local 42 thread_rpc_cmd(OPTEE_RPC_CMD_SUSPEND, 1, ¶ms); in tee_time_wait() 53 struct thread_param params = THREAD_PARAM_VALUE(OUT, 0, 0, 0); in tee_time_get_ree_time() local 59 res = thread_rpc_cmd(OPTEE_RPC_CMD_GET_TIME, 1, ¶ms); in tee_time_get_ree_time() 61 time->seconds = params.u.value.a; in tee_time_get_ree_time() 62 time->millis = params.u.value.b / 1000000; in tee_time_get_ree_time()
|
/optee_os-3.20.0/core/pta/stm32mp/ |
A D | bsec_pta.c | 35 uint32_t *buf = (uint32_t *)params[1].memref.buffer; in bsec_read_mem() 40 size_t size = params[1].memref.size; in bsec_read_mem() 42 unsigned int otp_base_offset = params[0].value.a; in bsec_read_mem() 43 unsigned int bsec_command = params[0].value.b; in bsec_read_mem() 143 size_t size = params[1].memref.size; in bsec_write_mem() 149 unsigned int bsec_command = params[0].value.b; in bsec_write_mem() 258 params[0].value.a = pta_state; in bsec_pta_state() 266 TEE_Param params[TEE_NUM_PARAMS]) in bsec_pta_invoke_command() 273 return bsec_read_mem(param_types, params); in bsec_pta_invoke_command() 275 return bsec_write_mem(param_types, params); in bsec_pta_invoke_command() [all …]
|