Lines Matching refs:tee_shm
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,
284 static inline bool tee_shm_is_dynamic(struct tee_shm *shm) in tee_shm_is_dynamic()
293 void tee_shm_free(struct tee_shm *shm);
299 void tee_shm_put(struct tee_shm *shm);
308 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
318 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
325 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size()
336 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages()
348 static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) in tee_shm_get_page_offset()
358 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id()
370 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id);