/linux-6.1.9/include/linux/ |
D | tee_drv.h | 31 struct tee_shm; 63 struct tee_shm *shm; 111 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm, 114 int (*shm_unregister)(struct tee_context *ctx, 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); 273 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size); 274 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); 276 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, [all …]
|
/linux-6.1.9/drivers/tee/ |
D | tee_shm.c | 61 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages() 73 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release() 94 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper() 98 struct tee_shm *shm; in shm_alloc_helper() 156 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf() 160 struct tee_shm *shm; in tee_shm_alloc_user_buf() 201 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf() 225 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf() 233 static struct tee_shm * 238 struct tee_shm *shm; in register_shm_helper() [all …]
|
D | tee_private.h | 52 int tee_shm_get_fd(struct tee_shm *shm); 60 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size); 61 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
|
D | tee_shm_pool.c | 12 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()
|
D | Makefile | 4 tee-objs += tee_shm.o
|
D | tee_core.c | 291 struct tee_shm *shm; in tee_ioctl_shm_alloc() 327 struct tee_shm *shm; in tee_ioctl_shm_register() 363 struct tee_shm *shm; in params_from_user()
|
/linux-6.1.9/drivers/firmware/arm_scmi/ |
D | optee.c | 128 struct tee_shm *tee_shm; member 229 if (channel->tee_shm) in get_channel() 293 param[1].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 297 param[2].u.memref.shm = channel->tee_shm; in invoke_process_msg_channel() 343 if (!channel->tee_shm) in scmi_optee_clear_channel() 352 channel->tee_shm = tee_shm_alloc_kernel_buf(scmi_optee_private->tee_ctx, msg_size); in setup_dynamic_shmem() 353 if (IS_ERR(channel->tee_shm)) { in setup_dynamic_shmem() 358 shbuf = tee_shm_get_va(channel->tee_shm, 0); 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() [all …]
|
/linux-6.1.9/drivers/tee/optee/ |
D | optee_private.h | 133 struct tee_shm *shm_arg, u_int offs); 242 int optee_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm, 245 struct tee_shm *shm, 249 void optee_pool_op_free_helper(struct tee_shm_pool *pool, struct tee_shm *shm, 251 struct tee_shm *shm)); 292 struct tee_shm **shm_ret, 299 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz); 300 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm);
|
D | ffa_abi.c | 41 struct tee_shm *shm; 58 static struct tee_shm *optee_shm_from_ffa_handle(struct optee *optee, in optee_shm_from_ffa_handle() 61 struct tee_shm *shm = NULL; in optee_shm_from_ffa_handle() 74 static int optee_shm_add_ffa_handle(struct optee *optee, struct tee_shm *shm, in optee_shm_add_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() 269 static int optee_ffa_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_ffa_shm_register() 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() [all …]
|
D | smc_abi.c | 65 struct tee_shm *shm; in from_msg_param_tmp_mem() 72 shm = (struct tee_shm *)(unsigned long)mp->u.tmem.shm_ref; in from_msg_param_tmp_mem() 92 struct tee_shm *shm; in from_msg_param_reg_mem() 97 shm = (struct tee_shm *)(unsigned long)mp->u.rmem.shm_ref; in from_msg_param_reg_mem() 303 struct tee_shm *shm; in __optee_disable_shm_cache() 432 static int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register() 438 struct tee_shm *shm_arg; in optee_shm_register() 500 static int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister() 504 struct tee_shm *shm_arg; in optee_shm_unregister() 541 static int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register_supp() [all …]
|
D | core.c | 21 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()
|
D | call.c | 38 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()
|
D | rpc.c | 210 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()
|
D | device.c | 23 struct tee_shm *device_shm, u32 *shm_size, in get_devices() 95 struct tee_shm *device_shm = NULL; in __optee_enumerate_devices()
|
/linux-6.1.9/drivers/tee/amdtee/ |
D | amdtee_private.h | 148 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);
|
D | shm_pool.c | 11 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()
|
D | core.c | 153 u32 get_buffer_id(struct tee_shm *shm) in get_buffer_id() 340 int amdtee_map_shmem(struct tee_shm *shm) in amdtee_map_shmem() 382 void amdtee_unmap_shmem(struct tee_shm *shm) in amdtee_unmap_shmem()
|
/linux-6.1.9/security/keys/trusted-keys/ |
D | trusted_tee.c | 55 struct tee_shm *shm_pool; 68 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_seal() 127 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_unseal() 186 struct tee_shm *reg_shm = NULL; in trusted_tee_get_random()
|
/linux-6.1.9/drivers/char/tpm/ |
D | tpm_ftpm_tee.h | 37 struct tee_shm *shm;
|
D | tpm_ftpm_tee.c | 82 struct tee_shm *shm = pvt_data->shm; in ftpm_tee_tpm_op_send()
|
/linux-6.1.9/drivers/firmware/broadcom/ |
D | tee_bnxt_fw.c | 61 struct tee_shm *fw_shm_pool; 189 struct tee_shm *fw_shm_pool; in tee_bnxt_fw_probe()
|
/linux-6.1.9/drivers/char/hw_random/ |
D | optee-rng.c | 66 struct tee_shm *entropy_shm_pool; 146 struct tee_shm *entropy_shm_pool = NULL; in optee_rng_init()
|
/linux-6.1.9/drivers/rtc/ |
D | rtc-optee.c | 51 struct tee_shm *shm; 247 struct tee_shm *shm; in optee_rtc_probe()
|