Home
last modified time | relevance | path

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

/Linux-v5.15/include/linux/
Dtee_drv.h34 struct tee_shm;
66 struct tee_shm *shm;
114 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
117 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
205 struct tee_shm { struct
235 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm, argument
237 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
335 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags);
336 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size);
347 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,
[all …]
/Linux-v5.15/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()
208 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf()
214 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, in tee_shm_register()
220 struct tee_shm *shm; in tee_shm_register()
344 int tee_shm_get_fd(struct tee_shm *shm) in tee_shm_get_fd()
[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.15/drivers/tee/optee/
Dcall.c178 static struct tee_shm *get_msg_arg(struct tee_context *ctx, size_t num_params, in get_msg_arg()
183 struct tee_shm *shm; in get_msg_arg()
219 struct tee_shm *shm; in optee_open_session()
294 struct tee_shm *shm; in optee_close_session()
325 struct tee_shm *shm; in optee_invoke_func()
370 struct tee_shm *shm; in optee_cancel_req()
442 struct tee_shm *shm; in __optee_disable_shm_cache()
614 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
618 struct tee_shm *shm_arg = NULL; in optee_shm_register()
666 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister()
[all …]
Doptee_private.h164 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm,
167 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm);
169 int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm,
172 int optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm);
Drpc.c264 static struct tee_shm *cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in cmd_alloc_suppl()
269 struct tee_shm *shm; in cmd_alloc_suppl()
292 struct tee_shm *shm; in handle_rpc_func_cmd_shm_alloc()
383 static void cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in cmd_free_suppl()
411 struct tee_shm *shm; in handle_rpc_func_cmd_shm_free()
421 shm = (struct tee_shm *)(unsigned long)arg->params[0].u.value.b; in handle_rpc_func_cmd_shm_free()
451 struct tee_shm *shm, in handle_rpc_func_cmd()
500 struct tee_shm *shm; in optee_handle_rpc()
Dshm_pool.c16 struct tee_shm *shm, size_t size) in pool_op_alloc()
65 struct tee_shm *shm) in pool_op_free()
Ddevice.c23 struct tee_shm *device_shm, u32 *shm_size, in get_devices()
95 struct tee_shm *device_shm = NULL; in __optee_enumerate_devices()
Dcore.c43 struct tee_shm *shm; in optee_from_msg_param()
71 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
90 shm = (struct tee_shm *)(unsigned long) in optee_from_msg_param()
272 struct tee_shm *shm; in optee_release()
/Linux-v5.15/drivers/tee/amdtee/
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);
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.c153 u32 get_buffer_id(struct tee_shm *shm) in get_buffer_id()
341 int amdtee_map_shmem(struct tee_shm *shm) in amdtee_map_shmem()
383 void amdtee_unmap_shmem(struct tee_shm *shm) in amdtee_unmap_shmem()
/Linux-v5.15/security/keys/trusted-keys/
Dtrusted_tee.c55 struct tee_shm *shm_pool;
68 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_seal()
129 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_unseal()
190 struct tee_shm *reg_shm = NULL; in trusted_tee_get_random()
/Linux-v5.15/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.15/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.15/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()