Home
last modified time | relevance | path

Searched refs:tee_shm (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/include/linux/
H A Dtee_drv.h31 struct tee_shm;
63 struct tee_shm *shm;
206 struct tee_shm { struct
237 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm, argument
239 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
284 static inline bool tee_shm_is_dynamic(struct tee_shm *shm) in tee_shm_is_dynamic()
293 void tee_shm_free(struct tee_shm *shm);
299 void tee_shm_put(struct tee_shm *shm);
308 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
325 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size()
[all …]
/openbmc/linux/drivers/tee/
H A Dtee_shm.c44 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages()
81 struct tee_shm *shm; in shm_alloc_helper()
143 struct tee_shm *shm; in tee_shm_alloc_user_buf()
216 static struct tee_shm *
221 struct tee_shm *shm; in register_shm_helper()
309 struct tee_shm *shm; in tee_shm_register_user_buf()
368 struct tee_shm *shm = filp->private_data; in tee_shm_fop_mmap()
394 int tee_shm_get_fd(struct tee_shm *shm) in tee_shm_get_fd()
413 void tee_shm_free(struct tee_shm *shm) in tee_shm_free()
464 struct tee_shm *shm; in tee_shm_get_from_id()
[all …]
H A Dtee_private.h50 int tee_shm_get_fd(struct tee_shm *shm);
58 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size);
59 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
H A Dtee_shm_pool.c12 static int pool_op_gen_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_gen_alloc()
37 static void pool_op_gen_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_gen_free()
H A DMakefile4 tee-objs += tee_shm.o
/openbmc/u-boot/include/
H A Dtee.h77 struct tee_shm { struct
96 struct tee_shm *shm; argument
225 int (*shm_register)(struct udevice *dev, struct tee_shm *shm);
232 int (*shm_unregister)(struct udevice *dev, struct tee_shm *shm);
249 u32 flags, struct tee_shm **shmp);
262 struct tee_shm **shmp);
276 struct tee_shm **shmp);
282 void tee_shm_free(struct tee_shm *shm);
292 bool tee_shm_is_registered(struct tee_shm *shm, struct udevice *dev);
/openbmc/linux/drivers/firmware/arm_scmi/
H A Doptee.c128 struct tee_shm *tee_shm; member
229 if (channel->tee_shm) in get_channel()
343 if (!channel->tee_shm) in scmi_optee_clear_channel()
353 if (IS_ERR(channel->tee_shm)) { in setup_dynamic_shmem()
459 if (channel->tee_shm) in scmi_optee_chan_setup()
460 tee_shm_free(channel->tee_shm); in scmi_optee_chan_setup()
476 if (channel->tee_shm) { in scmi_optee_chan_free()
477 tee_shm_free(channel->tee_shm); in scmi_optee_chan_free()
478 channel->tee_shm = NULL; in scmi_optee_chan_free()
495 if (channel->tee_shm) { in scmi_optee_send_message()
[all …]
/openbmc/u-boot/drivers/tee/
H A Dtee-uclass.c50 u32 flags, struct tee_shm **shmp) in __tee_shm_add()
52 struct tee_shm *shm; in __tee_shm_add()
100 struct tee_shm **shmp) in tee_shm_alloc()
110 struct tee_shm **shmp) in tee_shm_register()
119 void tee_shm_free(struct tee_shm *shm) in tee_shm_free()
136 bool tee_shm_is_registered(struct tee_shm *shm, struct udevice *dev) in tee_shm_is_registered()
139 struct tee_shm *s; in tee_shm_is_registered()
186 struct tee_shm *shm; in tee_pre_remove()
194 shm = list_first_entry(&priv->list_shm, struct tee_shm, link); in tee_pre_remove()
/openbmc/linux/drivers/tee/optee/
H A Doptee_private.h157 struct tee_shm *shm_arg, u_int offs);
264 int optee_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm,
267 struct tee_shm *shm,
271 void optee_pool_op_free_helper(struct tee_shm_pool *pool, struct tee_shm *shm,
273 struct tee_shm *shm));
314 struct tee_shm **shm_ret,
321 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz);
322 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm);
H A Dffa_abi.c41 struct tee_shm *shm;
61 struct tee_shm *shm = NULL; in optee_shm_from_ffa_handle()
126 struct tee_shm *shm = NULL; in from_msg_param_ffa_mem()
192 struct tee_shm *shm = p->u.memref.shm; in to_msg_param_ffa_mem()
314 struct tee_shm *shm) in optee_ffa_shm_unregister()
343 struct tee_shm *shm) in optee_ffa_shm_unregister_supp()
375 struct tee_shm *shm, size_t size, size_t align) in pool_ffa_op_alloc()
382 struct tee_shm *shm) in pool_ffa_op_free()
430 struct tee_shm *shm; in handle_ffa_rpc_func_cmd_shm_alloc()
470 struct tee_shm *shm; in handle_ffa_rpc_func_cmd_shm_free()
[all …]
H A Dcore.c21 int optee_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm, in optee_pool_op_alloc_helper()
24 struct tee_shm *shm, in optee_pool_op_alloc_helper()
72 void optee_pool_op_free_helper(struct tee_shm_pool *pool, struct tee_shm *shm, in optee_pool_op_free_helper()
74 struct tee_shm *shm)) in optee_pool_op_free_helper()
H A Dsmc_abi.c85 struct tee_shm *shm; in from_msg_param_tmp_mem()
112 struct tee_shm *shm; in from_msg_param_reg_mem()
323 struct tee_shm *shm; in __optee_disable_shm_cache()
458 struct tee_shm *shm_arg; in optee_shm_register()
524 struct tee_shm *shm_arg; in optee_shm_unregister()
573 struct tee_shm *shm) in optee_shm_unregister_supp()
602 struct tee_shm *shm) in pool_op_free()
652 struct tee_shm *shm; in handle_rpc_func_cmd_shm_free()
682 struct tee_shm *shm; in handle_rpc_func_cmd_shm_alloc()
822 struct tee_shm *shm; in optee_handle_rpc()
[all …]
H A Dcall.c38 struct tee_shm *shm;
184 struct tee_shm **shm_ret, in optee_get_msg_arg()
287 struct tee_shm *shm; in optee_open_session()
368 struct tee_shm *shm; in optee_close_session_helper()
410 struct tee_shm *shm; in optee_invoke_func()
460 struct tee_shm *shm; in optee_cancel_req()
H A Drpc.c210 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl()
215 struct tee_shm *shm; in optee_rpc_cmd_alloc_suppl()
233 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl()
H A Ddevice.c23 struct tee_shm *device_shm, u32 *shm_size, in get_devices()
109 struct tee_shm *device_shm = NULL; in __optee_enumerate_devices()
/openbmc/u-boot/drivers/tee/optee/
H A Dsupplicant.c20 struct tee_shm *shm; in cmd_shm_alloc()
68 tee_shm_free((struct tee_shm *)(ulong)arg->params[0].u.value.b); in cmd_shm_free()
72 void optee_suppl_cmd(struct udevice *dev, struct tee_shm *shm_arg, in optee_suppl_cmd()
H A Dcore.c141 struct tee_shm **shmp, struct optee_msg_arg **msg_arg) in get_msg_arg()
203 struct tee_shm *shm; in from_msg_param()
230 shm = (struct tee_shm *)(ulong)mp->u.rmem.shm_ref; in from_msg_param()
250 struct tee_shm *shm; in handle_rpc()
333 struct tee_shm *shm; in optee_close_session()
354 struct tee_shm *shm; in optee_open_session()
404 struct tee_shm *shm; in optee_invoke_func()
438 static int optee_shm_register(struct udevice *dev, struct tee_shm *shm) in optee_shm_register()
440 struct tee_shm *shm_arg; in optee_shm_register()
473 static int optee_shm_unregister(struct udevice *dev, struct tee_shm *shm) in optee_shm_unregister()
[all …]
H A Drpmb.c152 struct tee_shm *req_shm; in optee_suppl_cmd_rpmb()
153 struct tee_shm *rsp_shm; in optee_suppl_cmd_rpmb()
166 req_shm = (struct tee_shm *)(ulong)arg->params[0].u.rmem.shm_ref; in optee_suppl_cmd_rpmb()
170 rsp_shm = (struct tee_shm *)(ulong)arg->params[1].u.rmem.shm_ref; in optee_suppl_cmd_rpmb()
H A Doptee_private.h28 void optee_suppl_cmd(struct udevice *dev, struct tee_shm *shm_arg,
/openbmc/linux/drivers/tee/amdtee/
H A Damdtee_private.h148 int amdtee_map_shmem(struct tee_shm *shm);
150 void amdtee_unmap_shmem(struct tee_shm *shm);
171 u32 get_buffer_id(struct tee_shm *shm);
H A Dshm_pool.c11 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_alloc()
41 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_free()
/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_tee.c55 struct tee_shm *shm_pool;
68 struct tee_shm *reg_shm = NULL; in trusted_tee_seal()
115 struct tee_shm *reg_shm = NULL; in trusted_tee_unseal()
162 struct tee_shm *reg_shm = NULL; in trusted_tee_get_random()
/openbmc/u-boot/test/dm/
H A Dtee.c53 struct tee_shm *reg_shm;
54 struct tee_shm *alloc_shm;
/openbmc/linux/drivers/char/tpm/
H A Dtpm_ftpm_tee.h37 struct tee_shm *shm;
/openbmc/linux/drivers/firmware/broadcom/
H A Dtee_bnxt_fw.c61 struct tee_shm *fw_shm_pool;
189 struct tee_shm *fw_shm_pool; in tee_bnxt_fw_probe()

12