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 */
62 * OP-TEE specific capabilities
67 * struct tee_ioctl_version_data - TEE version
83 * TEE_IOC_VERSION - query version of TEE
92 * struct tee_ioctl_shm_alloc_data - Shared memory allocate argument
93 * @size: [in/out] Size of shared memory to allocate
95 * @id: [out] Identifier of the shared memory
108 * TEE_IOC_SHM_ALLOC - allocate shared memory
110 * Allocates shared memory between the user space process and secure OS.
114 * The returned file descriptor is used to map the shared memory into user
115 * space. The shared memory is freed when the descriptor is closed and the
116 * memory is unmapped.
122 * struct tee_ioctl_buf_data - Variable sized buffer
147 * These defines shared memory reference parameters (struct
177 * Disallow user-space to use GP implementation specific login
178 * method range (0x80000000 - 0xBFFFFFFF). This range is rather
187 * struct tee_ioctl_param - parameter
189 * @a: if a memref, offset into the shared memory object, else a value parameter
191 * @c: if a memref, shared memory identifier, else a value parameter
198 * Shared memory is allocated with TEE_IOC_SHM_ALLOC which returns an
199 * identifier representing the shared memory object. A memref can reference
200 * a part of a shared memory by specifying an offset (@a) and size (@b) of
201 * the object. To supply the entire shared memory object set the offset
207 * (section 3.2.5 memory references), which can be found at
212 * memory reference.
224 * struct tee_ioctl_open_session_arg - Open session argument
248 * TEE_IOC_OPEN_SESSION - opens a session to a Trusted Application
258 * struct tee_ioctl_invoke_func_arg - Invokes a function in a Trusted
279 * TEE_IOC_INVOKE - Invokes a function in a Trusted Application
288 * struct tee_ioctl_cancel_arg - Cancels an open session or invoke ioctl
298 * TEE_IOC_CANCEL - Cancels an open session or invoke
304 * struct tee_ioctl_close_session_arg - Closes an open session
312 * TEE_IOC_CLOSE_SESSION - Closes a session
318 * struct tee_iocl_supp_recv_arg - Receive a request for a supplicant function
322 * @num_params is the number of params that tee-supplicant has room to
324 * tee-supplicant receives when output.
334 * TEE_IOC_SUPPL_RECV - Receive a request for a supplicant function
343 * struct tee_iocl_supp_send_arg - Send a response to a received request
355 * TEE_IOC_SUPPL_SEND - Send a response to a received request
364 * struct tee_ioctl_shm_register_data - Shared memory register argument
365 * @addr: [in] Start address of shared memory to register
366 * @length: [in/out] Length of shared memory to register
368 * @id: [out] Identifier of the shared memory
382 * TEE_IOC_SHM_REGISTER - Register shared memory argument
384 * Registers shared memory between the user space process and secure OS.
388 * The shared memory is unregisterred when the descriptor is closed.
397 * - closes the device file descriptor
398 * - closes a file descriptor connected to allocated shared memory
399 * mmap(): maps shared memory into user space using information from struct
401 * munmap(): unmaps previously shared memory