Home
last modified time | relevance | path

Searched refs:optee (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.4/drivers/tee/optee/
Dcore.c214 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() local
216 if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM) in optee_get_version()
225 struct optee *optee = tee_get_drvdata(teedev); in optee_open() local
231 if (teedev == optee->supp_teedev) { in optee_open()
234 mutex_lock(&optee->supp.mutex); in optee_open()
235 if (!optee->supp.ctx) { in optee_open()
237 optee->supp.ctx = ctx; in optee_open()
239 mutex_unlock(&optee->supp.mutex); in optee_open()
257 struct optee *optee = tee_get_drvdata(teedev); in optee_release() local
299 if (teedev == optee->supp_teedev) in optee_release()
[all …]
DMakefile2 obj-$(CONFIG_OPTEE) += optee.o
3 optee-objs += core.o
4 optee-objs += call.o
5 optee-objs += rpc.o
6 optee-objs += supp.o
7 optee-objs += shm_pool.o
8 optee-objs += device.o
Drpc.c94 static void handle_rpc_func_cmd_wq(struct optee *optee, in handle_rpc_func_cmd_wq() argument
106 wq_sleep(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
109 wq_wakeup(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
174 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() local
186 mutex_lock(&optee->supp.mutex); in cmd_alloc_suppl()
188 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c); in cmd_alloc_suppl()
189 mutex_unlock(&optee->supp.mutex); in cmd_alloc_suppl()
356 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd() argument
373 handle_rpc_func_cmd_wq(optee, arg); in handle_rpc_func_cmd()
402 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() local
[all …]
Dcall.c127 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg() local
136 optee_cq_wait_init(&optee->call_queue, &w); in optee_do_call_with_arg()
140 optee->invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_do_call_with_arg()
149 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_do_call_with_arg()
168 optee_cq_wait_final(&optee->call_queue, &w); in optee_do_call_with_arg()
389 void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument
394 optee_cq_wait_init(&optee->call_queue, &w); in optee_enable_shm_cache()
398 optee->invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in optee_enable_shm_cache()
402 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache()
404 optee_cq_wait_final(&optee->call_queue, &w); in optee_enable_shm_cache()
[all …]
Dsupp.c80 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_supp_thrd_req() local
81 struct optee_supp *supp = &optee->supp; in optee_supp_thrd_req()
233 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_recv() local
234 struct optee_supp *supp = &optee->supp; in optee_supp_recv()
342 struct optee *optee = tee_get_drvdata(teedev); in optee_supp_send() local
343 struct optee_supp *supp = &optee->supp; in optee_supp_send()
Doptee_private.h82 struct optee { struct
153 void optee_enable_shm_cache(struct optee *optee);
154 void optee_disable_shm_cache(struct optee *optee);
/Linux-v5.4/Documentation/devicetree/bindings/arm/firmware/
Dlinaro,optee-tz.txt12 - compatible : should contain "linaro,optee-tz"
18 in drivers/tee/optee/optee_smc.h
21 in drivers/tee/optee/optee_smc.h
27 optee {
28 compatible = "linaro,optee-tz";
/Linux-v5.4/drivers/tee/
DMakefile6 obj-$(CONFIG_OPTEE) += optee/
DKconfig16 source "drivers/tee/optee/Kconfig"
/Linux-v5.4/arch/arm64/boot/dts/ti/
Dk3-j721e-som-p0.dtsi23 secure_ddr: optee@9e800000 {
Dk3-am65.dtsi38 optee {
39 compatible = "linaro,optee-tz";
Dk3-j721e.dtsi97 optee {
98 compatible = "linaro,optee-tz";
/Linux-v5.4/drivers/char/hw_random/
DMakefile41 obj-$(CONFIG_HW_RANDOM_OPTEE) += optee-rng.o
DKconfig439 will be called optee-rng.
/Linux-v5.4/Documentation/
Dtee.txt122 [3] drivers/tee/optee/optee_smc.h
124 [4] drivers/tee/optee/optee_msg.h
/Linux-v5.4/arch/arm64/boot/dts/hisilicon/
Dhi6220-hikey.dts471 optee {
472 compatible = "linaro,optee-tz";
Dhi3660-hikey960.dts194 optee {
195 compatible = "linaro,optee-tz";
/Linux-v5.4/arch/arm64/boot/dts/freescale/
Dfsl-ls1012a.dtsi505 optee {
506 compatible = "linaro,optee-tz";
Dfsl-ls208xa.dtsi779 optee {
780 compatible = "linaro,optee-tz";
Dfsl-ls1088a.dtsi770 optee {
771 compatible = "linaro,optee-tz";
Dfsl-ls1043a.dtsi770 optee {
771 compatible = "linaro,optee-tz";
Dfsl-ls1046a.dtsi798 optee {
799 compatible = "linaro,optee-tz";
/Linux-v5.4/arch/arm64/boot/dts/rockchip/
Dpx30.dtsi165 optee {
166 compatible = "linaro,optee-tz";
/Linux-v5.4/
DMAINTAINERS12070 F: drivers/tee/optee/
12076 F: drivers/char/hw_random/optee-rng.c