/openbmc/linux/drivers/tee/optee/ |
H 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 …]
|
H 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 801 struct optee *optee; in optee_ffa_probe() local [all …]
|
H A D | smc_abi.c | 227 static int optee_to_msg_param(struct optee *optee, in optee_to_msg_param() argument 677 struct optee *optee, in handle_rpc_func_cmd_shm_alloc() argument 820 struct optee *optee = tee_get_drvdata(teedev); in optee_handle_rpc() local 1042 struct optee *optee = dev_id; in notif_irq_handler() local 1049 struct optee *optee = dev_id; in notif_irq_thread_fn() local 1074 struct optee *optee = pcpu->optee; in notif_pcpu_irq_handler() local 1087 struct optee *optee = container_of(optee_smc, struct optee, smc); in notif_pcpu_irq_work_fn() local 1102 per_cpu_ptr(optee_pcpu, cpu)->optee = optee; in init_pcpu_irq() 1166 free_irq(optee->smc.notif_irq, optee); in optee_smc_notif_uninit_irq() 1609 struct optee *optee = NULL; in optee_probe() local [all …]
|
H 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 …]
|
H 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 …]
|
H 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 …]
|
H 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
|
H A D | optee_private.h | 102 struct optee *optee; member 143 struct optee; 158 int (*to_msg_param)(struct optee *optee, 184 struct optee { struct 233 int optee_notif_init(struct optee *optee, u_int max_key); 234 void optee_notif_uninit(struct optee *optee); 235 int optee_notif_wait(struct optee *optee, u_int key); 236 int optee_notif_send(struct optee *optee, u_int key); 276 void optee_remove_common(struct optee *optee); 309 void optee_shm_arg_cache_init(struct optee *optee, u32 flags); [all …]
|
H 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()
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-bsp/scp-firmware/files/ |
H A D | 0001-OPTEE-Private-Includes.patch | 6 Change the optee module includes to be private instead of public, so they don't get used 14 module/optee/console/CMakeLists.txt | 2 +- 15 module/optee/mbx/CMakeLists.txt | 2 +- 18 diff --git a/module/optee/console/CMakeLists.txt b/module/optee/console/CMakeLists.txt 20 --- a/module/optee/console/CMakeLists.txt 21 +++ b/module/optee/console/CMakeLists.txt 31 diff --git a/module/optee/mbx/CMakeLists.txt b/module/optee/mbx/CMakeLists.txt 33 --- a/module/optee/mbx/CMakeLists.txt 34 +++ b/module/optee/mbx/CMakeLists.txt
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee/ |
H A D | optee-os-tadevkit_4.1.0.bb | 1 require recipes-security/optee/optee-os_${PV}.bb 11 install -d ${D}${includedir}/optee/export-user_ta/ 13 cp -aR $f ${D}${includedir}/optee/export-user_ta/ 18 echo "Do not inherit do_deploy from optee-os." 21 FILES:${PN} = "${includedir}/optee/" 28 EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \
|
H A D | optee-test_4.1.0.bb | 1 require recipes-security/optee/optee-test.inc 8 EXTRA_OEMAKE:append = "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \ 11 RDEPENDS:${PN} += "${@bb.utils.contains('MACHINE_FEATURES', 'optee-spmc-test', \
|
H A D | optee-test.inc | 10 require optee.inc 12 DEPENDS = "optee-client optee-os-tadevkit python3-cryptography-native openssl" 42 # install path should match the value set in optee-client/tee-supplicant 51 install -d ${DEPLOYDIR}/${MLPREFIX}optee/ta 52 install -m 644 ${B}/ta/*/*.elf ${DEPLOYDIR}/${MLPREFIX}optee/ta
|
H A D | optee-os_4.1.0.bb | 1 require recipes-security/optee/optee-os.inc 9 file://0003-optee-enable-clang-support.patch \
|
H A D | optee-os.inc | 9 require optee.inc 61 install -d ${DEPLOYDIR}/${MLPREFIX}optee 62 install -m 644 ${D}${nonarch_base_libdir}/firmware/* ${DEPLOYDIR}/${MLPREFIX}optee 64 install -d ${DEPLOYDIR}/${MLPREFIX}optee/ta 65 install -m 644 ${B}/ta/*/*.elf ${DEPLOYDIR}/${MLPREFIX}optee/ta
|
/openbmc/linux/Documentation/devicetree/bindings/arm/firmware/ |
H 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 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";
|
/openbmc/openbmc/meta-arm/documentation/ |
H A D | trusted-services.md | 10 These files are automatically included into optee-os image accordingly to defined MACHINE_FEATURES. 14 To include TS SPs into optee-os image you need to add into MACHINE_FEATURES 25 | spm-test[1-3] | optee-spmc-test | 34 enabled if the `ts-smm-gateway` and/or the `optee-spmc-test` machine features are enabled. 37 2. optee-os might require platform specific OP-TEE build parameters (for example what SEL the SPM C… 38 …You can find examples in `meta-arm/recipes-security/optee/optee-os_%.bbappend` for qemuarm64-secur… 39 …and in `meta-arm-bsp/recipes-security/optee/optee-os-n1sdp.inc` and `meta-arm-bsp/recipes-security… 65 [^4]: https://optee.readthedocs.io/en/latest/building/gits/optee_test.html
|
/openbmc/u-boot/doc/device-tree-bindings/firmware/ |
H A D | linaro,optee-tz.txt | 12 - 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";
|
/openbmc/linux/arch/arm/boot/dts/st/ |
H 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>;
|
/openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-security/optee/ |
H A D | optee-os-n1sdp.inc | 1 # N1 SDP specific configuration for optee-os 3 require optee-os-generic-n1sdp.inc 7 FILESEXTRAPATHS:prepend := "${THISDIR}/files/optee-os/n1sdp:" 11 file://0003-plat-n1sdp-register-DRAM1-to-optee-os.patch \
|
/openbmc/openbmc/meta-arm/ci/ |
H A D | qemuarm-secureboot.yml | 10 - optee-examples 11 - optee-test 12 - optee-os-tadevkit
|
H A D | qemuarm64-secureboot.yml | 10 - optee-examples 11 - optee-test 12 - optee-os-tadevkit
|
H A D | n1sdp-optee.yml | 4 # Config specific for the optee-xtests 6 optee-test: | 12 IMAGE_INSTALL:append = " optee-test"
|
/openbmc/openbmc/meta-arm/meta-arm/recipes-security/optee-ftpm/ |
H A D | optee-os_%.bbappend | 5 'optee-ftpm', \ 6 'optee-ftpm', \ 12 'optee-ftpm', \
|
H A D | optee-ftpm_git.bb | 19 DEPENDS = "python3-pyelftools-native optee-os-tadevkit python3-cryptography-native " 33 TA_DEV_KIT_DIR = "${STAGING_INCDIR}/optee/export-user_ta" 39 CFLAGS="${CFLAGS} --sysroot=${STAGING_DIR_HOST} -I${WORKDIR}/optee-os" \ 67 install -d ${DEPLOYDIR}/optee 68 …0644 ${S}/Samples/ARM32-FirmwareTPM/optee_ta/out/fTPM/${FTPM_UUID}.stripped.elf ${DEPLOYDIR}/optee/
|