Lines Matching full: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);
204 * subsystem and from drivers that implements their own shm pool manager.
237 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm,
239 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
244 * tee_shm_pool_alloc_res_mem() - Create a shm manager for reserved memory
281 * @shm: Shared memory handle
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()
291 * @shm: Handle to shared memory to free
293 void tee_shm_free(struct tee_shm *shm);
297 * @shm: Shared memory handle
299 void tee_shm_put(struct tee_shm *shm);
303 * @shm: Shared memory handle
308 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
312 * @shm: Shared memory handle
318 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
322 * @shm: Shared memory handle
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()
332 * @shm: Shared memory handle
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()
345 * @shm: Shared memory handle
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()
355 * @shm: Shared memory handle
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()