Lines Matching refs:tee_shm
32 struct tee_shm;
62 struct tee_shm *shm;
110 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
113 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
187 struct tee_shm { struct
219 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm, argument
221 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
319 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags);
331 struct tee_shm *tee_shm_priv_alloc(struct tee_device *teedev, size_t size);
342 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr,
350 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered()
359 void tee_shm_free(struct tee_shm *shm);
365 void tee_shm_put(struct tee_shm *shm);
374 int tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa);
383 int tee_shm_pa2va(struct tee_shm *shm, phys_addr_t pa, void **va);
392 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
402 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
409 static inline size_t tee_shm_get_size(struct tee_shm *shm) in tee_shm_get_size()
420 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages()
432 static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) in tee_shm_get_page_offset()
442 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id()
454 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id);