/u-boot/drivers/tee/ |
H A D | tee-uclass.c | 57 struct tee_shm *shm; local 70 shm = calloc(1, sizeof(*shm)); 71 if (!shm) { 76 shm->dev = dev; 77 shm->addr = p; 78 shm->size = size; 79 shm->flags = flags; 82 rc = tee_get_ops(dev)->shm_register(dev, shm); 90 list_add(&shm 124 tee_shm_free(struct tee_shm *shm) argument 141 tee_shm_is_registered(struct tee_shm *shm, struct udevice *dev) argument 191 struct tee_shm *shm; local [all...] |
H A D | sandbox.c | 259 name = params[0].u.memref.shm->addr; 261 value = params[1].u.memref.shm->addr; 287 name = params[0].u.memref.shm->addr; 289 value = params[1].u.memref.shm->addr; 343 msg_arg->params[2].u.rmem.shm_ref = (ulong)memref.shm; 354 struct tee_shm *shm; local 387 res = get_msg_arg(dev, 4, &shm, &msg_arg); 395 optee_suppl_cmd(dev, shm, 0); 398 tee_shm_free(shm); 525 static int sandbox_tee_shm_register(struct udevice *dev, struct tee_shm *shm) argument 534 sandbox_tee_shm_unregister(struct udevice *dev, struct tee_shm *shm) argument [all...] |
/u-boot/drivers/tee/optee/ |
H A D | supplicant.c | 21 struct tee_shm *shm; local 34 TEE_SHM_REGISTER | TEE_SHM_ALLOC, &shm); 43 pl = optee_alloc_and_init_page_list(shm->addr, shm->size, &ph_ptr); 46 tee_shm_free(shm); 54 arg->params[0].u.tmem.size = shm->size; 55 arg->params[0].u.tmem.shm_ref = (ulong)shm;
|
H A D | core.c | 105 static int __enum_services(struct udevice *dev, struct tee_shm *shm, size_t *shm_size, u32 tee_sess, argument 117 param.u.memref.shm = shm; 131 static int enum_services(struct udevice *dev, struct tee_shm **shm, size_t *count, u32 tee_sess, argument 146 ret = tee_shm_alloc(dev, shm_size, 0, shm); 152 ret = __enum_services(dev, *shm, &shm_size, tee_sess, pta_cmd); 361 mp->u.rmem.shm_ref = (ulong)p->u.memref.shm; 376 struct tee_shm *shm; local 403 shm = (struct tee_shm *)(ulong)mp->u.rmem.shm_ref; 405 if (!shm) { 423 struct tee_shm *shm; local 524 struct tee_shm *shm; local 545 struct tee_shm *shm; local 595 struct tee_shm *shm; local 629 optee_shm_register(struct udevice *dev, struct tee_shm *shm) argument 664 optee_shm_unregister(struct udevice *dev, struct tee_shm *shm) argument [all...] |
H A D | i2c.c | 41 struct tee_shm *shm; local 53 shm = (struct tee_shm *)(unsigned long)arg->params[2].u.rmem.shm_ref; 54 buf = shm->addr;
|
/u-boot/drivers/tpm/ |
H A D | tpm2_ftpm_tee.h | 26 * @shm: Memory pool shared with fTPM TA in TEE. 32 struct tee_shm *shm; member in struct:ftpm_tee_private
|
H A D | tpm2_ftpm_tee.c | 49 struct tee_shm *shm; local 57 shm = context->shm; 72 .shm = shm, 77 memset(command_params[0].u.memref.shm->addr, 0, 79 memcpy(command_params[0].u.memref.shm->addr, sendbuf, send_size); 85 .shm = shm, 99 resp_buf = command_params[1].u.memref.shm [all...] |
/u-boot/include/ |
H A D | tee.h | 113 * @shm_offs: Offset in bytes into the shared memory object @shm 115 * @shm: Pointer to a shared memory object for the buffer 122 struct tee_shm *shm; member in struct:tee_param_memref 248 * @shm: Pointer to a shared memory object 251 int (*shm_register)(struct udevice *dev, struct tee_shm *shm); 255 * @shm: Pointer to a shared memory object 258 int (*shm_unregister)(struct udevice *dev, struct tee_shm *shm); 306 * @shm: Shared memory object 308 void tee_shm_free(struct tee_shm *shm); 312 * @shm [all...] |
/u-boot/cmd/ |
H A D | optee_rpmb.c | 105 param[0].u.memref.shm = shm_name; 108 param[1].u.memref.shm = shm_buf; 173 param[0].u.memref.shm = shm_name; 176 param[1].u.memref.shm = shm_buf;
|
/u-boot/drivers/rng/ |
H A D | optee_rng.c | 92 param.u.memref.shm = entropy_shm_pool; 105 memcpy(buf, param.u.memref.shm->addr, param.u.memref.size);
|
/u-boot/lib/efi_loader/ |
H A D | efi_variable_tee.c | 100 struct tee_shm *shm = NULL; local 118 if (tee_shm_register(conn.tee, comm_buf, buf_size, 0, &shm)) { 131 param[0].u.memref.shm = shm; 135 tee_shm_free(shm);
|
/u-boot/arch/arm/mach-imx/ |
H A D | cmd_dek.c | 115 param[0].u.memref.shm = shm_input; 118 param[1].u.memref.shm = shm_output;
|
/u-boot/drivers/firmware/scmi/ |
H A D | optee_agent.c | 217 param[1].u.memref.shm = sess->tee_shm; 220 param[2].u.memref.shm = sess->tee_shm; 251 /* Static shm is already prepared by the firmware: nothing to do */
|
/u-boot/test/dm/ |
H A D | tee.c | 77 param[1].u.memref.shm = shm_buf;
|
/u-boot/common/ |
H A D | avb_verify.c | 945 param[0].u.memref.shm = shm_name; 948 param[1].u.memref.shm = shm_buf; 1010 param[0].u.memref.shm = shm_name; 1013 param[1].u.memref.shm = shm_buf;
|
/u-boot/arch/arm/mach-stm32mp/ |
H A D | bsec.c | 591 param[1].u.memref.shm = fw_shm;
|
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
H A D | stm32prog.c | 201 param[1].u.memref.shm = buff_shm;
|