Lines Matching refs:shm
66 struct tee_shm *shm; member
114 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
117 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
235 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm,
237 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
355 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered() argument
357 return shm && (shm->flags & TEE_SHM_REGISTER); 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() argument
416 return shm->size; in tee_shm_get_size()
425 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages() argument
428 *num_pages = shm->num_pages; in tee_shm_get_pages()
429 return shm->pages; 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() argument
439 return shm->offset; in tee_shm_get_page_offset()
447 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id() argument
449 return shm->id; in tee_shm_get_id()