Home
last modified time | relevance | path

Searched refs:memref (Results 1 – 25 of 41) sorted by relevance

12

/optee_os/core/pta/tests/
A Dinvoke.c87 if (p[0].memref.buffer || p[0].memref.size) in test_entry_memref_null()
180 p[0].memref.buffer, p[0].memref.size, in test_entry_params()
181 p[1].memref.buffer, p[1].memref.size, in test_entry_params()
182 p[2].memref.buffer, p[2].memref.size, in test_entry_params()
183 p[3].memref.buffer, p[3].memref.size); in test_entry_params()
254 size_t sz = p[0].memref.size; in test_inject_sdp()
265 if (p[1].memref.size < sz) { in test_inject_sdp()
266 p[1].memref.size = sz; in test_inject_sdp()
297 size_t sz = p[0].memref.size; in test_transform_sdp()
347 if (p[1].memref.size < sz) { in test_dump_sdp()
[all …]
A Daes_perf.c209 if (params[2].memref.size > params[3].memref.size) in core_aes_perf_tests()
212 res = init_ctx(&ctx, algo, mode, key_size_bits, params[2].memref.size); in core_aes_perf_tests()
217 params[2].memref.buffer, params[2].memref.size, in core_aes_perf_tests()
218 params[3].memref.buffer); in core_aes_perf_tests()
/optee_os/core/tee/
A Dsocket.c39 params[1].memref.size, &mobj); in socket_open()
43 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_open()
105 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_send()
137 if (params[1].memref.size) { in socket_recv()
152 if (params[1].memref.size) in socket_recv()
154 MIN(params[1].memref.size, tpm[1].u.memref.size)); in socket_recv()
155 params[1].memref.size = tpm[1].u.memref.size; in socket_recv()
184 memcpy(va, params[1].memref.buffer, params[1].memref.size); in socket_ioctl()
193 if (tpm[1].u.memref.size <= params[1].memref.size) in socket_ioctl()
194 memcpy(params[1].memref.buffer, va, tpm[1].u.memref.size); in socket_ioctl()
[all …]
/optee_os/core/pta/
A Dsystem.c48 entropy_sz = params[0].memref.size; in system_rng_reseed()
91 params[1].memref.size); in system_derive_ta_unique_key()
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()
220 uuid = params[0].memref.buffer; in system_dlopen()
250 uuid = params[0].memref.buffer; in system_dlsym()
254 sym = params[1].memref.buffer; in system_dlsym()
257 maxlen = params[1].memref.size; in system_dlsym()
282 size = params[0].memref.size; in system_get_tpm_event_log()
[all …]
A Dapdu.c68 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()
A Ddevice.c56 if (!params[0].memref.buffer && (params[0].memref.size > 0)) in get_devices()
59 buf = params[0].memref.buffer; in get_devices()
60 blen = params[0].memref.size; in get_devices()
70 params[0].memref.size = pos; in get_devices()
A Dstats.c56 if (p[1].memref.size < size_to_retrieve) { in get_alloc_stats()
57 p[1].memref.size = size_to_retrieve; in get_alloc_stats()
60 p[1].memref.size = size_to_retrieve; in get_alloc_stats()
61 stats = p[1].memref.buffer; in get_alloc_stats()
A Dgprof.c61 return gprof_send_rpc(&s->ctx->uuid, params[1].memref.buffer, in gprof_send()
62 params[1].memref.size, &params[0].value.a); in gprof_send()
87 buf = (uaddr_t)params[0].memref.buffer; in gprof_start_pc_sampling()
88 len = params[0].memref.size; in gprof_start_pc_sampling()
A Dsecstor_ta_mgmt.c152 shdr = shdr_alloc_and_copy(params->memref.buffer, params->memref.size); in bootstrap()
160 res = install_ta(shdr, params->memref.buffer, params->memref.size); in bootstrap()
A Dhwrng.c30 e = (uint8_t *)params[0].memref.buffer; in rng_get_entropy()
34 for (i = 0; i < params[0].memref.size; i++) in rng_get_entropy()
/optee_os/ta/trusted_keys/
A Dentry.c44 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/ta/pkcs11/src/
A Dpkcs11_token.c324 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_slot_info()
341 TEE_MemMove(out->memref.buffer, &info, out->memref.size); in entry_ck_slot_info()
378 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_info()
445 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_mecha_ids()
476 TEE_MemMove(out->memref.buffer, array, out->memref.size); in entry_ck_token_mecha_ids()
501 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_mecha_info()
607 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_open_session()
711 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_close_session()
1542 if (in->memref.size && !in->memref.buffer) in entry_ck_seed_random()
1548 res = seed_rng_pool(in->memref.buffer, in->memref.size); in entry_ck_seed_random()
[all …]
A Dobject.c323 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_create_object()
418 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_destroy_object()
509 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_find_objects_init()
673 out_handles = out->memref.buffer; in entry_find_objects()
675 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_find_objects()
723 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_find_objects_final()
765 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_get_attribute_value()
899 TEE_MemMove(out->memref.buffer, template, out->memref.size); in entry_get_attribute_value()
929 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_get_object_size()
981 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_set_attribute_value()
[all …]
A Dentry.c68 params[0].memref.size != TEE_PARAM0_SIZE_MIN || in entry_ping()
69 out->memref.size != sizeof(ver)) in entry_ping()
72 TEE_MemMove(out->memref.buffer, ver, sizeof(ver)); in entry_ping()
136 if (params[0].memref.size < sizeof(rc)) in TA_InvokeCommandEntryPoint()
145 params[0].memref.size, params[0].memref.buffer, in TA_InvokeCommandEntryPoint()
148 param_is_memref(ptypes, 1) ? params[1].memref.size : 0, in TA_InvokeCommandEntryPoint()
149 param_is_memref(ptypes, 1) ? params[1].memref.buffer : NULL, in TA_InvokeCommandEntryPoint()
152 param_is_memref(ptypes, 2) ? params[2].memref.size : 0, in TA_InvokeCommandEntryPoint()
153 param_is_memref(ptypes, 2) ? params[2].memref.buffer : NULL); in TA_InvokeCommandEntryPoint()
366 TEE_MemMove(params[0].memref.buffer, &rc, sizeof(rc)); in TA_InvokeCommandEntryPoint()
[all …]
A Dprocessing.c220 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_generate_secret()
317 out->memref.size = sizeof(obj_handle); in entry_generate_secret()
409 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_generate_key_pair()
598 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_processing_init()
705 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_processing_step()
827 in_buf = params[1].memref.buffer; in entry_processing_key()
828 in_size = params[1].memref.size; in entry_processing_key()
856 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_processing_key()
1047 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_release_active_processing()
1101 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_wrap_key()
[all …]
A Dprocessing_digest.c122 in_buf = params[1].memref.buffer; in step_digest_operation()
123 in_size = params[1].memref.size; in step_digest_operation()
128 out_buf = params[2].memref.buffer; in step_digest_operation()
129 out_size = params[2].memref.size; in step_digest_operation()
210 params[2].memref.size = out_size; in step_digest_operation()
/optee_os/lib/libutee/
A Dtee_socket_pta.c61 params[1].memref.buffer = (void *)addr; in __tee_socket_pta_open()
62 params[1].memref.size = strlen(addr) + 1; in __tee_socket_pta_open()
109 params[1].memref.buffer = (void *)buf; in __tee_socket_pta_send()
110 params[1].memref.size = *len; in __tee_socket_pta_send()
133 params[1].memref.buffer = buf; in __tee_socket_pta_recv()
134 params[1].memref.size = *len; in __tee_socket_pta_recv()
137 *len = params[1].memref.size; in __tee_socket_pta_recv()
156 params[1].memref.buffer = buf; in __tee_socket_pta_ioctl()
157 params[1].memref.size = *len; in __tee_socket_pta_ioctl()
160 *len = params[1].memref.size; in __tee_socket_pta_ioctl()
A Dtee_system_pta.c95 params[0].memref.buffer = (void *)uuid; in tee_invoke_supp_plugin()
96 params[0].memref.size = sizeof(TEE_UUID); in tee_invoke_supp_plugin()
99 params[2].memref.buffer = buf; in tee_invoke_supp_plugin()
100 params[2].memref.size = len; in tee_invoke_supp_plugin()
A Dtee_api.c53 b = params[n].memref.buffer; in copy_param()
54 s = params[n].memref.size; in copy_param()
94 s = params[n].memref.size; in copy_param()
101 memcpy(b, params[n].memref.buffer, s); in copy_param()
103 b = params[n].memref.buffer; in copy_param()
138 memcpy(params[n].memref.buffer, tmp_va[n], in update_out_param()
139 MIN(b, params[n].memref.size)); in update_out_param()
140 params[n].memref.size = b; in update_out_param()
/optee_os/lib/libdl/
A Ddlfcn.c60 params[0].memref.buffer = (void *)&uuid; in dlopen()
61 params[0].memref.size = sizeof(uuid); in dlopen()
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()
110 params[1].memref.size = strlen(symbol) + 1; in dlsym()
/optee_os/core/pta/bcm/
A Delog.c84 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()
165 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_nitro_crash_dump()
201 sz = MIN(params[0].memref.size, DEFAULT_ELOG_BUFFER_SIZE); in pta_elog_dump()
/optee_os/lib/libutee/arch/arm/gprof/
A Dgprof_pta.c42 params[1].memref.buffer = buf; in __pta_gprof_send()
43 params[1].memref.size = len; in __pta_gprof_send()
61 params[0].memref.buffer = buf; in __pta_gprof_pc_sampling_start()
62 params[0].memref.size = len; in __pta_gprof_pc_sampling_start()
/optee_os/ta/avb/
A Dentry.c270 name_buf = params[0].memref.buffer; in write_persist_value()
271 name_buf_sz = params[0].memref.size; in write_persist_value()
272 value_sz = params[1].memref.size; in write_persist_value()
277 TEE_MemMove(value, params[1].memref.buffer, value_sz); in write_persist_value()
320 name_buf = params[0].memref.buffer; in read_persist_value()
321 name_buf_sz = params[0].memref.size; in read_persist_value()
322 value_sz = params[1].memref.size; in read_persist_value()
345 TEE_MemMove(params[1].memref.buffer, value, in read_persist_value()
348 params[1].memref.size = count; in read_persist_value()
/optee_os/core/arch/arm/kernel/
A Dthread_optee_smc.c347 param->u.rmem.offs = tpm->u.memref.offs; in set_rmem()
348 param->u.rmem.size = tpm->u.memref.size; in set_rmem()
349 if (tpm->u.memref.mobj) { in set_rmem()
350 param->u.rmem.shm_ref = mobj_get_cookie(tpm->u.memref.mobj); in set_rmem()
365 struct mobj *mobj = tpm->u.memref.mobj; in set_tmem()
373 if (mobj_get_pa(mobj, tpm->u.memref.offs, 0, &pa)) in set_tmem()
377 param->u.tmem.size = tpm->u.memref.size; in set_tmem()
434 if (!params[n].u.memref.mobj || in get_rpc_arg()
435 mobj_matches(params[n].u.memref.mobj, in get_rpc_arg()
439 } else if (mobj_matches(params[n].u.memref.mobj, in get_rpc_arg()
[all …]
/optee_os/core/arch/arm/plat-synquacer/
A Drng_pta.c269 rq_size = params[0].memref.size; in rng_get_entropy()
274 e = (uint8_t *)params[0].memref.buffer; in rng_get_entropy()
287 params[0].memref.size = 0; in rng_get_entropy()
296 params[0].memref.size = pool_size; in rng_get_entropy()
299 params[0].memref.size = rq_size; in rng_get_entropy()

Completed in 29 milliseconds

12