Home
last modified time | relevance | path

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

1234

/linux-6.8/drivers/tee/optee/
Dffa_abi.c58 static struct tee_shm *optee_shm_from_ffa_handle(struct optee *optee, in optee_shm_from_ffa_handle() argument
64 mutex_lock(&optee->ffa.mutex); in optee_shm_from_ffa_handle()
65 r = rhashtable_lookup_fast(&optee->ffa.global_ids, &global_id, in optee_shm_from_ffa_handle()
69 mutex_unlock(&optee->ffa.mutex); in optee_shm_from_ffa_handle()
74 static int optee_shm_add_ffa_handle(struct optee *optee, struct tee_shm *shm, in optee_shm_add_ffa_handle() argument
86 mutex_lock(&optee->ffa.mutex); in optee_shm_add_ffa_handle()
87 rc = rhashtable_lookup_insert_fast(&optee->ffa.global_ids, &r->linkage, in optee_shm_add_ffa_handle()
89 mutex_unlock(&optee->ffa.mutex); in optee_shm_add_ffa_handle()
97 static int optee_shm_rem_ffa_handle(struct optee *optee, u64 global_id) in optee_shm_rem_ffa_handle() argument
102 mutex_lock(&optee->ffa.mutex); in optee_shm_rem_ffa_handle()
[all …]
Dnotif.c21 static bool have_key(struct optee *optee, u_int key) in have_key() argument
25 list_for_each_entry(entry, &optee->notif.db, link) in have_key()
32 int optee_notif_wait(struct optee *optee, u_int key) in optee_notif_wait() argument
38 if (key > optee->notif.max_key) in optee_notif_wait()
47 spin_lock_irqsave(&optee->notif.lock, flags); in optee_notif_wait()
53 if (test_bit(key, optee->notif.bitmap)) { in optee_notif_wait()
54 clear_bit(key, optee->notif.bitmap); in optee_notif_wait()
62 if (have_key(optee, key)) { in optee_notif_wait()
67 list_add_tail(&entry->link, &optee->notif.db); in optee_notif_wait()
72 spin_unlock_irqrestore(&optee->notif.lock, flags); in optee_notif_wait()
[all …]
Dsmc_abi.c131 * @optee: main service struct
137 static int optee_from_msg_param(struct optee *optee, struct tee_param *params, in optee_from_msg_param() argument
221 * @optee: main service struct
227 static int optee_to_msg_param(struct optee *optee, in optee_to_msg_param() argument
279 * @optee: main service struct
281 static void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument
286 optee_cq_wait_init(&optee->call_queue, &w, false); in optee_enable_shm_cache()
290 optee->smc.invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, in optee_enable_shm_cache()
294 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache()
296 optee_cq_wait_final(&optee->call_queue, &w); in optee_enable_shm_cache()
[all …]
Dcore.c92 struct optee *optee = tee_get_drvdata(teedev); in optee_open() local
98 if (teedev == optee->supp_teedev) { in optee_open()
101 mutex_lock(&optee->supp.mutex); in optee_open()
102 if (!optee->supp.ctx) { in optee_open()
104 optee->supp.ctx = ctx; in optee_open()
106 mutex_unlock(&optee->supp.mutex); in optee_open()
112 if (!optee->scan_bus_done) { in optee_open()
113 INIT_WORK(&optee->scan_bus_work, optee_bus_scan); in optee_open()
114 schedule_work(&optee->scan_bus_work); in optee_open()
115 optee->scan_bus_done = true; in optee_open()
[all …]
Doptee_private.h16 #define DRIVER_NAME "optee"
117 * @optee optee device reference
120 struct optee *optee; member
124 * struct optee_smc - optee smc communication struct
130 * @optee_pcpu per_cpu optee instance for per cpu work or NULL
163 struct optee;
179 int (*to_msg_param)(struct optee *optee,
182 int (*from_msg_param)(struct optee *optee, struct tee_param *params,
188 * struct optee - main service struct
202 * @scan_bus_work workq to scan optee bus and register optee drivers
[all …]
Dcall.c34 * (optee->rpc_param_count).
217 void optee_shm_arg_cache_init(struct optee *optee, u32 flags) in optee_shm_arg_cache_init() argument
219 INIT_LIST_HEAD(&optee->shm_arg_cache.shm_args); in optee_shm_arg_cache_init()
220 mutex_init(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_init()
221 optee->shm_arg_cache.flags = flags; in optee_shm_arg_cache_init()
224 void optee_shm_arg_cache_uninit(struct optee *optee) in optee_shm_arg_cache_uninit() argument
226 struct list_head *head = &optee->shm_arg_cache.shm_args; in optee_shm_arg_cache_uninit()
229 mutex_destroy(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_uninit()
269 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() local
270 size_t sz = optee_msg_arg_size(optee->rpc_param_count); in optee_get_msg_arg()
[all …]
Drpc.c39 struct optee *optee = tee_get_drvdata(ctx->teedev); in handle_rpc_func_cmd_i2c_transfer() local
64 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_func_cmd_i2c_transfer()
108 if (optee->ops->to_msg_param(optee, arg->params, in handle_rpc_func_cmd_i2c_transfer()
130 static void handle_rpc_func_cmd_wq(struct optee *optee, in handle_rpc_func_cmd_wq() argument
142 if (optee_notif_wait(optee, arg->params[0].u.value.b)) in handle_rpc_func_cmd_wq()
146 if (optee_notif_send(optee, arg->params[0].u.value.b)) in handle_rpc_func_cmd_wq()
181 static void handle_rpc_supp_cmd(struct tee_context *ctx, struct optee *optee, in handle_rpc_supp_cmd() argument
195 if (optee->ops->from_msg_param(optee, params, arg->num_params, in handle_rpc_supp_cmd()
203 if (optee->ops->to_msg_param(optee, arg->params, arg->num_params, in handle_rpc_supp_cmd()
214 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_rpc_cmd_alloc_suppl() local
[all …]
DMakefile2 obj-$(CONFIG_OPTEE) += optee.o
3 optee-objs += core.o
4 optee-objs += call.o
5 optee-objs += notif.o
6 optee-objs += rpc.o
7 optee-objs += supp.o
8 optee-objs += device.o
9 optee-objs += smc_abi.o
10 optee-objs += ffa_abi.o
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 && ARM64
Ddevice.c83 if (dev_set_name(&optee_device->dev, "optee-ta-%pUb", device_uuid)) { in optee_register_device()
181 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-6.8/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
42 register assignments are specified in drivers/tee/optee/optee_smc.h
54 optee {
55 compatible = "linaro,optee-tz";
63 optee {
64 compatible = "linaro,optee-tz";
/linux-6.8/arch/arm/boot/dts/st/
Dstm32mp15-scmi.dtsi9 optee: optee { label
10 compatible = "linaro,optee-tz";
15 compatible = "linaro,scmi-optee";
18 linaro,optee-channel-id = <0>;
/linux-6.8/Documentation/devicetree/bindings/firmware/
Darm,scmi.yaml50 - const: linaro,scmi-optee
125 linaro,optee-channel-id:
285 linaro,optee-channel-id:
330 const: linaro,scmi-optee
333 - linaro,optee-channel-id
461 compatible = "linaro,scmi-optee";
462 linaro,optee-channel-id = <0>;
469 linaro,optee-channel-id = <1>;
493 cpu_optee_lpri0: optee-sram-section@0 {
/linux-6.8/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.
10 What: /sys/bus/tee/devices/optee-ta-<uuid>/need_supplicant
/linux-6.8/arch/arm/mach-at91/
Dsam_secure.c32 /* If optee has been detected, then we are running in normal world */ in sam_linux_is_optee_available()
45 np = of_find_node_by_path("/firmware/optee"); in sam_secure_init()
/linux-6.8/arch/arm64/boot/dts/mediatek/
Dpumpkin-common.dtsi20 optee: optee { label
21 compatible = "linaro,optee-tz";
Dmt8365-evk.dts30 optee {
31 compatible = "linaro,optee-tz";
84 optee_reserved: optee@43200000 {
/linux-6.8/arch/arm64/boot/dts/st/
Dstm32mp251.dtsi58 optee {
59 compatible = "linaro,optee-tz";
64 compatible = "linaro,scmi-optee";
67 linaro,optee-channel-id = <0>;
/linux-6.8/drivers/firmware/arm_scmi/
Doptee.c317 dev_dbg(dev, "Optee bus not yet ready\n"); in scmi_optee_link_supplier()
319 /* Wait for optee bus */ in scmi_optee_link_supplier()
324 dev_err(dev, "Adding link to supplier optee device failed\n"); in scmi_optee_link_supplier()
335 return !of_property_read_u32_index(of_node, "linaro,optee-channel-id", in scmi_optee_chan_available()
425 ret = of_property_read_u32_index(cinfo->dev->of_node, "linaro,optee-channel-id", in scmi_optee_chan_setup()
622 .name = "scmi-optee",
DKconfig91 depends on OPTEE=y || OPTEE=ARM_SCMI_PROTOCOL
/linux-6.8/arch/arm64/boot/dts/socionext/
Duniphier-ld20-akebi96.dts96 optee {
97 compatible = "linaro,optee-tz";
/linux-6.8/arch/arm64/boot/dts/amlogic/
Dmeson-a1-ad402.dts37 optee {
38 compatible = "linaro,optee-tz";
/linux-6.8/Documentation/tee/
Dop-tee.rst66 OP-TEE provides a pseudo Trusted Application: drivers/tee/optee/device.c in
159 [3] drivers/tee/optee/optee_smc.h
161 [4] drivers/tee/optee/optee_msg.h

1234