Lines Matching +full:close +full:- +full:range
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2015-2016, Linaro Limited
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 */
38 * struct tee_context - driver specific context on file pointer data
47 * wait for tee-supplicant daemon to be started if not present
50 * non-blocking in nature.
84 * struct tee_driver_ops - driver operations vtable
89 * @close_session: close a session
121 * struct tee_desc - Describes the TEE driver to the subsystem
136 * tee_device_alloc() - Allocate a new struct tee_device instance
153 * tee_device_register() - Registers a TEE device
164 * tee_device_unregister() - Removes a TEE device
174 * tee_session_calc_client_uuid() - Calculates client UUID for session
190 * struct tee_shm - shared memory object
219 * struct tee_shm_pool_mgr - shared memory manager
229 * struct tee_shm_pool_mgr_ops - shared memory pool manager operations
242 * tee_shm_pool_alloc() - Create a shared memory pool from shm managers
244 * @dmabuf_mgr: manager for dma-buf shared memory allocations
246 * Allocation with the flag TEE_SHM_DMA_BUF set will use the range supplied
247 * in @dmabuf, others will use the range provided by @priv.
255 * tee_shm_pool_mgr_alloc_res_mem() - Create a shm manager for reserved
269 * tee_shm_pool_mgr_destroy() - Free a shared memory manager
273 poolm->ops->destroy_poolmgr(poolm); in tee_shm_pool_mgr_destroy()
277 * struct tee_shm_pool_mem_info - holds information needed to create a shared
290 * tee_shm_pool_alloc_res_mem() - Create a shared memory pool from reserved
291 * memory range
293 * @dmabuf_info: Information for dma-buf shared memory pool
297 * Allocation with the flag TEE_SHM_DMA_BUF set will use the range supplied
298 * in @dmabuf, others will use the range provided by @priv.
307 * tee_shm_pool_free() - Free a shared memory pool
316 * tee_get_drvdata() - Return driver_data pointer
322 * tee_shm_alloc() - Allocate shared memory
331 * with a dma-buf handle, else driver private memory.
339 * tee_shm_register() - Register shared memory buffer
351 * tee_shm_is_registered() - Check if shared memory object in registered in TEE
357 return shm && (shm->flags & TEE_SHM_REGISTER); in tee_shm_is_registered()
361 * tee_shm_free() - Free shared memory
367 * tee_shm_put() - Decrease reference count on a shared memory handle
373 * tee_shm_va2pa() - Get physical address of a virtual address
382 * tee_shm_pa2va() - Get virtual address of a physical address
391 * tee_shm_get_va() - Get virtual address of a shared memory plus an offset
400 * tee_shm_get_pa() - Get physical address of a shared memory plus an offset
410 * tee_shm_get_size() - Get size of shared memory buffer
416 return shm->size; in tee_shm_get_size()
420 * tee_shm_get_pages() - Get list of pages that hold shared buffer
428 *num_pages = shm->num_pages; in tee_shm_get_pages()
429 return shm->pages; in tee_shm_get_pages()
433 * tee_shm_get_page_offset() - Get shared buffer offset from page start
439 return shm->offset; in tee_shm_get_page_offset()
443 * tee_shm_get_id() - Get id of a shared memory object
449 return shm->id; in tee_shm_get_id()
453 * tee_shm_get_from_id() - Find shared memory object and increase reference
462 * tee_client_open_context() - Open a TEE context
481 * tee_client_close_context() - Close a TEE context
482 * @ctx: TEE context to close
490 * tee_client_get_version() - Query version of TEE
498 * tee_client_open_session() - Open a session to a Trusted Application
504 * Returns < 0 on error else see @arg->ret for result. If @arg->ret
505 * is TEEC_SUCCESS the session identifier is available in @arg->session.
512 * tee_client_close_session() - Close a session to a Trusted Application
522 * tee_client_invoke_func() - Invoke a function in a Trusted Application
528 * Returns < 0 on error else see @arg->ret for result.
535 * tee_client_cancel_req() - Request cancellation of the previous open-session
536 * or invoke-command operations in a Trusted Application
548 switch (param->attr & TEE_IOCTL_PARAM_ATTR_TYPE_MASK) { in tee_param_is_memref()
561 * struct tee_client_device - tee based device
573 * struct tee_client_driver - tee client driver