Lines Matching refs:shm
63 struct tee_shm *shm; member
111 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
114 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
237 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm,
239 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
284 static inline bool tee_shm_is_dynamic(struct tee_shm *shm) in tee_shm_is_dynamic() argument
286 return shm && (shm->flags & TEE_SHM_DYNAMIC); 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() argument
327 return shm->size; in tee_shm_get_size()
336 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages() argument
339 *num_pages = shm->num_pages; in tee_shm_get_pages()
340 return shm->pages; 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() argument
350 return shm->offset; in tee_shm_get_page_offset()
358 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id() argument
360 return shm->id; in tee_shm_get_id()