Home
last modified time | relevance | path

Searched refs:tee_context (Results 1 – 23 of 23) sorted by relevance

/openbmc/linux/include/linux/
H A Dtee_drv.h51 struct tee_context { struct
97 int (*open)(struct tee_context *ctx);
98 void (*release)(struct tee_context *ctx);
99 int (*open_session)(struct tee_context *ctx,
103 int (*invoke_func)(struct tee_context *ctx,
207 struct tee_context *ctx;
385 struct tee_context *
386 tee_client_open_context(struct tee_context *start,
441 int tee_client_invoke_func(struct tee_context *ctx,
454 int tee_client_cancel_req(struct tee_context *ctx,
[all …]
/openbmc/linux/drivers/tee/optee/
H A Doptee_private.h89 struct tee_context *ctx;
156 int (*do_call_with_arg)(struct tee_context *ctx,
188 struct tee_context *ctx;
250 int optee_open_session(struct tee_context *ctx,
254 int optee_close_session(struct tee_context *ctx, u32 session);
266 int (*shm_register)(struct tee_context *ctx,
272 int (*shm_unregister)(struct tee_context *ctx,
277 int optee_open(struct tee_context *ctx, bool cap_memref_null);
278 void optee_release(struct tee_context *ctx);
279 void optee_release_supp(struct tee_context *ctx);
[all …]
H A Dcore.c23 int (*shm_register)(struct tee_context *ctx, in optee_pool_op_alloc_helper()
73 int (*shm_unregister)(struct tee_context *ctx, in optee_pool_op_free_helper()
87 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()
151 void optee_release(struct tee_context *ctx) in optee_release()
156 void optee_release_supp(struct tee_context *ctx) in optee_release_supp()
H A Drpc.c36 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer()
123 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer()
181 static void handle_rpc_supp_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_supp_cmd()
210 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl()
233 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl()
258 void optee_rpc_cmd(struct tee_context *ctx, struct optee *optee, in optee_rpc_cmd()
H A Dffa_abi.c269 static int optee_ffa_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_ffa_shm_register()
313 static int optee_ffa_shm_unregister(struct tee_context *ctx, in optee_ffa_shm_unregister()
342 static int optee_ffa_shm_unregister_supp(struct tee_context *ctx, in optee_ffa_shm_unregister_supp()
426 static void handle_ffa_rpc_func_cmd_shm_alloc(struct tee_context *ctx, in handle_ffa_rpc_func_cmd_shm_alloc()
466 static void handle_ffa_rpc_func_cmd_shm_free(struct tee_context *ctx, in handle_ffa_rpc_func_cmd_shm_free()
496 static void handle_ffa_rpc_func_cmd(struct tee_context *ctx, in handle_ffa_rpc_func_cmd()
513 static void optee_handle_ffa_rpc(struct tee_context *ctx, struct optee *optee, in optee_handle_ffa_rpc()
529 static int optee_ffa_yielding_call(struct tee_context *ctx, in optee_ffa_yielding_call()
614 static int optee_ffa_do_call_with_arg(struct tee_context *ctx, in optee_ffa_do_call_with_arg()
729 static int optee_ffa_open(struct tee_context *ctx) in optee_ffa_open()
[all …]
H A Dcall.c181 struct optee_msg_arg *optee_get_msg_arg(struct tee_context *ctx, in optee_get_msg_arg()
258 void optee_free_msg_arg(struct tee_context *ctx, in optee_free_msg_arg()
280 int optee_open_session(struct tee_context *ctx, in optee_open_session()
363 int optee_close_session_helper(struct tee_context *ctx, u32 session) in optee_close_session_helper()
384 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session()
402 int optee_invoke_func(struct tee_context *ctx, struct tee_ioctl_invoke_arg *arg, in optee_invoke_func()
453 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req()
H A Dsmc_abi.c452 static int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
572 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()
814 static void optee_handle_rpc(struct tee_context *ctx, in optee_handle_rpc()
887 static int optee_smc_do_call_with_arg(struct tee_context *ctx, in optee_smc_do_call_with_arg()
968 static int simple_call_with_arg(struct tee_context *ctx, u32 cmd) in simple_call_with_arg()
986 static int optee_smc_do_bottom_half(struct tee_context *ctx) in optee_smc_do_bottom_half()
991 static int optee_smc_stop_async_notif(struct tee_context *ctx) in optee_smc_stop_async_notif()
1199 static int optee_smc_open(struct tee_context *ctx) in optee_smc_open()
[all …]
H A Ddevice.c22 static int get_devices(struct tee_context *ctx, u32 session, in get_devices()
111 struct tee_context *ctx = NULL; in __optee_enumerate_devices()
H A Dsupp.c76 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()
/openbmc/linux/drivers/nvmem/
H A Dstm32-bsec-optee-ta.h16 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()
H A Dstm32-bsec-optee-ta.c71 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()
H A Dstm32-romem.c38 struct tee_context *ctx;
/openbmc/linux/drivers/tee/
H A Dtee_private.h55 void teedev_ctx_get(struct tee_context *ctx);
56 void teedev_ctx_put(struct tee_context *ctx);
58 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size);
59 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
H A Dtee_core.c49 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()
322 tee_ioctl_shm_register(struct tee_context *ctx, in tee_ioctl_shm_register()
620 tee_ioctl_close_session(struct tee_context *ctx, in tee_ioctl_close_session()
820 struct tee_context *ctx = filp->private_data; in tee_ioctl()
1099 struct tee_context *
[all …]
H A Dtee_shm.c77 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper()
139 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf()
184 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf()
208 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf()
217 register_shm_helper(struct tee_context *ctx, unsigned long addr, in register_shm_helper()
304 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx, in tee_shm_register_user_buf()
351 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx, in tee_shm_register_kernel_buf()
461 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) in tee_shm_get_from_id()
/openbmc/linux/drivers/tee/amdtee/
H A Damdtee_private.h136 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);
H A Dcore.c35 static int amdtee_open(struct tee_context *ctx) in amdtee_open()
68 static void amdtee_release(struct tee_context *ctx) in amdtee_release()
171 static int copy_ta_binary(struct tee_context *ctx, void *ptr, void **ta, in copy_ta_binary()
231 int amdtee_open_session(struct tee_context *ctx, in amdtee_open_session()
305 int amdtee_close_session(struct tee_context *ctx, u32 session) in amdtee_close_session()
407 int amdtee_invoke_func(struct tee_context *ctx, in amdtee_invoke_func()
432 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in amdtee_cancel_req()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_ftpm_tee.h36 struct tee_context *ctx;
/openbmc/linux/drivers/firmware/arm_scmi/
H A Doptee.c143 struct tee_context *tee_ctx;
547 struct tee_context *tee_ctx; in scmi_optee_service_probe()
/openbmc/linux/drivers/firmware/broadcom/
H A Dtee_bnxt_fw.c59 struct tee_context *ctx;
/openbmc/linux/drivers/char/hw_random/
H A Doptee-rng.c63 struct tee_context *ctx;
/openbmc/linux/security/keys/trusted-keys/
H A Dtrusted_tee.c53 struct tee_context *ctx;
/openbmc/linux/drivers/rtc/
H A Drtc-optee.c49 struct tee_context *ctx;