Home
last modified time | relevance | path

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

/linux/include/linux/
H A Dtee_drv.h65 struct tee_shm { struct
82 struct tee_shm *shm; argument
118 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size);
128 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx,
139 struct tee_shm *tee_shm_register_fd(struct tee_context *ctx, int fd);
145 void tee_shm_free(struct tee_shm *shm);
154 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
164 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
171 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size()
182 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages()
[all …]
/linux/drivers/tee/
H A Dtee_shm.c21 struct tee_shm shm;
26 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages()
36 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release()
74 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper()
78 struct tee_shm *shm; in shm_alloc_helper()
136 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf()
140 struct tee_shm *shm; in tee_shm_alloc_user_buf()
181 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf()
189 struct tee_shm *tee_shm_register_fd(struct tee_context *ctx, int fd) in tee_shm_register_fd()
261 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf()
[all …]
H A Dtee_heap.c342 struct tee_shm *shm, in tee_heap_update_from_dma_buf()
343 struct tee_shm **parent_shm) in tee_heap_update_from_dma_buf()
384 struct tee_shm *shm __always_unused, in tee_heap_update_from_dma_buf()
385 struct tee_shm **parent_shm __always_unused) in tee_heap_update_from_dma_buf()
435 struct tee_shm *shm, in protmem_pool_op_static_update_shm()
436 struct tee_shm **parent_shm) in protmem_pool_op_static_update_shm()
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 Dtee_core.c260 struct tee_shm *shm; in tee_ioctl_shm_alloc()
296 struct tee_shm *shm; in tee_ioctl_shm_register()
330 struct tee_shm *shm; in tee_ioctl_shm_register_fd()
366 struct tee_shm *shm; in param_from_user_memref()
/linux/drivers/tee/qcomtee/
H A Dshm.c44 struct tee_shm *shm; in qcomtee_msg_buffers_alloc()
102 static int qcomtee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in qcomtee_shm_register()
110 static int qcomtee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in qcomtee_shm_unregister()
117 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm, in pool_op_alloc()
123 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm) in pool_op_free()
H A Dmem_obj.c37 struct tee_shm *shm;
91 struct tee_shm *shm; in qcomtee_memobj_param_to_object()
H A Dqcomtee_object.h168 struct tee_shm *in_shm;
169 struct tee_shm *out_shm;
/linux/drivers/tee/optee/
H A Dsmc_abi.c86 struct tee_shm *shm; in from_msg_param_tmp_mem()
93 shm = (struct tee_shm *)(unsigned long)mp->u.tmem.shm_ref; in from_msg_param_tmp_mem()
113 struct tee_shm *shm; in from_msg_param_reg_mem()
118 shm = (struct tee_shm *)(unsigned long)mp->u.rmem.shm_ref; in from_msg_param_reg_mem()
324 struct tee_shm *shm; in __optee_disable_shm_cache()
453 static int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
459 struct tee_shm *shm_arg; in optee_shm_register()
521 static int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister()
525 struct tee_shm *shm_arg; in optee_shm_unregister()
562 static int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register_supp()
[all …]
H A Dprotmem.c24 struct tee_shm *protmem;
182 struct tee_shm *shm, in protmem_pool_op_dyn_update_shm()
183 struct tee_shm **parent_shm) in protmem_pool_op_dyn_update_shm()
221 struct tee_shm *shm_param = NULL; in get_protmem_config()
223 struct tee_shm *shm; in get_protmem_config()
H A Drpc.c215 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl()
220 struct tee_shm *shm; in optee_rpc_cmd_alloc_suppl()
238 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl()
/linux/drivers/tee/amdtee/
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()
/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()
/linux/drivers/tee/tstee/
H A Dcore.c167 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/firmware/qcom/
H A Dqcom_pas_tee.c143 struct tee_shm *mdata_shm; in qcom_pas_tee_init_image()
213 DEFINE_FREE(shm_free, struct tee_shm *, tee_shm_free(_T)) in DEFINE_FREE() argument
247 struct tee_shm *rt_shm __free(shm_free) = in DEFINE_FREE()
392 struct tee_shm *mdata_shm = ctx->ptr; in qcom_pas_tee_metadata_release()
/linux/drivers/char/tpm/
H A Dtpm_ftpm_tee.h32 struct tee_shm *shm;
/linux/drivers/nvmem/
H A Dstm32-bsec-optee-ta.c142 struct tee_shm *shm; in stm32_bsec_optee_ta_read()
207 { struct tee_shm *shm; in stm32_bsec_optee_ta_write()
/linux/drivers/rtc/
H A Drtc-optee.c146 struct tee_shm *shm;
554 struct tee_shm *shm; in optee_rtc_probe()
/linux/drivers/firmware/efi/stmm/
H A Dtee_stmm_efi.c57 struct tee_shm *shm = NULL; in tee_mm_communicate()
/linux/drivers/platform/x86/amd/pmf/
H A Dpmf.h650 struct tee_shm *fw_shm_pool;