Home
last modified time | relevance | path

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

/kernel/linux/common_modules/tzdriver/core/
Dteek_client_api.c48 context->params[idex].memref.offset = 0; in encode_for_part_mem()
49 size_addr = (__u64)(uintptr_t)(&(oper->params[idex].memref.parent->size)); in encode_for_part_mem()
51 context->params[idex].memref.offset = oper->params[idex].memref.offset; in encode_for_part_mem()
52 size_addr = (__u64)(uintptr_t)(&(oper->params[idex].memref.size)); in encode_for_part_mem()
54 context->params[idex].memref.size_addr = (__u32)size_addr; in encode_for_part_mem()
55 context->params[idex].memref.size_h_addr = (__u32)(size_addr >> ADDR_TRANS_NUM); in encode_for_part_mem()
57 if (oper->params[idex].memref.parent->is_allocated) { in encode_for_part_mem()
58 buffer_addr = (__u64)(uintptr_t)oper->params[idex].memref.parent->buffer; in encode_for_part_mem()
61 oper->params[idex].memref.parent->buffer + in encode_for_part_mem()
62 oper->params[idex].memref.offset; in encode_for_part_mem()
[all …]
Dgp_ops.c153 uint64_t size_addr = client_param->memref.size_addr | in is_usr_refmem_valid()
154 ((uint64_t)client_param->memref.size_h_addr << ADDR_TRANS_NUM); in is_usr_refmem_valid()
155 uint64_t buffer_addr = client_param->memref.buffer | in is_usr_refmem_valid()
156 ((uint64_t)client_param->memref.buffer_h_addr << ADDR_TRANS_NUM); in is_usr_refmem_valid()
328 buffer_addr = client_param->memref.buffer | in update_input_data()
329 ((uint64_t)client_param->memref.buffer_h_addr << ADDR_TRANS_NUM); in update_input_data()
358 size_addr = client_param->memref.size_addr | in alloc_for_tmp_mem()
359 ((uint64_t)client_param->memref.size_h_addr << ADDR_TRANS_NUM); in alloc_for_tmp_mem()
372 op_params->mb_pack->operation.params[index].memref.size = buffer_size; in alloc_for_tmp_mem()
379 op_params->mb_pack->operation.params[index].memref.buffer = 0; in alloc_for_tmp_mem()
[all …]
Dsession_manager.c287 mb_pack->operation.params[0].memref.buffer = in tc_ns_need_load_image()
291 mb_pack->operation.params[0].memref.size = SZ_4K; in tc_ns_need_load_image()
358 file_addr = (void *)(uintptr_t)(ioctl_arg.memref.file_addr | in tc_ns_load_secfile()
359 (((uint64_t)ioctl_arg.memref.file_h_addr) << ADDR_TRANS_NUM)); in tc_ns_load_secfile()
445 context->params[3].memref.size_addr = (__u32)size_addr; in set_login_information()
446 context->params[3].memref.size_h_addr = (__u32)(size_addr >> ADDR_TRANS_NUM); in set_login_information()
447 context->params[3].memref.buffer = (__u32)buffer_addr; in set_login_information()
448 context->params[3].memref.buffer_h_addr = (__u32)(buffer_addr >> ADDR_TRANS_NUM); in set_login_information()
471 context->params[2].memref.size_addr = (__u32)size_addr; in set_login_information()
472 context->params[2].memref.size_h_addr = (__u32)(size_addr >> ADDR_TRANS_NUM); in set_login_information()
[all …]
Dtz_update_crl.c52 …mb_pack->operation.params[0].memref.buffer = (unsigned int )mailbox_virt_to_phys((uintptr_t)mb_par… in send_crl_to_tee()
55 mb_pack->operation.params[0].memref.size = crl_len; in send_crl_to_tee()
107 buffer_addr = (void *)(uintptr_t)(context.memref.buffer_addr | in tc_ns_update_ta_crl()
108 (((uint64_t)context.memref.buffer_h_addr) << ADDR_TRANS_NUM)); in tc_ns_update_ta_crl()
Dtzdebug.c85 …mb_pack->operation.params[0].memref.buffer = (unsigned int)mailbox_virt_to_phys((uintptr_t)statmem… in send_dump_mem()
86 mb_pack->operation.params[0].memref.size = sizeof(*statmem); in send_dump_mem()
/kernel/linux/linux-5.10/drivers/tee/optee/
Dcore.c70 p->u.memref.size = mp->u.tmem.size; in optee_from_msg_param()
74 p->u.memref.shm_offs = 0; in optee_from_msg_param()
75 p->u.memref.shm = NULL; in optee_from_msg_param()
81 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in optee_from_msg_param()
82 p->u.memref.shm = shm; in optee_from_msg_param()
89 p->u.memref.size = mp->u.rmem.size; in optee_from_msg_param()
94 p->u.memref.shm_offs = 0; in optee_from_msg_param()
95 p->u.memref.shm = NULL; in optee_from_msg_param()
98 p->u.memref.shm_offs = mp->u.rmem.offs; in optee_from_msg_param()
99 p->u.memref.shm = shm; in optee_from_msg_param()
[all …]
Ddevice.c39 param[0].u.memref.shm = device_shm; in get_devices()
40 param[0].u.memref.size = *shm_size; in get_devices()
41 param[0].u.memref.shm_offs = 0; in get_devices()
51 *shm_size = param[0].u.memref.size; in get_devices()
Dsupp.c198 if (tee_param_is_memref(params + n) && params[n].u.memref.shm) in supp_check_recv_params()
199 tee_shm_put(params[n].u.memref.shm); in supp_check_recv_params()
370 p->u.memref.size = param[n + num_meta].u.memref.size; in optee_supp_send()
Drpc.c104 msg.buf = params[2].u.memref.shm->kaddr; in handle_rpc_func_cmd_i2c_transfer()
105 msg.len = params[2].u.memref.size; in handle_rpc_func_cmd_i2c_transfer()
/kernel/linux/common_modules/tzdriver/
Dtc_ns_client.h58 } memref; member
88 } memref; member
120 } memref; member
139 } memref; member
Dteek_client_type.h81 struct teec_registeredmemory_reference memref; member
Dteek_ns_client.h130 } memref; member
/kernel/linux/linux-5.10/drivers/firmware/broadcom/
Dtee_bnxt_fw.c81 param[0].u.memref.shm = pvt_data.fw_shm_pool; in prepare_args()
82 param[0].u.memref.size = MAX_SHM_MEM_SZ; in prepare_args()
83 param[0].u.memref.shm_offs = 0; in prepare_args()
148 nbytes = min_t(u32, rbytes, param[0].u.memref.size); in tee_bnxt_copy_coredump()
/kernel/linux/common_modules/tzdriver/ion/
Dstatic_ion_mem.c54 mb_pack->operation.params[0].memref.buffer = in tc_ns_register_ion_mem()
58 mb_pack->operation.params[0].memref.size = sizeof(*memtag); in tc_ns_register_ion_mem()
Ddynamic_ion_mem.c162 mb_pack->operation.params[0].memref.size = (uint32_t)mem_item->memory.len; in send_dyn_ion_cmd()
163 mb_pack->operation.params[0].memref.buffer = in send_dyn_ion_cmd()
570 operation->params[index].memref.buffer = (unsigned int)ion_sglist_addr;
573 operation->params[index].memref.size = (unsigned int)ion_sglist_size;
/kernel/linux/linux-5.10/drivers/char/hw_random/
Doptee-rng.c92 param[0].u.memref.shm = pvt_data->entropy_shm_pool; in get_optee_rng_data()
93 param[0].u.memref.size = req_size; in get_optee_rng_data()
94 param[0].u.memref.shm_offs = 0; in get_optee_rng_data()
109 rng_size = param[0].u.memref.size; in get_optee_rng_data()
/kernel/linux/linux-5.10/drivers/tee/
Dtee_core.c429 params[n].u.memref.shm_offs = ip.a; in params_from_user()
430 params[n].u.memref.size = ip.b; in params_from_user()
431 params[n].u.memref.shm = shm; in params_from_user()
460 if (put_user((u64)p->u.memref.size, &up->b)) in params_to_user()
540 params[n].u.memref.shm) in tee_ioctl_open_session()
541 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_open_session()
602 params[n].u.memref.shm) in tee_ioctl_invoke()
603 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_invoke()
660 ip.b = p->u.memref.size; in params_to_supp()
661 if (!p->u.memref.shm) { in params_to_supp()
[all …]
/kernel/linux/linux-5.10/drivers/tee/amdtee/
Damdtee_if.h28 struct memref { struct
43 struct memref mref; argument
Dcall.c48 u32 buf_id = get_buffer_id(tee[i].u.memref.shm); in tee_params_to_amd_params()
51 amd->params[i].mref.offset = tee[i].u.memref.shm_offs; in tee_params_to_amd_params()
52 amd->params[i].mref.size = tee[i].u.memref.size; in tee_params_to_amd_params()
103 tee[i].u.memref.shm_offs = amd->params[i].mref.offset; in amd_params_to_tee_params()
104 tee[i].u.memref.size = amd->params[i].mref.size; in amd_params_to_tee_params()
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm_ftpm_tee.c105 .u.memref = { in ftpm_tee_tpm_op_send()
123 .u.memref = { in ftpm_tee_tpm_op_send()
138 temp_buf = tee_shm_get_va(shm, command_params[1].u.memref.shm_offs); in ftpm_tee_tpm_op_send()
/kernel/linux/linux-5.10/include/linux/
Dtee_drv.h78 struct tee_param_memref memref; member
/kernel/linux/common_modules/tzdriver/tui/
Dtui.c466 mb_pack->operation.params[0].memref.size = (uint32_t)(tui_font_mem->size); in tc_ns_register_tui_font_mem()
467 …mb_pack->operation.params[0].memref.buffer = (uint32_t)(tui_font_mem->tui_ion_phys_addr & 0xFFFFFF… in tc_ns_register_tui_font_mem()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0038_linux_drivers_mxc.patch160048 + operation.params[0].memref.parent = &channel->inputBuffer;
160049 + operation.params[0].memref.offset = 0;
160050 + operation.params[0].memref.size = sizeof(gcsTA_INTERFACE);
160097 + operation.params[0].memref.parent = &channel->inputBuffer;
160098 + operation.params[0].memref.offset = 0;
160099 + operation.params[0].memref.size = gcmSIZEOF(gcsTA_INTERFACE);