/linux-6.3-rc2/drivers/tee/optee/ |
A D | notif.c | 21 static bool have_key(struct optee *optee, u_int key) in have_key() argument 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() 62 if (have_key(optee, key)) { in optee_notif_wait() 85 int optee_notif_send(struct optee *optee, u_int key) in optee_notif_send() argument 90 if (key > optee->notif.max_key) in optee_notif_send() 109 int optee_notif_init(struct optee *optee, u_int max_key) in optee_notif_init() argument 112 INIT_LIST_HEAD(&optee->notif.db); in optee_notif_init() 114 if (!optee->notif.bitmap) in optee_notif_init() 117 optee->notif.max_key = max_key; in optee_notif_init() [all …]
|
A D | ffa_abi.c | 155 static int optee_ffa_from_msg_param(struct optee *optee, in optee_ffa_from_msg_param() argument 227 static int optee_ffa_to_msg_param(struct optee *optee, in optee_ffa_to_msg_param() argument 273 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_register() local 316 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister() local 345 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_shm_unregister_supp() local 427 struct optee *optee, in handle_ffa_rpc_func_cmd_shm_alloc() argument 467 struct optee *optee, in handle_ffa_rpc_func_cmd_shm_free() argument 497 struct optee *optee, in handle_ffa_rpc_func_cmd() argument 533 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_ffa_yielding_call() local 795 struct optee *optee; in optee_ffa_probe() local [all …]
|
A D | core.c | 91 struct optee *optee = tee_get_drvdata(teedev); in optee_open() local 101 if (!optee->supp.ctx) { in optee_open() 103 optee->supp.ctx = ctx; in optee_open() 111 if (!optee->scan_bus_done) { in optee_open() 114 if (!optee->scan_bus_wq) { in optee_open() 118 queue_work(optee->scan_bus_wq, &optee->scan_bus_work); in optee_open() 158 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_release_supp() local 161 if (optee->scan_bus_wq) { in optee_release_supp() 163 optee->scan_bus_wq = NULL; in optee_release_supp() 168 void optee_remove_common(struct optee *optee) in optee_remove_common() argument [all …]
|
A D | smc_abi.c | 207 static int optee_to_msg_param(struct optee *optee, in optee_to_msg_param() argument 436 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_register() local 502 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_shm_unregister() local 657 struct optee *optee, in handle_rpc_func_cmd_shm_alloc() argument 800 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() local 996 struct optee *optee = dev_id; in notif_irq_handler() local 1021 struct optee *optee = dev_id; in notif_irq_thread_fn() local 1048 free_irq(optee->smc.notif_irq, optee); in optee_smc_notif_uninit_irq() 1071 struct optee *optee = tee_get_drvdata(teedev); in optee_get_version() local 1361 struct optee *optee = NULL; in optee_probe() local [all …]
|
A D | call.c | 135 void optee_shm_arg_cache_init(struct optee *optee, u32 flags) in optee_shm_arg_cache_init() argument 142 void optee_shm_arg_cache_uninit(struct optee *optee) in optee_shm_arg_cache_uninit() argument 187 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() local 261 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_free_msg_arg() local 284 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_open_session() local 320 rc = optee->ops->to_msg_param(optee, msg_arg->params + 2, in optee_open_session() 346 if (optee->ops->from_msg_param(optee, param, arg->num_params, in optee_open_session() 365 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_close_session_helper() local 405 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_invoke_func() local 440 if (optee->ops->from_msg_param(optee, param, arg->num_params, in optee_invoke_func() [all …]
|
A D | rpc.c | 39 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 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 226 mutex_lock(&optee->supp.mutex); in optee_rpc_cmd_alloc_suppl() 229 mutex_unlock(&optee->supp.mutex); in optee_rpc_cmd_alloc_suppl() [all …]
|
A D | Makefile | 2 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
|
A D | optee_private.h | 119 struct optee; 134 int (*to_msg_param)(struct optee *optee, 160 struct optee { struct 209 int optee_notif_init(struct optee *optee, u_int max_key); 210 void optee_notif_uninit(struct optee *optee); 211 int optee_notif_wait(struct optee *optee, u_int key); 212 int optee_notif_send(struct optee *optee, u_int key); 254 void optee_remove_common(struct optee *optee); 287 void optee_shm_arg_cache_init(struct optee *optee, u32 flags); 288 void optee_shm_arg_cache_uninit(struct optee *optee); [all …]
|
A D | supp.c | 80 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()
|
A D | optee_trace.h | 10 #define TRACE_SYSTEM optee
|
/linux-6.3-rc2/Documentation/devicetree/bindings/arm/firmware/ |
A D | linaro,optee-tz.yaml | 4 $id: http://devicetree.org/schemas/arm/firmware/linaro,optee-tz.yaml# 22 const: optee 25 const: linaro,optee-tz 41 register assignments are specified in drivers/tee/optee/optee_smc.h 53 optee { 54 compatible = "linaro,optee-tz"; 62 optee { 63 compatible = "linaro,optee-tz";
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | stm32mp15-scmi.dtsi | 9 optee: optee { label 10 compatible = "linaro,optee-tz"; 15 compatible = "linaro,scmi-optee"; 18 linaro,optee-channel-id = <0>;
|
A D | stm32mp157a-dk1-scmi.dts | 17 optee@de000000 {
|
/linux-6.3-rc2/Documentation/devicetree/bindings/firmware/ |
A D | arm,scmi.yaml | 43 - const: linaro,scmi-optee 97 linaro,optee-channel-id: 243 linaro,optee-channel-id: 285 const: linaro,scmi-optee 288 - linaro,optee-channel-id 416 compatible = "linaro,scmi-optee"; 417 linaro,optee-channel-id = <0>; 424 linaro,optee-channel-id = <1>; 448 cpu_optee_lpri0: optee-sram-section@0 {
|
/linux-6.3-rc2/Documentation/ABI/testing/ |
A D | sysfs-bus-optee-devices | 1 What: /sys/bus/tee/devices/optee-ta-<uuid>/ 8 are free to create needed API under optee-ta-<uuid> directory.
|
/linux-6.3-rc2/arch/arm64/boot/dts/mediatek/ |
A D | pumpkin-common.dtsi | 20 optee: optee { label 21 compatible = "linaro,optee-tz";
|
A D | mt8195-demo.dts | 29 optee { 30 compatible = "linaro,optee-tz"; 74 optee_reserved: optee@43200000 {
|
/linux-6.3-rc2/arch/arm64/boot/dts/socionext/ |
A D | uniphier-ld20-akebi96.dts | 96 optee { 97 compatible = "linaro,optee-tz";
|
/linux-6.3-rc2/drivers/tee/ |
A D | Makefile | 6 obj-$(CONFIG_OPTEE) += optee/
|
A D | Kconfig | 16 source "drivers/tee/optee/Kconfig"
|
/linux-6.3-rc2/arch/arm64/boot/dts/ti/ |
A D | k3-am68-sk-som.dtsi | 24 secure_ddr: optee@9e800000 {
|
A D | k3-am64.dtsi | 40 optee { 41 compatible = "linaro,optee-tz";
|
A D | k3-am62.dtsi | 24 optee { 25 compatible = "linaro,optee-tz";
|
A D | k3-am65.dtsi | 41 optee { 42 compatible = "linaro,optee-tz";
|
/linux-6.3-rc2/drivers/firmware/arm_scmi/ |
A D | Makefile | 12 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o
|