Lines Matching defs:shm
98 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
101 int (*shm_unregister)(struct tee_context *ctx, struct tee_shm *shm);
190 int (*alloc)(struct tee_shm_pool *pool, struct tee_shm *shm,
192 void (*free)(struct tee_shm_pool *pool, struct tee_shm *shm);
197 * tee_shm_pool_alloc_res_mem() - Create a shm manager for reserved memory
235 int tee_dyn_shm_alloc_helper(struct tee_shm *shm, size_t size, size_t align,
237 struct tee_shm *shm,
241 void tee_dyn_shm_free_helper(struct tee_shm *shm,
243 struct tee_shm *shm));
247 * @shm: Shared memory handle
250 static inline bool tee_shm_is_dynamic(struct tee_shm *shm)
252 return shm && (shm->flags & TEE_SHM_DYNAMIC);
257 * @shm: Shared memory handle
259 void tee_shm_put(struct tee_shm *shm);
263 * @shm: Shared memory handle
266 static inline int tee_shm_get_id(struct tee_shm *shm)
268 return shm->id;