Lines Matching +full:shared +full:- +full:memory

2  * Copyright (c) 2015-2016, Linaro Limited
49 #define TEE_GEN_CAP_REG_MEM (1 << 2)/* Supports registering shared memory */
52 #define TEE_MEMREF_NULL (__u64)(-1) /* NULL MemRef Buffer */
61 * OP-TEE specific capabilities
66 * struct tee_ioctl_version_data - TEE version
82 * TEE_IOC_VERSION - query version of TEE
91 * struct tee_ioctl_shm_alloc_data - Shared memory allocate argument
92 * @size: [in/out] Size of shared memory to allocate
94 * @id: [out] Identifier of the shared memory
107 * TEE_IOC_SHM_ALLOC - allocate shared memory
109 * Allocates shared memory between the user space process and secure OS.
113 * The returned file descriptor is used to map the shared memory into user
114 * space. The shared memory is freed when the descriptor is closed and the
115 * memory is unmapped.
121 * struct tee_ioctl_buf_data - Variable sized buffer
146 * These defines shared memory reference parameters (struct
176 * Disallow user-space to use GP implementation specific login
177 * method range (0x80000000 - 0xBFFFFFFF). This range is rather
186 * struct tee_ioctl_param - parameter
188 * @a: if a memref, offset into the shared memory object, else a value parameter
190 * @c: if a memref, shared memory identifier, else a value parameter
197 * Shared memory is allocated with TEE_IOC_SHM_ALLOC which returns an
198 * identifier representing the shared memory object. A memref can reference
199 * a part of a shared memory by specifying an offset (@a) and size (@b) of
200 * the object. To supply the entire shared memory object set the offset
206 * (section 3.2.5 memory references), which can be found at
211 * memory reference.
223 * struct tee_ioctl_open_session_arg - Open session argument
247 * TEE_IOC_OPEN_SESSION - opens a session to a Trusted Application
257 * struct tee_ioctl_invoke_func_arg - Invokes a function in a Trusted
278 * TEE_IOC_INVOKE - Invokes a function in a Trusted Application
287 * struct tee_ioctl_cancel_arg - Cancels an open session or invoke ioctl
297 * TEE_IOC_CANCEL - Cancels an open session or invoke
303 * struct tee_ioctl_close_session_arg - Closes an open session
311 * TEE_IOC_CLOSE_SESSION - Closes a session
317 * struct tee_iocl_supp_recv_arg - Receive a request for a supplicant function
321 * @num_params is the number of params that tee-supplicant has room to
323 * tee-supplicant receives when output.
333 * TEE_IOC_SUPPL_RECV - Receive a request for a supplicant function
342 * struct tee_iocl_supp_send_arg - Send a response to a received request
354 * TEE_IOC_SUPPL_SEND - Send a response to a received request
363 * struct tee_ioctl_shm_register_data - Shared memory register argument
364 * @addr: [in] Start address of shared memory to register
365 * @length: [in/out] Length of shared memory to register
367 * @id: [out] Identifier of the shared memory
381 * TEE_IOC_SHM_REGISTER - Register shared memory argument
383 * Registers shared memory between the user space process and secure OS.
387 * The shared memory is unregisterred when the descriptor is closed.
396 * - closes the device file descriptor
397 * - closes a file descriptor connected to allocated shared memory
398 * mmap(): maps shared memory into user space using information from struct
400 * munmap(): unmaps previously shared memory