Lines Matching refs:tee_shm
34 static void release_registered_pages(struct tee_shm *shm) in release_registered_pages()
46 static void tee_shm_release(struct tee_device *teedev, struct tee_shm *shm) in tee_shm_release()
67 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper()
71 struct tee_shm *shm; in shm_alloc_helper()
129 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf()
133 struct tee_shm *shm; in tee_shm_alloc_user_buf()
174 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf()
198 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf()
206 int tee_dyn_shm_alloc_helper(struct tee_shm *shm, size_t size, size_t align, in tee_dyn_shm_alloc_helper()
208 struct tee_shm *shm, in tee_dyn_shm_alloc_helper()
257 void tee_dyn_shm_free_helper(struct tee_shm *shm, in tee_dyn_shm_free_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()
367 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx, in tee_shm_register_user_buf()
372 struct tee_shm *shm; in tee_shm_register_user_buf()
416 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, in tee_shm_register_kernel_buf()
439 struct tee_shm *shm = filp->private_data; in tee_shm_fop_mmap()
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()
497 void *tee_shm_get_va(struct tee_shm *shm, size_t offs) in tee_shm_get_va()
515 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa) in tee_shm_get_pa()
532 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) in tee_shm_get_from_id()
535 struct tee_shm *shm; in tee_shm_get_from_id()
561 void tee_shm_put(struct tee_shm *shm) in tee_shm_put()