Lines Matching full:memory
23 #define TEE_SHM_MAPPED BIT(0) /* Memory mapped by the kernel */
24 #define TEE_SHM_DMA_BUF BIT(1) /* Memory with dma-buf handle */
25 #define TEE_SHM_EXT_DMA_BUF BIT(2) /* Memory with dma-buf handle */
26 #define TEE_SHM_REGISTER BIT(3) /* Memory registered in secure world */
27 #define TEE_SHM_USER_MAPPED BIT(4) /* Memory mapped in user space */
28 #define TEE_SHM_POOL BIT(5) /* Memory allocated from pool */
29 #define TEE_SHM_KERNEL_MAPPED BIT(6) /* Memory mapped in kernel space */
30 #define TEE_SHM_PRIV BIT(7) /* Memory private to TEE driver */
40 * @list_shm: List of shared memory object owned by this context
45 * shared memory release.
52 * memory buffer with a NULL pointer.
94 * @shm_register: register shared memory buffer in TEE
95 * @shm_unregister: unregister shared memory buffer in TEE
139 * @pool: Shared memory pool, NULL if not used
190 * struct tee_shm - shared memory object
192 * @paddr: physical address of the shared memory
193 * @kaddr: virtual address of the shared memory
194 * @size: size of shared memory
200 * @id: unique id of a shared memory object on this device
219 * struct tee_shm_pool_mgr - shared memory manager
221 * @private_data: private data for the shared memory manager
229 * struct tee_shm_pool_mgr_ops - shared memory pool manager operations
230 * @alloc: called when allocating shared memory
231 * @free: called when freeing shared memory
242 * tee_shm_pool_alloc() - Create a shared memory pool from shm managers
243 * @priv_mgr: manager for driver private shared memory allocations
244 * @dmabuf_mgr: manager for dma-buf shared memory allocations
256 * memory
269 * tee_shm_pool_mgr_destroy() - Free a shared memory manager
278 * memory pool
290 * tee_shm_pool_alloc_res_mem() - Create a shared memory pool from reserved
291 * memory range
292 * @priv_info: Information for driver private shared memory pool
293 * @dmabuf_info: Information for dma-buf shared memory pool
307 * tee_shm_pool_free() - Free a shared memory pool
308 * @pool: The shared memory pool to free
310 * The must be no remaining shared memory allocated from this pool when
322 * tee_shm_alloc() - Allocate shared memory
323 * @ctx: Context that allocates the shared memory
324 * @size: Requested size of shared memory
325 * @flags: Flags setting properties for the requested shared memory.
327 * Memory allocated as global shared memory is automatically freed when the
330 * TEE_SHM_DMA_BUF global shared memory will be allocated and associated
331 * with a dma-buf handle, else driver private memory.
339 * tee_shm_register() - Register shared memory buffer
340 * @ctx: Context that registers the shared memory
343 * @flags: Flags setting properties for the requested shared memory.
351 * tee_shm_is_registered() - Check if shared memory object in registered in TEE
352 * @shm: Shared memory handle
361 * tee_shm_free() - Free shared memory
362 * @shm: Handle to shared memory to free
367 * tee_shm_put() - Decrease reference count on a shared memory handle
368 * @shm: Shared memory handle
374 * @shm: Shared memory handle
383 * @shm: Shared memory handle
391 * tee_shm_get_va() - Get virtual address of a shared memory plus an offset
392 * @shm: Shared memory handle
393 * @offs: Offset from start of this shared memory
394 * @returns virtual address of the shared memory + offs if offs is within
395 * the bounds of this shared memory, else an ERR_PTR
400 * tee_shm_get_pa() - Get physical address of a shared memory plus an offset
401 * @shm: Shared memory handle
402 * @offs: Offset from start of this shared memory
404 * @returns 0 if offs is within the bounds of this shared memory, else an
410 * tee_shm_get_size() - Get size of shared memory buffer
411 * @shm: Shared memory handle
412 * @returns size of shared memory
421 * @shm: Shared memory handle
434 * @shm: Shared memory handle
443 * tee_shm_get_id() - Get id of a shared memory object
444 * @shm: Shared memory handle
453 * tee_shm_get_from_id() - Find shared memory object and increase reference
455 * @ctx: Context owning the shared memory
456 * @id: Id of shared memory object