Home
last modified time | relevance | path

Searched full:optee (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v5.15/drivers/tee/optee/
Dcore.c26 #define DRIVER_NAME "optee"
206 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() local
208 if (optee->sec_caps & OPTEE_SMC_SEC_CAP_DYNAMIC_SHM) in optee_get_version()
210 if (optee->sec_caps & OPTEE_SMC_SEC_CAP_MEMREF_NULL) in optee_get_version()
224 struct optee *optee = tee_get_drvdata(teedev); in optee_open() local
230 if (teedev == optee->supp_teedev) { in optee_open()
233 mutex_lock(&optee->supp.mutex); in optee_open()
234 if (!optee->supp.ctx) { in optee_open()
236 optee->supp.ctx = ctx; in optee_open()
238 mutex_unlock(&optee->supp.mutex); in optee_open()
[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
Dcall.c130 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_do_call_with_arg() local
139 optee_cq_wait_init(&optee->call_queue, &w); in optee_do_call_with_arg()
144 optee->invoke_fn(param.a0, param.a1, param.a2, param.a3, in optee_do_call_with_arg()
154 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_do_call_with_arg()
173 optee_cq_wait_final(&optee->call_queue, &w); in optee_do_call_with_arg()
398 * @optee: main service struct
400 void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument
405 optee_cq_wait_init(&optee->call_queue, &w); in optee_enable_shm_cache()
409 optee->invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, 0, 0, 0, 0, 0, 0, in optee_enable_shm_cache()
413 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache()
[all …]
Doptee_private.h70 * struct optee - main service struct
83 * @scan_bus_wq workqueue to scan optee bus and register optee drivers
84 * @scan_bus_work workq to scan optee bus and register optee drivers
86 struct optee { struct
160 void optee_enable_shm_cache(struct optee *optee);
161 void optee_disable_shm_cache(struct optee *optee);
162 void optee_disable_unmapped_shm_cache(struct optee *optee);
Drpc.c188 static void handle_rpc_func_cmd_wq(struct optee *optee, in handle_rpc_func_cmd_wq() argument
200 wq_sleep(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
203 wq_wakeup(&optee->wait_queue, arg->params[0].u.value.b); in handle_rpc_func_cmd_wq()
268 struct optee *optee = tee_get_drvdata(ctx->teedev); in cmd_alloc_suppl() local
280 mutex_lock(&optee->supp.mutex); in cmd_alloc_suppl()
282 shm = tee_shm_get_from_id(optee->supp.ctx, param.u.value.c); in cmd_alloc_suppl()
283 mutex_unlock(&optee->supp.mutex); in cmd_alloc_suppl()
450 static void handle_rpc_func_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_func_cmd() argument
467 handle_rpc_func_cmd_wq(optee, arg); in handle_rpc_func_cmd()
499 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() local
[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()
DKconfig3 config OPTEE config
14 depends on OPTEE
Ddevice.c74 if (dev_set_name(&optee_device->dev, "optee-ta-%pUb", device_uuid)) { in optee_register_device()
168 if (!strncmp(dev_name(dev), "optee-ta", strlen("optee-ta"))) in __optee_unregister_device()
Doptee_trace.h3 * optee trace points
10 #define TRACE_SYSTEM optee
/Linux-v5.15/Documentation/devicetree/bindings/arm/firmware/
Dlinaro,optee-tz.yaml4 $id: http://devicetree.org/schemas/arm/firmware/linaro,optee-tz.yaml#
22 const: optee
25 const: linaro,optee-tz
35 register assignments are specified in drivers/tee/optee/optee_smc.h
46 optee {
47 compatible = "linaro,optee-tz";
54 optee {
55 compatible = "linaro,optee-tz";
/Linux-v5.15/Documentation/ABI/testing/
Dsysfs-bus-optee-devices1 What: /sys/bus/tee/devices/optee-ta-<uuid>/
8 are free to create needed API under optee-ta-<uuid> directory.
/Linux-v5.15/arch/arm64/boot/dts/mediatek/
Dpumpkin-common.dtsi20 optee: optee@4fd00000 { label
21 compatible = "linaro,optee-tz";
/Linux-v5.15/arch/arm64/boot/dts/socionext/
Duniphier-ld20-akebi96.dts96 optee {
97 compatible = "linaro,optee-tz";
/Linux-v5.15/arch/arm64/boot/dts/ti/
Dk3-am64.dtsi38 optee {
39 compatible = "linaro,optee-tz";
Dk3-am65.dtsi39 optee {
40 compatible = "linaro,optee-tz";
Dk3-j7200.dtsi97 optee {
98 compatible = "linaro,optee-tz";
Dk3-j721e.dtsi98 optee {
99 compatible = "linaro,optee-tz";
/Linux-v5.15/drivers/tee/
DMakefile6 obj-$(CONFIG_OPTEE) += optee/
DKconfig18 source "drivers/tee/optee/Kconfig"
/Linux-v5.15/drivers/firmware/broadcom/
DKconfig28 depends on (ARCH_BCM_IPROC && OPTEE) || (COMPILE_TEST && TEE)
/Linux-v5.15/Documentation/staging/
Dtee.rst182 OP-TEE provides a pseudo Trusted Application: drivers/tee/optee/device.c in
272 [3] drivers/tee/optee/optee_smc.h
274 [4] drivers/tee/optee/optee_msg.h
/Linux-v5.15/drivers/char/hw_random/
DMakefile44 obj-$(CONFIG_HW_RANDOM_OPTEE) += optee-rng.o
DKconfig471 depends on OPTEE
479 will be called optee-rng.
/Linux-v5.15/drivers/char/tpm/
Dtpm_ftpm_tee.c201 * Currently this driver only support GP Complaint OPTEE based fTPM TA in ftpm_tee_match()
385 .name = "optee-ftpm",
/Linux-v5.15/arch/arm64/boot/dts/hisilicon/
Dhi6220-hikey.dts255 optee {
256 compatible = "linaro,optee-tz";

12