Lines Matching refs:shm
62 struct tee_shm *shm; member
110 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
113 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
219 int (*alloc)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm,
221 void (*free)(struct tee_shm_pool_mgr *poolmgr, struct tee_shm *shm);
350 static inline bool tee_shm_is_registered(struct tee_shm *shm) in tee_shm_is_registered() argument
352 return shm && (shm->flags & TEE_SHM_REGISTER); 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() argument
411 return shm->size; in tee_shm_get_size()
420 static inline struct page **tee_shm_get_pages(struct tee_shm *shm, in tee_shm_get_pages() argument
423 *num_pages = shm->num_pages; in tee_shm_get_pages()
424 return shm->pages; 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() argument
434 return shm->offset; in tee_shm_get_page_offset()
442 static inline int tee_shm_get_id(struct tee_shm *shm) in tee_shm_get_id() argument
444 return shm->id; in tee_shm_get_id()