Home
last modified time | relevance | path

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

/Linux-v5.10/include/linux/
Dtee_drv.h53 struct tee_context { struct
99 int (*open)(struct tee_context *ctx);
100 void (*release)(struct tee_context *ctx);
101 int (*open_session)(struct tee_context *ctx,
104 int (*close_session)(struct tee_context *ctx, u32 session);
105 int (*invoke_func)(struct tee_context *ctx,
108 int (*cancel_req)(struct tee_context *ctx, u32 cancel_id, u32 session);
109 int (*supp_recv)(struct tee_context *ctx, u32 *func, u32 *num_params,
111 int (*supp_send)(struct tee_context *ctx, u32 ret, u32 num_params,
113 int (*shm_register)(struct tee_context *ctx, struct tee_shm *shm,
[all …]
/Linux-v5.10/drivers/tee/optee/
Doptee_private.h61 struct tee_context *ctx;
130 void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param,
137 u32 optee_supp_thrd_req(struct tee_context *ctx, u32 func, size_t num_params,
140 int optee_supp_read(struct tee_context *ctx, void __user *buf, size_t len);
141 int optee_supp_write(struct tee_context *ctx, void __user *buf, size_t len);
146 int optee_supp_recv(struct tee_context *ctx, u32 *func, u32 *num_params,
148 int optee_supp_send(struct tee_context *ctx, u32 ret, u32 num_params,
151 u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg);
152 int optee_open_session(struct tee_context *ctx,
155 int optee_close_session(struct tee_context *ctx, u32 session);
[all …]
Drpc.c54 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer()
137 static void handle_rpc_func_cmd_i2c_transfer(struct tee_context *ctx, in handle_rpc_func_cmd_i2c_transfer()
235 static void handle_rpc_supp_cmd(struct tee_context *ctx, in handle_rpc_supp_cmd()
262 static struct tee_shm *cmd_alloc_suppl(struct tee_context *ctx, size_t sz) in cmd_alloc_suppl()
285 static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx, in handle_rpc_func_cmd_shm_alloc()
381 static void cmd_free_suppl(struct tee_context *ctx, struct tee_shm *shm) in cmd_free_suppl()
406 static void handle_rpc_func_cmd_shm_free(struct tee_context *ctx, in handle_rpc_func_cmd_shm_free()
448 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd()
493 void optee_handle_rpc(struct tee_context *ctx, struct optee_rpc_param *param, in optee_handle_rpc()
Dcall.c125 u32 optee_do_call_with_arg(struct tee_context *ctx, phys_addr_t parg) in optee_do_call_with_arg()
173 static struct tee_shm *get_msg_arg(struct tee_context *ctx, size_t num_params, in get_msg_arg()
208 int optee_open_session(struct tee_context *ctx, in optee_open_session()
284 int optee_close_session(struct tee_context *ctx, u32 session) in optee_close_session()
314 int optee_invoke_func(struct tee_context *ctx, struct tee_ioctl_invoke_arg *arg, in optee_invoke_func()
360 int optee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in optee_cancel_req()
577 int optee_shm_register(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register()
629 int optee_shm_unregister(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister()
652 int optee_shm_register_supp(struct tee_context *ctx, struct tee_shm *shm, in optee_shm_register_supp()
663 int optee_shm_unregister_supp(struct tee_context *ctx, struct tee_shm *shm) in optee_shm_unregister_supp()
Ddevice.c22 static int get_devices(struct tee_context *ctx, u32 session, in get_devices()
89 struct tee_context *ctx = NULL; in __optee_enumerate_devices()
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()
Dcore.c229 static int optee_open(struct tee_context *ctx) in optee_open()
276 static void optee_release(struct tee_context *ctx) in optee_release()
/Linux-v5.10/drivers/tee/
Dtee_core.c46 static struct tee_context *teedev_open(struct tee_device *teedev) in teedev_open()
49 struct tee_context *ctx; in teedev_open()
74 void teedev_ctx_get(struct tee_context *ctx) in teedev_ctx_get()
84 struct tee_context *ctx = container_of(ref, struct tee_context, in teedev_ctx_release()
91 void teedev_ctx_put(struct tee_context *ctx) in teedev_ctx_put()
99 static void teedev_close_context(struct tee_context *ctx) in teedev_close_context()
107 struct tee_context *ctx; in tee_open()
266 static int tee_ioctl_version(struct tee_context *ctx, in tee_ioctl_version()
282 static int tee_ioctl_shm_alloc(struct tee_context *ctx, in tee_ioctl_shm_alloc()
319 tee_ioctl_shm_register(struct tee_context *ctx, in tee_ioctl_shm_register()
[all …]
Dtee_private.h68 void teedev_ctx_get(struct tee_context *ctx);
69 void teedev_ctx_put(struct tee_context *ctx);
Dtee_shm.c106 struct tee_shm *tee_shm_alloc(struct tee_context *ctx, size_t size, u32 flags) in tee_shm_alloc()
196 struct tee_shm *tee_shm_register(struct tee_context *ctx, unsigned long addr, in tee_shm_register()
452 struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) in tee_shm_get_from_id()
/Linux-v5.10/drivers/tee/amdtee/
Damdtee_private.h123 int amdtee_open_session(struct tee_context *ctx,
127 int amdtee_close_session(struct tee_context *ctx, u32 session);
129 int amdtee_invoke_func(struct tee_context *ctx,
133 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session);
Dcore.c35 static int amdtee_open(struct tee_context *ctx) in amdtee_open()
69 static void amdtee_release(struct tee_context *ctx) in amdtee_release()
172 static int copy_ta_binary(struct tee_context *ctx, void *ptr, void **ta, in copy_ta_binary()
235 int amdtee_open_session(struct tee_context *ctx, in amdtee_open_session()
303 int amdtee_close_session(struct tee_context *ctx, u32 session) in amdtee_close_session()
404 int amdtee_invoke_func(struct tee_context *ctx, in amdtee_invoke_func()
429 int amdtee_cancel_req(struct tee_context *ctx, u32 cancel_id, u32 session) in amdtee_cancel_req()
/Linux-v5.10/drivers/char/tpm/
Dtpm_ftpm_tee.h36 struct tee_context *ctx;
/Linux-v5.10/drivers/firmware/broadcom/
Dtee_bnxt_fw.c59 struct tee_context *ctx;
/Linux-v5.10/drivers/char/hw_random/
Doptee-rng.c63 struct tee_context *ctx;