Lines Matching refs:tee_shm
34 struct tee_shm;
66 struct tee_shm *shm;
114 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
117 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
205 struct tee_shm { struct
235 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm, argument
237 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
335 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags);
336 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size);
347 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,
355 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered()
364 void tee_shm_free(struct tee_shm *shm);
370 void tee_shm_put(struct tee_shm *shm);
379 int tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa);
388 int tee_shm_pa2va(struct tee_shm *shm, phys_addr_t pa, void **va);
397 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
407 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
414 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size()
425 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages()
437 static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) in tee_shm_get_page_offset()
447 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id()
459 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id);