Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/tee/optee/
Doptee_private.h68 struct tee_context *ctx;
131 void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param,
138 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params,
141 int optee_supp_read(struct tee_context *ctx, void __user *buf, size_t len);
142 int optee_supp_write(struct tee_context *ctx, void __user *buf, size_t len);
147 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params,
149 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params,
152 u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg);
153 int optee_open_session(struct tee_context *ctx,
156 int optee_close_session(struct tee_context *ctx, u32 session);
[all …]
Dcall.c134 u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg) in optee_do_call_with_arg()
181 static struct tee_shm *get_msg_arg(struct tee_context *ctx, size_t num_params, in get_msg_arg()
216 int optee_open_session(struct tee_context *ctx, in optee_open_session()
288 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session()
318 int optee_invoke_func(struct tee_context *ctx, struct tee_ioctl_invoke_arg *arg, in optee_invoke_func()
364 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req()
573 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
625 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister()
648 int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register_supp()
659 int optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister_supp()
Drpc.c152 static void handle_rpc_supp_cmd(struct tee_context *ctx, in handle_rpc_supp_cmd()
179 static struct tee_shm *cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in cmd_alloc_suppl()
202 static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx, in handle_rpc_func_cmd_shm_alloc()
298 static void cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in cmd_free_suppl()
323 static void handle_rpc_func_cmd_shm_free(struct tee_context *ctx, in handle_rpc_func_cmd_shm_free()
365 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd()
407 void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param, in optee_handle_rpc()
Dsupp.c85 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params, in optee_supp_thrd_req()
228 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()
Dcore.c230 static int optee_open(struct tee_context *ctx) in optee_open()
262 static void optee_release(struct tee_context *ctx) in optee_release()
/Linux-v4.19/include/linux/
Dtee_drv.h51 struct tee_context { struct
96 int (*open)(struct tee_context *ctx);
97 void (*release)(struct tee_context *ctx);
98 int (*open_session)(struct tee_context *ctx,
101 int (*close_session)(struct tee_context *ctx, u32 session);
102 int (*invoke_func)(struct tee_context *ctx,
105 int (*cancel_req)(struct tee_context *ctx, u32 cancel_id, u32 session);
106 int (*supp_recv)(struct tee_context *ctx, u32 *func, u32 *num_params,
108 int (*supp_send)(struct tee_context *ctx, u32 ret, u32 num_params,
110 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
[all …]
/Linux-v4.19/drivers/tee/
Dtee_core.c45 struct tee_context *ctx; in tee_open()
72 void teedev_ctx_get(struct tee_context *ctx) in teedev_ctx_get()
82 struct tee_context *ctx = container_of(ref, struct tee_context, in teedev_ctx_release()
89 void teedev_ctx_put(struct tee_context *ctx) in teedev_ctx_put()
97 static void teedev_close_context(struct tee_context *ctx) in teedev_close_context()
109 static int tee_ioctl_version(struct tee_context *ctx, in tee_ioctl_version()
125 static int tee_ioctl_shm_alloc(struct tee_context *ctx, in tee_ioctl_shm_alloc()
162 tee_ioctl_shm_register(struct tee_context *ctx, in tee_ioctl_shm_register()
198 static int params_from_user(struct tee_context *ctx, struct tee_param *params, in params_from_user()
292 static int tee_ioctl_open_session(struct tee_context *ctx, in tee_ioctl_open_session()
[all …]
Dtee_private.h76 void teedev_ctx_get(struct tee_context *ctx);
77 void teedev_ctx_put(struct tee_context *ctx);
Dtee_shm.c109 static struct tee_shm *__tee_shm_alloc(struct tee_context *ctx, in __tee_shm_alloc()
219 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags) in tee_shm_alloc()
231 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, in tee_shm_register()
476 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) in tee_shm_get_from_id()