/Linux-v6.1/drivers/tee/optee/ |
D | notif.c | 21 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 …]
|
D | ffa_abi.c | 58 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 …]
|
D | smc_abi.c | 117 static int optee_from_msg_param(struct optee *optee, struct tee_param *params, in optee_from_msg_param() argument 207 static int optee_to_msg_param(struct optee *optee, in optee_to_msg_param() argument 261 static void optee_enable_shm_cache(struct optee *optee) in optee_enable_shm_cache() argument 266 optee_cq_wait_init(&optee->call_queue, &w); in optee_enable_shm_cache() 270 optee->smc.invoke_fn(OPTEE_SMC_ENABLE_SHM_CACHE, in optee_enable_shm_cache() 274 optee_cq_wait_for_completion(&optee->call_queue, &w); in optee_enable_shm_cache() 276 optee_cq_wait_final(&optee->call_queue, &w); in optee_enable_shm_cache() 286 static void __optee_disable_shm_cache(struct optee *optee, bool is_mapped) in __optee_disable_shm_cache() argument 291 optee_cq_wait_init(&optee->call_queue, &w); in __optee_disable_shm_cache() 298 optee->smc.invoke_fn(OPTEE_SMC_DISABLE_SHM_CACHE, in __optee_disable_shm_cache() [all …]
|
D | core.c | 91 struct optee *optee = tee_get_drvdata(teedev); in optee_open() local 97 if (teedev == optee->supp_teedev) { in optee_open() 100 mutex_lock(&optee->supp.mutex); in optee_open() 101 if (!optee->supp.ctx) { in optee_open() 103 optee->supp.ctx = ctx; in optee_open() 105 mutex_unlock(&optee->supp.mutex); in optee_open() 111 if (!optee->scan_bus_done) { in optee_open() 112 INIT_WORK(&optee->scan_bus_work, optee_bus_scan); in optee_open() 113 optee->scan_bus_wq = create_workqueue("optee_bus_scan"); in optee_open() 114 if (!optee->scan_bus_wq) { in optee_open() [all …]
|
D | call.c | 135 void optee_shm_arg_cache_init(struct optee *optee, u32 flags) in optee_shm_arg_cache_init() argument 137 INIT_LIST_HEAD(&optee->shm_arg_cache.shm_args); in optee_shm_arg_cache_init() 138 mutex_init(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_init() 139 optee->shm_arg_cache.flags = flags; in optee_shm_arg_cache_init() 142 void optee_shm_arg_cache_uninit(struct optee *optee) in optee_shm_arg_cache_uninit() argument 144 struct list_head *head = &optee->shm_arg_cache.shm_args; in optee_shm_arg_cache_uninit() 147 mutex_destroy(&optee->shm_arg_cache.mutex); in optee_shm_arg_cache_uninit() 187 struct optee *optee = tee_get_drvdata(ctx->teedev); in optee_get_msg_arg() local 188 size_t sz = optee_msg_arg_size(optee->rpc_param_count); in optee_get_msg_arg() 199 if (optee->shm_arg_cache.flags & OPTEE_SHM_ARG_SHARED) in optee_get_msg_arg() [all …]
|
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 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 …]
|
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
|
D | optee_private.h | 119 struct optee; 134 int (*to_msg_param)(struct optee *optee, 137 int (*from_msg_param)(struct optee *optee, struct tee_param *params, 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); [all …]
|
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()
|
D | optee_trace.h | 10 #define TRACE_SYSTEM optee
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | stm32mp15-scmi.dtsi | 9 optee: optee { label 10 compatible = "linaro,optee-tz"; 15 compatible = "linaro,scmi-optee"; 18 linaro,optee-channel-id = <0>;
|
D | stm32mp131.dtsi | 33 optee { 35 compatible = "linaro,optee-tz"; 39 compatible = "linaro,scmi-optee"; 42 linaro,optee-channel-id = <0>;
|
D | stm32mp157a-dk1-scmi.dts | 17 optee@de000000 {
|
D | stm32mp157c-dk2-scmi.dts | 17 optee@de000000 {
|
D | stm32mp157c-ed1-scmi.dts | 17 optee@fe000000 {
|
/Linux-v6.1/Documentation/ABI/testing/ |
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-v6.1/arch/arm64/boot/dts/mediatek/ |
D | pumpkin-common.dtsi | 20 optee: optee@4fd00000 { label 21 compatible = "linaro,optee-tz";
|
D | mt8195-demo.dts | 29 optee { 30 compatible = "linaro,optee-tz"; 74 optee_reserved: optee@43200000 {
|
/Linux-v6.1/arch/arm64/boot/dts/socionext/ |
D | uniphier-ld20-akebi96.dts | 96 optee { 97 compatible = "linaro,optee-tz";
|
/Linux-v6.1/drivers/tee/ |
D | Makefile | 6 obj-$(CONFIG_OPTEE) += optee/
|
D | Kconfig | 16 source "drivers/tee/optee/Kconfig"
|
/Linux-v6.1/drivers/firmware/arm_scmi/ |
D | Makefile | 9 scmi-transport-$(CONFIG_ARM_SCMI_TRANSPORT_OPTEE) += optee.o
|
/Linux-v6.1/arch/arm64/boot/dts/ti/ |
D | k3-am62.dtsi | 24 optee { 25 compatible = "linaro,optee-tz";
|
D | k3-am64.dtsi | 40 optee { 41 compatible = "linaro,optee-tz";
|
D | k3-am65.dtsi | 41 optee { 42 compatible = "linaro,optee-tz";
|