Searched refs:shm (Results 1 - 17 of 17) sorted by relevance

/u-boot/drivers/tee/
H A Dtee-uclass.c57 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 Dsandbox.c259 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 Dsupplicant.c21 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 Dcore.c105 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 Di2c.c41 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 Dtpm2_ftpm_tee.h26 * @shm: Memory pool shared with fTPM TA in TEE.
32 struct tee_shm *shm; member in struct:ftpm_tee_private
H A Dtpm2_ftpm_tee.c49 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 Dtee.h113 * @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 Doptee_rpmb.c105 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 Doptee_rng.c92 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 Defi_variable_tee.c100 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 Dcmd_dek.c115 param[0].u.memref.shm = shm_input;
118 param[1].u.memref.shm = shm_output;
/u-boot/drivers/firmware/scmi/
H A Doptee_agent.c217 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 Dtee.c77 param[1].u.memref.shm = shm_buf;
/u-boot/common/
H A Davb_verify.c945 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 Dbsec.c591 param[1].u.memref.shm = fw_shm;
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/
H A Dstm32prog.c201 param[1].u.memref.shm = buff_shm;

Completed in 93 milliseconds