/linux-6.6.21/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.6.21/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.6.21/drivers/tee/optee/ |
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() 51 *shm_size = param[0].u.memref.size; in get_devices()
|
D | smc_abi.c | 91 p->u.memref.size = mp->u.tmem.size; in from_msg_param_tmp_mem() 94 p->u.memref.shm_offs = 0; in from_msg_param_tmp_mem() 95 p->u.memref.shm = NULL; in from_msg_param_tmp_mem() 103 p->u.memref.shm_offs = mp->u.tmem.buf_ptr - pa; in from_msg_param_tmp_mem() 104 p->u.memref.shm = shm; in from_msg_param_tmp_mem() 116 p->u.memref.size = mp->u.rmem.size; in from_msg_param_reg_mem() 120 p->u.memref.shm_offs = mp->u.rmem.offs; in from_msg_param_reg_mem() 121 p->u.memref.shm = shm; in from_msg_param_reg_mem() 123 p->u.memref.shm_offs = 0; in from_msg_param_reg_mem() 124 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 | 132 p->u.memref.size = mp->u.fmem.size; in from_msg_param_ffa_mem() 136 p->u.memref.shm = shm; in from_msg_param_ffa_mem() 142 p->u.memref.shm_offs = offs_low | offs_high << 32; in from_msg_param_ffa_mem() 192 struct tee_shm *shm = p->u.memref.shm; in to_msg_param_ffa_mem() 198 u64 shm_offs = p->u.memref.shm_offs; in to_msg_param_ffa_mem() 213 mp->u.fmem.size = p->u.memref.size; in to_msg_param_ffa_mem()
|
D | rpc.c | 88 msg.buf = params[2].u.memref.shm->kaddr; in handle_rpc_func_cmd_i2c_transfer() 89 msg.len = params[2].u.memref.size; in handle_rpc_func_cmd_i2c_transfer()
|
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/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.6.21/drivers/firmware/arm_scmi/ |
D | optee.c | 293 param[1].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 294 param[1].u.memref.size = msg_size; in invoke_process_msg_channel() 297 param[2].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 298 param[2].u.memref.size = SCMI_OPTEE_MAX_MSG_SIZE; in invoke_process_msg_channel() 308 channel->rx_len = param[2].u.memref.size; in invoke_process_msg_channel()
|
/linux-6.6.21/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.6.21/include/linux/ |
D | tee_drv.h | 75 struct tee_param_memref memref; member
|