Lines Matching full: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);
203 * subsystem and from drivers that implements their own shm pool manager.
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);
242 * tee_shm_pool_alloc() - Create a shared memory pool from shm managers
255 * tee_shm_pool_mgr_alloc_res_mem() - Create a shm manager for reserved
352 * @shm: Shared memory handle
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()
362 * @shm: Handle to shared memory to free
364 void tee_shm_free(struct tee_shm *shm);
368 * @shm: Shared memory handle
370 void tee_shm_put(struct tee_shm *shm);
374 * @shm: Shared memory handle
379 int tee_shm_va2pa(struct tee_shm *shm, void *va, phys_addr_t *pa);
383 * @shm: Shared memory handle
388 int tee_shm_pa2va(struct tee_shm *shm, phys_addr_t pa, void **va);
392 * @shm: Shared memory handle
397 void *tee_shm_get_va(struct tee_shm *shm, size_t offs);
401 * @shm: Shared memory handle
407 int tee_shm_get_pa(struct tee_shm *shm, size_t offs, phys_addr_t *pa);
411 * @shm: Shared memory handle
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()
421 * @shm: Shared memory handle
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()
434 * @shm: Shared memory handle
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()
444 * @shm: Shared memory handle
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()