Home
last modified time | relevance | path

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

12

/linux/include/linux/
H A Dtee_core.h107 int (*open)(struct tee_context *ctx);
108 void (*close_context)(struct tee_context *ctx);
109 void (*release)(struct tee_context *ctx);
110 int (*open_session)(struct tee_context *ctx,
113 int (*close_session)(struct tee_context *ctx, u32 session);
114 int (*system_session)(struct tee_context *ctx, u32 session);
115 int (*invoke_func)(struct tee_context *ctx,
118 int (*object_invoke_func)(struct tee_context *ctx,
121 int (*cancel_req)(struct tee_context *ctx, u32 cancel_id, u32 session);
122 int (*supp_recv)(struct tee_context *ctx, u32 *func, u32 *num_params,
[all …]
H A Dtee_drv.h39 struct tee_context { struct
66 struct tee_context *ctx; argument
118 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size);
128 struct tee_shm *tee_shm_register_kernel_buf(struct tee_context *ctx,
139 struct tee_shm *tee_shm_register_fd(struct tee_context *ctx, int fd);
212 struct tee_context *
213 tee_client_open_context(struct tee_context *start,
225 void tee_client_close_context(struct tee_context *ctx);
232 void tee_client_get_version(struct tee_context *ctx,
245 int tee_client_open_session(struct tee_context *ctx,
[all …]
/linux/drivers/tee/optee/
H A Doptee_private.h114 struct tee_context *ctx;
208 int (*do_call_with_arg)(struct tee_context *ctx,
250 struct tee_context *ctx;
312 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params,
321 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params,
323 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params,
326 int optee_open_session(struct tee_context *ctx,
329 int optee_system_session(struct tee_context *ctx, u32 session);
330 int optee_close_session_helper(struct tee_context *ctx, u32 session,
332 int optee_close_session(struct tee_context *ctx, u32 session);
[all …]
H A Drpc.c37 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()
187 static void handle_rpc_supp_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_supp_cmd()
215 struct tee_shm *optee_rpc_cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in optee_rpc_cmd_alloc_suppl()
238 void optee_rpc_cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in optee_rpc_cmd_free_suppl()
263 static void handle_rpc_func_rpmb_probe_reset(struct tee_context *ctx, in handle_rpc_func_rpmb_probe_reset()
315 static void handle_rpc_func_rpmb_probe_next(struct tee_context *ctx, in handle_rpc_func_rpmb_probe_next()
367 static void handle_rpc_func_rpmb_frames(struct tee_context *ctx, in handle_rpc_func_rpmb_frames()
411 void optee_rpc_cmd(struct tee_context *ctx, struct optee *optee, in optee_rpc_cmd()
H A Dcall.c263 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 …]
H A Dcore.c122 int optee_open(struct tee_context *ctx, bool cap_memref_null) in optee_open()
160 static void optee_release_helper(struct tee_context *ctx, in optee_release_helper()
161 int (*close_session)(struct tee_context *ctx, in optee_release_helper()
182 void optee_release(struct tee_context *ctx) in optee_release()
187 void optee_release_supp(struct tee_context *ctx) in optee_release_supp()
H A Dffa_abi.c270 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()
915 static int optee_ffa_open(struct tee_context *ctx) in optee_ffa_open()
[all …]
H A Dsmc_abi.c453 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()
1235 static int optee_smc_open(struct tee_context *ctx) in optee_smc_open()
[all …]
H A Dsupp.c76 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, in optee_supp_thrd_req()
210 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params, in optee_supp_recv()
319 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params, in optee_supp_send()
H A Ddevice.c22 static int get_devices(struct tee_context *ctx, u32 session, in get_devices()
118 struct tee_context *ctx = NULL; in __optee_enumerate_devices()
/linux/drivers/tee/qcomtee/
H A Dqcomtee.h34 struct tee_context *ctx;
96 struct tee_context *ctx);
99 struct tee_context *ctx);
101 struct tee_context *ctx);
104 struct tee_context *ctx);
106 struct tee_context *ctx);
117 struct tee_context *ctx);
120 struct tee_context *ctx);
136 int qcomtee_user_object_select(struct tee_context *ctx,
140 int qcomtee_user_object_submit(struct tee_context *ctx,
[all …]
H A Dcall.c53 struct tee_context *ctx) in qcomtee_context_add_qtee_object()
74 struct tee_context *ctx) in qcomtee_context_find_qtee_object()
89 struct tee_context *ctx) in qcomtee_context_del_qtee_object()
111 struct tee_context *ctx) in qcomtee_objref_to_arg()
160 struct tee_context *ctx) in qcomtee_objref_from_arg()
205 struct tee_context *ctx) in qcomtee_params_to_args()
273 struct tee_context *ctx) in qcomtee_params_from_args()
394 static int qcomtee_object_invoke(struct tee_context *ctx, in qcomtee_object_invoke()
490 static int qcomtee_supp_recv(struct tee_context *ctx, u32 *op, u32 *num_params, in qcomtee_supp_recv()
544 static int qcomtee_supp_send(struct tee_context *ctx, u32 errno, u32 num_params, in qcomtee_supp_send()
[all …]
H A Duser_obj.c40 struct tee_context *ctx;
368 struct tee_context *ctx) in qcomtee_user_param_to_object()
398 struct tee_context *ctx) in qcomtee_user_param_from_object()
434 struct tee_context *ctx) in qcomtee_cb_params_from_args()
506 struct tee_context *ctx) in qcomtee_cb_params_to_args()
585 int qcomtee_user_object_select(struct tee_context *ctx, in qcomtee_user_object_select()
661 int qcomtee_user_object_submit(struct tee_context *ctx, in qcomtee_user_object_submit()
H A Dshm.c43 struct tee_context *ctx = oic->ctx; in qcomtee_msg_buffers_alloc()
102 static int qcomtee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in qcomtee_shm_register()
110 static int qcomtee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in qcomtee_shm_unregister()
H A Dqcomtee_object.h159 struct tee_context *ctx;
175 qcomtee_object_invoke_ctx_alloc(struct tee_context *ctx) in qcomtee_object_invoke_ctx_alloc()
239 struct tee_context *qcomtee_async_ctx;
H A Dmem_obj.c89 struct tee_context *ctx) in qcomtee_memobj_param_to_object()
125 struct tee_context *ctx) in qcomtee_memobj_param_from_object()
/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()
/linux/drivers/tee/
H A Dtee_core.c46 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()
86 struct tee_context *ctx = container_of(ref, struct tee_context, in teedev_ctx_release()
93 void teedev_ctx_put(struct tee_context *ctx) in teedev_ctx_put()
102 void teedev_close_context(struct tee_context *ctx) in teedev_close_context()
116 struct tee_context *ctx; in tee_open()
239 static int tee_ioctl_version(struct tee_context *ctx, in tee_ioctl_version()
255 static int tee_ioctl_shm_alloc(struct tee_context *ctx, in tee_ioctl_shm_alloc()
291 tee_ioctl_shm_register(struct tee_context *ctx, in tee_ioctl_shm_register()
[all …]
H A Dtee_shm.c74 static struct tee_shm *shm_alloc_helper(struct tee_context *ctx, size_t size, in shm_alloc_helper()
136 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_user_buf()
181 struct tee_shm *tee_shm_alloc_kernel_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_kernel_buf()
189 struct tee_shm *tee_shm_register_fd(struct tee_context *ctx, int fd) in tee_shm_register_fd()
261 struct tee_shm *tee_shm_alloc_priv_buf(struct tee_context *ctx, size_t size) in tee_shm_alloc_priv_buf()
284 struct tee_shm *tee_shm_alloc_dma_mem(struct tee_context *ctx, in tee_shm_alloc_dma_mem()
326 struct tee_shm *tee_shm_alloc_dma_mem(struct tee_context *ctx, in tee_shm_alloc_dma_mem()
335 int (*shm_register)(struct tee_context *ctx, in tee_dyn_shm_alloc_helper()
388 int (*shm_unregister)(struct tee_context *ctx, in tee_dyn_shm_free_helper()
401 register_shm_helper(struct tee_context *ctx, struct iov_iter *iter, u32 flags, in register_shm_helper()
[all …]
H A Dtee_private.h26 struct tee_shm *tee_shm_alloc_user_buf(struct tee_context *ctx, size_t size);
27 struct tee_shm *tee_shm_register_user_buf(struct tee_context *ctx,
/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.c37 static int amdtee_open(struct tee_context *ctx) in amdtee_open()
70 static void amdtee_release(struct tee_context *ctx) in amdtee_release()
173 static int copy_ta_binary(struct tee_context *ctx, void *ptr, void **ta, in copy_ta_binary()
233 int amdtee_open_session(struct tee_context *ctx, in amdtee_open_session()
307 int amdtee_close_session(struct tee_context *ctx, u32 session) in amdtee_close_session()
409 int amdtee_invoke_func(struct tee_context *ctx, in amdtee_invoke_func()
434 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in amdtee_cancel_req()
/linux/drivers/tee/tstee/
H A Dcore.c58 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/drivers/char/tpm/
H A Dtpm_ftpm_tee.h31 struct tee_context *ctx;

12