/linux-6.12.1/security/keys/trusted-keys/ |
D | trusted_tee.c | 85 param[0].u.memref.shm = reg_shm; in trusted_tee_seal() 86 param[0].u.memref.size = p->key_len; in trusted_tee_seal() 87 param[0].u.memref.shm_offs = 0; in trusted_tee_seal() 89 param[1].u.memref.shm = reg_shm; in trusted_tee_seal() 90 param[1].u.memref.size = sizeof(p->blob); in trusted_tee_seal() 91 param[1].u.memref.shm_offs = sizeof(p->key); in trusted_tee_seal() 99 p->blob_len = param[1].u.memref.size; in trusted_tee_seal() 132 param[0].u.memref.shm = reg_shm; in trusted_tee_unseal() 133 param[0].u.memref.size = p->blob_len; in trusted_tee_unseal() 134 param[0].u.memref.shm_offs = sizeof(p->key); in trusted_tee_unseal() [all …]
|
/linux-6.12.1/drivers/tee/optee/ |
D | rpc.c | 89 msg.buf = params[2].u.memref.shm->kaddr; in handle_rpc_func_cmd_i2c_transfer() 90 msg.len = params[2].u.memref.size; in handle_rpc_func_cmd_i2c_transfer() 333 buf = tee_shm_get_va(params[1].u.memref.shm, in handle_rpc_func_rpmb_probe_next() 334 params[1].u.memref.shm_offs); in handle_rpc_func_rpmb_probe_next() 351 if (params[1].u.memref.size < rdev->descr.dev_id_len) { in handle_rpc_func_rpmb_probe_next() 356 params[1].u.memref.size = rdev->descr.dev_id_len; in handle_rpc_func_rpmb_probe_next() 394 p0 = tee_shm_get_va(params[0].u.memref.shm, in handle_rpc_func_rpmb_frames() 395 params[0].u.memref.shm_offs); in handle_rpc_func_rpmb_frames() 396 p1 = tee_shm_get_va(params[1].u.memref.shm, in handle_rpc_func_rpmb_frames() 397 params[1].u.memref.shm_offs); in handle_rpc_func_rpmb_frames() [all …]
|
D | device.c | 39 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() 58 *shm_size = param[0].u.memref.size; in get_devices()
|
D | smc_abi.c | 92 p->u.memref.size = mp->u.tmem.size; in from_msg_param_tmp_mem() 95 p->u.memref.shm_offs = 0; in from_msg_param_tmp_mem() 96 p->u.memref.shm = NULL; in from_msg_param_tmp_mem() 104 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in from_msg_param_tmp_mem() 105 p->u.memref.shm = shm; in from_msg_param_tmp_mem() 117 p->u.memref.size = mp->u.rmem.size; in from_msg_param_reg_mem() 121 p->u.memref.shm_offs = mp->u.rmem.offs; in from_msg_param_reg_mem() 122 p->u.memref.shm = shm; in from_msg_param_reg_mem() 124 p->u.memref.shm_offs = 0; in from_msg_param_reg_mem() 125 p->u.memref.shm = NULL; in from_msg_param_reg_mem() [all …]
|
D | supp.c | 198 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()
|
D | ffa_abi.c | 133 p->u.memref.size = mp->u.fmem.size; in from_msg_param_ffa_mem() 137 p->u.memref.shm = shm; in from_msg_param_ffa_mem() 143 p->u.memref.shm_offs = offs_low | offs_high << 32; in from_msg_param_ffa_mem() 193 struct tee_shm *shm = p->u.memref.shm; in to_msg_param_ffa_mem() 199 u64 shm_offs = p->u.memref.shm_offs; in to_msg_param_ffa_mem() 214 mp->u.fmem.size = p->u.memref.size; in to_msg_param_ffa_mem()
|
/linux-6.12.1/drivers/rtc/ |
D | rtc-optee.c | 69 param[0].u.memref.shm = priv->shm; in optee_rtc_readtime() 70 param[0].u.memref.size = sizeof(struct optee_rtc_time); in optee_rtc_readtime() 80 if (param[0].u.memref.size != sizeof(*optee_tm)) in optee_rtc_readtime() 117 param[0].u.memref.shm = priv->shm; in optee_rtc_settime() 118 param[0].u.memref.size = sizeof(struct optee_rtc_time); in optee_rtc_settime() 204 param[0].u.memref.shm = priv->shm; in optee_rtc_read_info() 205 param[0].u.memref.size = sizeof(*info); in optee_rtc_read_info() 215 if (param[0].u.memref.size != sizeof(*info)) in optee_rtc_read_info()
|
/linux-6.12.1/drivers/nvmem/ |
D | stm32-bsec-optee-ta.c | 175 param[1].u.memref.shm = shm; in stm32_bsec_optee_ta_read() 176 param[1].u.memref.size = num_bytes; in stm32_bsec_optee_ta_read() 240 param[1].u.memref.shm = shm; in stm32_bsec_optee_ta_write() 241 param[1].u.memref.size = bytes; in stm32_bsec_optee_ta_write() 277 param[1].u.memref.size = nb_lock * 4; in stm32_bsec_optee_ta_write()
|
/linux-6.12.1/drivers/firmware/broadcom/ |
D | tee_bnxt_fw.c | 81 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()
|
/linux-6.12.1/drivers/char/hw_random/ |
D | optee-rng.c | 92 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()
|
/linux-6.12.1/drivers/tee/ |
D | tee_core.c | 423 params[n].u.memref.shm_offs = ip.a; in params_from_user() 424 params[n].u.memref.size = ip.b; in params_from_user() 425 params[n].u.memref.shm = shm; in params_from_user() 454 if (put_user((u64)p->u.memref.size, &up->b)) in params_to_user() 535 params[n].u.memref.shm) in tee_ioctl_open_session() 536 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_open_session() 597 params[n].u.memref.shm) in tee_ioctl_invoke() 598 tee_shm_put(params[n].u.memref.shm); in tee_ioctl_invoke() 655 ip.b = p->u.memref.size; in params_to_supp() 656 if (!p->u.memref.shm) { in params_to_supp() [all …]
|
/linux-6.12.1/drivers/tee/amdtee/ |
D | amdtee_if.h | 28 struct memref { struct 43 struct memref mref; argument
|
D | call.c | 48 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()
|
/linux-6.12.1/drivers/firmware/arm_scmi/transports/ |
D | optee.c | 295 param[1].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 296 param[1].u.memref.size = msg_size; in invoke_process_msg_channel() 299 param[2].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 300 param[2].u.memref.size = SCMI_OPTEE_MAX_MSG_SIZE; in invoke_process_msg_channel() 310 channel->rx_len = param[2].u.memref.size; in invoke_process_msg_channel()
|
/linux-6.12.1/drivers/char/tpm/ |
D | tpm_ftpm_tee.c | 104 .u.memref = { in ftpm_tee_tpm_op_send() 122 .u.memref = { in ftpm_tee_tpm_op_send() 137 temp_buf = tee_shm_get_va(shm, command_params[1].u.memref.shm_offs); in ftpm_tee_tpm_op_send()
|
/linux-6.12.1/drivers/platform/x86/amd/pmf/ |
D | tee-if.c | 59 param[0].u.memref.size = sizeof(struct ta_pmf_shared_memory); in amd_pmf_prepare_args() 61 param[0].u.memref.shm = dev->fw_shm_pool; in amd_pmf_prepare_args() 62 param[0].u.memref.shm_offs = 0; in amd_pmf_prepare_args()
|
/linux-6.12.1/include/linux/ |
D | tee_drv.h | 94 struct tee_param_memref memref; member
|
/linux-6.12.1/drivers/firmware/efi/stmm/ |
D | tee_stmm_efi.c | 83 param[0].u.memref.size = buf_size; in tee_mm_communicate() 84 param[0].u.memref.shm = shm; in tee_mm_communicate()
|