Lines Matching +full:shared +full:- +full:memory
1 /* SPDX-License-Identifier: GPL-2.0-only */
24 #define TEE_SHM_DYNAMIC BIT(0) /* Dynamic shared memory registered */
26 #define TEE_SHM_USER_MAPPED BIT(1) /* Memory mapped in user space */
27 #define TEE_SHM_POOL BIT(2) /* Memory allocated from pool */
28 #define TEE_SHM_PRIV BIT(3) /* Memory private to TEE driver */
34 * struct tee_device - TEE Device representation
44 * @idr: register of user space shared memory objects allocated or
46 * @pool: shared memory pool
66 * struct tee_driver_ops - driver operations vtable
77 * @shm_register: register shared memory buffer in TEE
78 * @shm_unregister: unregister shared memory buffer in TEE
105 * struct tee_desc - Describes the TEE driver to the subsystem
120 * tee_device_alloc() - Allocate a new struct tee_device instance
123 * @pool: Shared memory pool, NULL if not used
137 * tee_device_register() - Registers a TEE device
148 * tee_device_unregister() - Removes a TEE device
158 * tee_device_set_dev_groups() - Set device attribute groups
170 * tee_session_calc_client_uuid() - Calculates client UUID for session
186 * struct tee_shm_pool - shared memory pool
188 * @private_data: private data for the shared memory manager
196 * struct tee_shm_pool_ops - shared memory pool operations
197 * @alloc: called when allocating shared memory
198 * @free: called when freeing shared memory
209 * tee_shm_pool_alloc_res_mem() - Create a shm manager for reserved memory
221 * tee_shm_pool_free() - Free a shared memory pool
222 * @pool: The shared memory pool to free
224 * The must be no remaining shared memory allocated from this pool when
229 pool->ops->destroy_pool(pool); in tee_shm_pool_free()
233 * tee_get_drvdata() - Return driver_data pointer
239 * tee_shm_alloc_priv_buf() - Allocate shared memory for private use by specific
241 * @ctx: The TEE context for shared memory allocation
242 * @size: Shared memory allocation size
258 * tee_shm_is_dynamic() - Check if shared memory object is of the dynamic kind
259 * @shm: Shared memory handle
260 * @returns true if object is dynamic shared memory
264 return shm && (shm->flags & TEE_SHM_DYNAMIC); in tee_shm_is_dynamic()
268 * tee_shm_put() - Decrease reference count on a shared memory handle
269 * @shm: Shared memory handle
274 * tee_shm_get_id() - Get id of a shared memory object
275 * @shm: Shared memory handle
280 return shm->id; in tee_shm_get_id()
284 * tee_shm_get_from_id() - Find shared memory object and increase reference
286 * @ctx: Context owning the shared memory
287 * @id: Id of shared memory object
294 switch (param->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { in tee_param_is_memref()
305 * teedev_open() - Open a struct tee_device
313 * teedev_close_context() - closes a struct tee_context