Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dtee_drv.h33 struct tee_shm;
65 struct tee_shm *shm;
113 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
116 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
204 struct tee_shm { struct
234 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm, argument
236 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
334 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags);
345 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,
353 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered()
[all …]
/Linux-v5.10/drivers/tee/
Dtee_shm.c15 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages()
31 static void tee_shm_release(struct tee_shm *shm) in tee_shm_release()
81 struct tee_shm *shm = dmabuf->priv; in tee_shm_op_release()
88 struct tee_shm *shm = dmabuf->priv; in tee_shm_op_mmap()
106 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags) in tee_shm_alloc()
110 struct tee_shm *shm; in tee_shm_alloc()
196 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, in tee_shm_register()
202 struct tee_shm *shm; in tee_shm_register()
326 int tee_shm_get_fd(struct tee_shm *shm) in tee_shm_get_fd()
344 void tee_shm_free(struct tee_shm *shm) in tee_shm_free()
[all …]
Dtee_shm_pool.c13 struct tee_shm *shm, size_t size) in pool_op_gen_alloc()
31 struct tee_shm *shm) in pool_op_gen_free()
DMakefile4 tee-objs += tee_shm.o
Dtee_private.h63 int tee_shm_get_fd(struct tee_shm *shm);
Dtee_core.c287 struct tee_shm *shm; in tee_ioctl_shm_alloc()
324 struct tee_shm *shm; in tee_ioctl_shm_register()
362 struct tee_shm *shm; in params_from_user()
/Linux-v5.10/drivers/tee/optee/
Dcall.c173 static struct tee_shm *get_msg_arg(struct tee_context *ctx, size_t num_params, in get_msg_arg()
178 struct tee_shm *shm; in get_msg_arg()
214 struct tee_shm *shm; in optee_open_session()
287 struct tee_shm *shm; in optee_close_session()
318 struct tee_shm *shm; in optee_invoke_func()
363 struct tee_shm *shm; in optee_cancel_req()
433 struct tee_shm *shm; in optee_disable_shm_cache()
577 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
581 struct tee_shm *shm_arg = NULL; in optee_shm_register()
629 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister()
[all …]
Doptee_private.h163 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm,
166 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm);
168 int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm,
171 int optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm);
Drpc.c262 static struct tee_shm *cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in cmd_alloc_suppl()
267 struct tee_shm *shm; in cmd_alloc_suppl()
290 struct tee_shm *shm; in handle_rpc_func_cmd_shm_alloc()
381 static void cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in cmd_free_suppl()
409 struct tee_shm *shm; in handle_rpc_func_cmd_shm_free()
419 shm = (struct tee_shm *)(unsigned long)arg->params[0].u.value.b; in handle_rpc_func_cmd_shm_free()
449 struct tee_shm *shm, in handle_rpc_func_cmd()
498 struct tee_shm *shm; in optee_handle_rpc()
Dshm_pool.c16 struct tee_shm *shm, size_t size) in pool_op_alloc()
53 struct tee_shm *shm) in pool_op_free()
Ddevice.c23 struct tee_shm *device_shm, u32 *shm_size, in get_devices()
87 struct tee_shm *device_shm = NULL; in __optee_enumerate_devices()
Dcore.c42 struct tee_shm *shm; in optee_from_msg_param()
70 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
99 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
281 struct tee_shm *shm; in optee_release()
/Linux-v5.10/drivers/tee/amdtee/
Damdtee_private.h135 int amdtee_map_shmem(struct tee_shm *shm);
137 void amdtee_unmap_shmem(struct tee_shm *shm);
158 u32 get_buffer_id(struct tee_shm *shm);
Dshm_pool.c11 static int pool_op_alloc(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm, in pool_op_alloc()
37 static void pool_op_free(struct tee_shm_pool_mgr *poolm, struct tee_shm *shm) in pool_op_free()
Dcore.c154 u32 get_buffer_id(struct tee_shm *shm) in get_buffer_id()
338 int amdtee_map_shmem(struct tee_shm *shm) in amdtee_map_shmem()
380 void amdtee_unmap_shmem(struct tee_shm *shm) in amdtee_unmap_shmem()
/Linux-v5.10/drivers/char/tpm/
Dtpm_ftpm_tee.h37 struct tee_shm *shm;
Dtpm_ftpm_tee.c82 struct tee_shm *shm = pvt_data->shm; in ftpm_tee_tpm_op_send()
/Linux-v5.10/drivers/firmware/broadcom/
Dtee_bnxt_fw.c61 struct tee_shm *fw_shm_pool;
189 struct tee_shm *fw_shm_pool; in tee_bnxt_fw_probe()
/Linux-v5.10/drivers/char/hw_random/
Doptee-rng.c66 struct tee_shm *entropy_shm_pool;
146 struct tee_shm *entropy_shm_pool = NULL; in optee_rng_init()