| /linux/include/linux/ |
| A D | tee_core.h | 98 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm, 101 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm); 202 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm, 204 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm); 249 struct tee_shm *shm, 253 void tee_dyn_shm_free_helper(struct tee_shm *shm, 255 struct tee_shm *shm)); 262 static inline bool tee_shm_is_dynamic(struct tee_shm *shm) in tee_shm_is_dynamic() 271 void tee_shm_put(struct tee_shm *shm); 278 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id() [all …]
|
| A D | tee_drv.h | 65 struct tee_shm { struct 82 struct tee_shm *shm; argument 106 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); 116 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, 123 void tee_shm_free(struct tee_shm *shm); 132 void *tee_shm_get_va(struct tee_shm *shm, size_t offs); 142 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa); 149 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size() 160 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages() 172 static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) in tee_shm_get_page_offset()
|
| /linux/drivers/tee/ |
| A D | tee_shm.c | 71 struct tee_shm *shm; in shm_alloc_helper() 133 struct tee_shm *shm; in tee_shm_alloc_user_buf() 208 struct tee_shm *shm, in tee_dyn_shm_alloc_helper() 259 struct tee_shm *shm)) in tee_dyn_shm_free_helper() 270 static struct tee_shm * 275 struct tee_shm *shm; in register_shm_helper() 372 struct tee_shm *shm; in tee_shm_register_user_buf() 465 int tee_shm_get_fd(struct tee_shm *shm) in tee_shm_get_fd() 484 void tee_shm_free(struct tee_shm *shm) in tee_shm_free() 535 struct tee_shm *shm; in tee_shm_get_from_id() [all …]
|
| A D | tee_private.h | 15 int tee_shm_get_fd(struct tee_shm *shm); 23 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size); 24 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
|
| A 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()
|
| A D | Makefile | 4 tee-objs += tee_shm.o
|
| A 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/drivers/firmware/arm_scmi/transports/ |
| A D | optee.c | 131 struct tee_shm *tee_shm; member 231 if (channel->tee_shm) in get_channel() 327 if (!channel->tee_shm) in scmi_optee_clear_channel() 337 if (IS_ERR(channel->tee_shm)) { in setup_dynamic_shmem() 420 if (channel->tee_shm) in scmi_optee_chan_setup() 421 tee_shm_free(channel->tee_shm); in scmi_optee_chan_setup() 444 if (channel->tee_shm) { in scmi_optee_chan_free() 445 tee_shm_free(channel->tee_shm); in scmi_optee_chan_free() 446 channel->tee_shm = NULL; in scmi_optee_chan_free() 463 if (channel->tee_shm) { in scmi_optee_send_message() [all …]
|
| /linux/drivers/tee/optee/ |
| A D | ffa_abi.c | 42 struct tee_shm *shm; 62 struct tee_shm *shm = NULL; in optee_shm_from_ffa_handle() 127 struct tee_shm *shm = NULL; in from_msg_param_ffa_mem() 193 struct tee_shm *shm = p->u.memref.shm; in to_msg_param_ffa_mem() 315 struct tee_shm *shm) in optee_ffa_shm_unregister() 344 struct tee_shm *shm) in optee_ffa_shm_unregister_supp() 376 struct tee_shm *shm, size_t size, size_t align) in pool_ffa_op_alloc() 383 struct tee_shm *shm) in pool_ffa_op_free() 431 struct tee_shm *shm; in handle_ffa_rpc_func_cmd_shm_alloc() 471 struct tee_shm *shm; in handle_ffa_rpc_func_cmd_shm_free() [all …]
|
| A D | smc_abi.c | 86 struct tee_shm *shm; in from_msg_param_tmp_mem() 113 struct tee_shm *shm; in from_msg_param_reg_mem() 324 struct tee_shm *shm; in __optee_disable_shm_cache() 459 struct tee_shm *shm_arg; in optee_shm_register() 525 struct tee_shm *shm_arg; in optee_shm_unregister() 574 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() 681 struct tee_shm *shm; in handle_rpc_func_cmd_shm_alloc() 820 struct tee_shm *shm; in optee_handle_rpc() [all …]
|
| A D | optee_private.h | 184 struct tee_shm *shm_arg, u_int offs, 352 struct tee_shm **shm_ret, 359 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz); 360 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm);
|
| A D | call.c | 38 struct tee_shm *shm; 266 struct tee_shm **shm_ret, in optee_get_msg_arg() 369 struct tee_shm *shm; in optee_open_session() 473 struct tee_shm *shm; in optee_close_session_helper() 520 struct tee_shm *shm; in optee_invoke_func() 574 struct tee_shm *shm; in optee_cancel_req() 649 struct tee_shm *shm; in simple_call_with_arg()
|
| A D | device.c | 23 struct tee_shm *device_shm, u32 *shm_size, in get_devices() 116 struct tee_shm *device_shm = NULL; in __optee_enumerate_devices()
|
| A D | rpc.c | 217 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl() 222 struct tee_shm *shm; in optee_rpc_cmd_alloc_suppl() 240 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl()
|
| /linux/drivers/tee/amdtee/ |
| A 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);
|
| A 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()
|
| A D | core.c | 152 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/security/keys/trusted-keys/ |
| A D | trusted_tee.c | 55 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()
|
| /linux/drivers/tee/tstee/ |
| A D | core.c | 167 struct tee_shm *shm = NULL; in tstee_invoke_func() 242 static int tstee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in tstee_shm_register() 307 static int tstee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in tstee_shm_unregister() 355 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_alloc() 361 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_free()
|
| /linux/drivers/char/tpm/ |
| A D | tpm_ftpm_tee.h | 37 struct tee_shm *shm;
|
| A D | tpm_ftpm_tee.c | 81 struct tee_shm *shm = pvt_data->shm; in ftpm_tee_tpm_op_send()
|
| /linux/drivers/firmware/broadcom/ |
| A 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/drivers/char/hw_random/ |
| A D | optee-rng.c | 66 struct tee_shm *entropy_shm_pool; 146 struct tee_shm *entropy_shm_pool = NULL; in optee_rng_init()
|
| /linux/drivers/nvmem/ |
| A D | stm32-bsec-optee-ta.c | 142 struct tee_shm *shm; in stm32_bsec_optee_ta_read() 207 { struct tee_shm *shm; in stm32_bsec_optee_ta_write()
|
| /linux/drivers/rtc/ |
| A D | rtc-optee.c | 51 struct tee_shm *shm; 247 struct tee_shm *shm; in optee_rtc_probe()
|