/linux-6.12.1/include/linux/ |
D | tee_core.h | 83 int (*open)(struct tee_context *ctx); 84 void (*release)(struct tee_context *ctx); 85 int (*open_session)(struct tee_context *ctx, 88 int (*close_session)(struct tee_context *ctx, u32 session); 89 int (*system_session)(struct tee_context *ctx, u32 session); 90 int (*invoke_func)(struct tee_context *ctx, 93 int (*cancel_req)(struct tee_context *ctx, u32 cancel_id, u32 session); 94 int (*supp_recv)(struct tee_context *ctx, u32 *func, u32 *num_params, 96 int (*supp_send)(struct tee_context *ctx, u32 ret, u32 num_params, 98 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm, [all …]
|
D | tee_drv.h | 39 struct tee_context { struct 66 struct tee_context *ctx; argument 106 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size); 116 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, 190 struct tee_context * 191 tee_client_open_context(struct tee_context *start, 203 void tee_client_close_context(struct tee_context *ctx); 210 void tee_client_get_version(struct tee_context *ctx, 223 int tee_client_open_session(struct tee_context *ctx, 235 int tee_client_close_session(struct tee_context *ctx, u32 session); [all …]
|
/linux-6.12.1/drivers/tee/optee/ |
D | optee_private.h | 114 struct tee_context *ctx; 183 int (*do_call_with_arg)(struct tee_context *ctx, 221 struct tee_context *ctx; 280 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, 287 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, 289 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params, 292 int optee_open_session(struct tee_context *ctx, 295 int optee_system_session(struct tee_context *ctx, u32 session); 296 int optee_close_session_helper(struct tee_context *ctx, u32 session, 298 int optee_close_session(struct tee_context *ctx, u32 session); [all …]
|
D | core.c | 92 int optee_open(struct tee_context *ctx, bool cap_memref_null) in optee_open() 130 static void optee_release_helper(struct tee_context *ctx, in optee_release_helper() 131 int (*close_session)(struct tee_context *ctx, in optee_release_helper() 152 void optee_release(struct tee_context *ctx) in optee_release() 157 void optee_release_supp(struct tee_context *ctx) in optee_release_supp()
|
D | rpc.c | 37 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer() 124 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer() 188 static void handle_rpc_supp_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_supp_cmd() 217 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl() 240 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl() 265 static void handle_rpc_func_rpmb_probe_reset(struct tee_context *ctx, in handle_rpc_func_rpmb_probe_reset() 317 static void handle_rpc_func_rpmb_probe_next(struct tee_context *ctx, in handle_rpc_func_rpmb_probe_next() 369 static void handle_rpc_func_rpmb_frames(struct tee_context *ctx, in handle_rpc_func_rpmb_frames() 413 void optee_rpc_cmd(struct tee_context *ctx, struct optee *optee, in optee_rpc_cmd()
|
D | call.c | 263 struct optee_msg_arg *optee_get_msg_arg(struct tee_context *ctx, in optee_get_msg_arg() 340 void optee_free_msg_arg(struct tee_context *ctx, in optee_free_msg_arg() 362 int optee_open_session(struct tee_context *ctx, in optee_open_session() 446 int optee_system_session(struct tee_context *ctx, u32 session) in optee_system_session() 467 int optee_close_session_helper(struct tee_context *ctx, u32 session, in optee_close_session_helper() 492 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session() 512 int optee_invoke_func(struct tee_context *ctx, struct tee_ioctl_invoke_arg *arg, in optee_invoke_func() 566 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req() 644 static int simple_call_with_arg(struct tee_context *ctx, u32 cmd) in simple_call_with_arg() 663 int optee_do_bottom_half(struct tee_context *ctx) in optee_do_bottom_half() [all …]
|
D | ffa_abi.c | 270 static int optee_ffa_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_ffa_shm_register() 314 static int optee_ffa_shm_unregister(struct tee_context *ctx, in optee_ffa_shm_unregister() 343 static int optee_ffa_shm_unregister_supp(struct tee_context *ctx, in optee_ffa_shm_unregister_supp() 427 static void handle_ffa_rpc_func_cmd_shm_alloc(struct tee_context *ctx, in handle_ffa_rpc_func_cmd_shm_alloc() 467 static void handle_ffa_rpc_func_cmd_shm_free(struct tee_context *ctx, in handle_ffa_rpc_func_cmd_shm_free() 497 static void handle_ffa_rpc_func_cmd(struct tee_context *ctx, in handle_ffa_rpc_func_cmd() 514 static void optee_handle_ffa_rpc(struct tee_context *ctx, struct optee *optee, in optee_handle_ffa_rpc() 530 static int optee_ffa_yielding_call(struct tee_context *ctx, in optee_ffa_yielding_call() 617 static int optee_ffa_do_call_with_arg(struct tee_context *ctx, in optee_ffa_do_call_with_arg() 769 static int optee_ffa_open(struct tee_context *ctx) in optee_ffa_open() [all …]
|
D | smc_abi.c | 453 static int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register() 521 static int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister() 562 static int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register_supp() 573 static int optee_shm_unregister_supp(struct tee_context *ctx, in optee_shm_unregister_supp() 649 static void handle_rpc_func_cmd_shm_free(struct tee_context *ctx, in handle_rpc_func_cmd_shm_free() 676 static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx, in handle_rpc_func_cmd_shm_alloc() 785 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd() 812 static void optee_handle_rpc(struct tee_context *ctx, in optee_handle_rpc() 886 static int optee_smc_do_call_with_arg(struct tee_context *ctx, in optee_smc_do_call_with_arg() 1171 static int optee_smc_open(struct tee_context *ctx) in optee_smc_open() [all …]
|
D | supp.c | 76 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, in optee_supp_thrd_req() 229 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, in optee_supp_recv() 338 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params, in optee_supp_send()
|
D | device.c | 22 static int get_devices(struct tee_context *ctx, u32 session, in get_devices() 118 struct tee_context *ctx = NULL; in __optee_enumerate_devices()
|
/linux-6.12.1/drivers/nvmem/ |
D | stm32-bsec-optee-ta.h | 16 int stm32_bsec_optee_ta_open(struct tee_context **ctx); 38 int stm32_bsec_optee_ta_read(struct tee_context *ctx, unsigned int offset, 52 int stm32_bsec_optee_ta_write(struct tee_context *ctx, unsigned int lower, 57 static inline int stm32_bsec_optee_ta_open(struct tee_context **ctx) in stm32_bsec_optee_ta_open() 66 static inline int stm32_bsec_optee_ta_read(struct tee_context *ctx, in stm32_bsec_optee_ta_read() 73 static inline int stm32_bsec_optee_ta_write(struct tee_context *ctx, in stm32_bsec_optee_ta_write()
|
D | stm32-bsec-optee-ta.c | 71 static int stm32_bsec_ta_open_session(struct tee_context *ctx, u32 *id) in stm32_bsec_ta_open_session() 101 int stm32_bsec_optee_ta_open(struct tee_context **ctx) in stm32_bsec_optee_ta_open() 103 struct tee_context *tee_ctx; in stm32_bsec_optee_ta_open() 139 int stm32_bsec_optee_ta_read(struct tee_context *ctx, unsigned int offset, in stm32_bsec_optee_ta_read() 205 int stm32_bsec_optee_ta_write(struct tee_context *ctx, unsigned int lower, in stm32_bsec_optee_ta_write()
|
D | stm32-romem.c | 40 struct tee_context *ctx;
|
/linux-6.12.1/drivers/tee/ |
D | tee_private.h | 20 void teedev_ctx_get(struct tee_context *ctx); 21 void teedev_ctx_put(struct tee_context *ctx); 23 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size); 24 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
|
D | tee_core.c | 46 struct tee_context *teedev_open(struct tee_device *teedev) in teedev_open() 49 struct tee_context *ctx; in teedev_open() 75 void teedev_ctx_get(struct tee_context *ctx) in teedev_ctx_get() 85 struct tee_context *ctx = container_of(ref, struct tee_context, in teedev_ctx_release() 92 void teedev_ctx_put(struct tee_context *ctx) in teedev_ctx_put() 100 void teedev_close_context(struct tee_context *ctx) in teedev_close_context() 111 struct tee_context *ctx; in tee_open() 270 static int tee_ioctl_version(struct tee_context *ctx, in tee_ioctl_version() 286 static int tee_ioctl_shm_alloc(struct tee_context *ctx, in tee_ioctl_shm_alloc() 322 tee_ioctl_shm_register(struct tee_context *ctx, in tee_ioctl_shm_register() [all …]
|
D | tee_shm.c | 67 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper() 129 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf() 174 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf() 198 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf() 207 int (*shm_register)(struct tee_context *ctx, in tee_dyn_shm_alloc_helper() 258 int (*shm_unregister)(struct tee_context *ctx, in tee_dyn_shm_free_helper() 271 register_shm_helper(struct tee_context *ctx, struct iov_iter *iter, u32 flags, in register_shm_helper() 367 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx, in tee_shm_register_user_buf() 416 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, in tee_shm_register_kernel_buf() 532 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) in tee_shm_get_from_id()
|
/linux-6.12.1/drivers/tee/amdtee/ |
D | amdtee_private.h | 136 int amdtee_open_session(struct tee_context *ctx, 140 int amdtee_close_session(struct tee_context *ctx, u32 session); 142 int amdtee_invoke_func(struct tee_context *ctx, 146 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session);
|
D | core.c | 34 static int amdtee_open(struct tee_context *ctx) in amdtee_open() 67 static void amdtee_release(struct tee_context *ctx) in amdtee_release() 170 static int copy_ta_binary(struct tee_context *ctx, void *ptr, void **ta, in copy_ta_binary() 230 int amdtee_open_session(struct tee_context *ctx, in amdtee_open_session() 304 int amdtee_close_session(struct tee_context *ctx, u32 session) in amdtee_close_session() 406 int amdtee_invoke_func(struct tee_context *ctx, in amdtee_invoke_func() 431 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in amdtee_cancel_req()
|
/linux-6.12.1/drivers/tee/tstee/ |
D | core.c | 58 static int tstee_open(struct tee_context *ctx) in tstee_open() 73 static void tstee_release(struct tee_context *ctx) in tstee_release() 93 static int tstee_open_session(struct tee_context *ctx, in tstee_open_session() 144 static int tstee_close_session(struct tee_context *ctx, u32 session) in tstee_close_session() 159 static int tstee_invoke_func(struct tee_context *ctx, in tstee_invoke_func() 242 static int tstee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in tstee_shm_register() 307 static int tstee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in tstee_shm_unregister()
|
/linux-6.12.1/drivers/char/tpm/ |
D | tpm_ftpm_tee.h | 36 struct tee_context *ctx;
|
/linux-6.12.1/drivers/firmware/arm_scmi/transports/ |
D | optee.c | 146 struct tee_context *tee_ctx; 532 struct tee_context *tee_ctx; in scmi_optee_service_probe()
|
/linux-6.12.1/drivers/firmware/broadcom/ |
D | tee_bnxt_fw.c | 59 struct tee_context *ctx;
|
/linux-6.12.1/drivers/char/hw_random/ |
D | optee-rng.c | 63 struct tee_context *ctx;
|
/linux-6.12.1/Documentation/tee/ |
D | ts-tee.rst | 34 tee_context.
|
/linux-6.12.1/security/keys/trusted-keys/ |
D | trusted_tee.c | 53 struct tee_context *ctx;
|