| /kernel/linux/linux-6.6/drivers/crypto/ccp/ |
| D | tee-dev.c | 3 * AMD Trusted Execution Environment (TEE) interface 18 #include <linux/psp-tee.h> 21 #include "tee-dev.h" 25 static int tee_alloc_ring(struct psp_tee_device *tee, int ring_size) in tee_alloc_ring() argument 27 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_alloc_ring() 49 static void tee_free_ring(struct psp_tee_device *tee) in tee_free_ring() argument 51 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_free_ring() 65 static int tee_wait_cmd_poll(struct psp_tee_device *tee, unsigned int timeout, in tee_wait_cmd_poll() argument 72 *reg = ioread32(tee->io_regs + tee->vdata->cmdresp_reg); in tee_wait_cmd_poll() 79 dev_err(tee->dev, "tee: command timed out, disabling PSP\n"); in tee_wait_cmd_poll() [all …]
|
| D | tee-dev.h | 10 /* This file describes the TEE communication interface between host and AMD 24 * enum tee_ring_cmd_id - TEE interface commands for ring buffer configuration 36 * struct tee_init_ring_cmd - Command to init TEE ring buffer 73 * enum tee_cmd_state - TEE command states for the ring buffer interface 75 * @TEE_CMD_STATE_PROCESS: command being processed by TEE environment 85 * enum cmd_resp_state - TEE command's response status maintained by driver 87 * @CMD_WAITING_FOR_RESPONSE: driver waiting for response from TEE 88 * @CMD_RESPONSE_TIMEDOUT: failed to get response from TEE 89 * @CMD_RESPONSE_COPIED: driver has copied response from TEE 99 * struct tee_ring_cmd - Structure of the command buffer in TEE ring [all …]
|
| /kernel/linux/linux-5.10/drivers/crypto/ccp/ |
| D | tee-dev.c | 3 * AMD Trusted Execution Environment (TEE) interface 17 #include <linux/psp-tee.h> 20 #include "tee-dev.h" 24 static int tee_alloc_ring(struct psp_tee_device *tee, int ring_size) in tee_alloc_ring() argument 26 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_alloc_ring() 48 static void tee_free_ring(struct psp_tee_device *tee) in tee_free_ring() argument 50 struct ring_buf_manager *rb_mgr = &tee->rb_mgr; in tee_free_ring() 64 static int tee_wait_cmd_poll(struct psp_tee_device *tee, unsigned int timeout, in tee_wait_cmd_poll() argument 71 *reg = ioread32(tee->io_regs + tee->vdata->cmdresp_reg); in tee_wait_cmd_poll() 78 dev_err(tee->dev, "tee: command timed out, disabling PSP\n"); in tee_wait_cmd_poll() [all …]
|
| D | tee-dev.h | 10 /* This file describes the TEE communication interface between host and AMD 24 * enum tee_ring_cmd_id - TEE interface commands for ring buffer configuration 36 * struct tee_init_ring_cmd - Command to init TEE ring buffer 73 * enum tee_cmd_state - TEE command states for the ring buffer interface 75 * @TEE_CMD_STATE_PROCESS: command being processed by TEE environment 85 * enum cmd_resp_state - TEE command's response status maintained by driver 87 * @CMD_WAITING_FOR_RESPONSE: driver waiting for response from TEE 88 * @CMD_RESPONSE_TIMEDOUT: failed to get response from TEE 89 * @CMD_RESPONSE_COPIED: driver has copied response from TEE 99 * struct tee_ring_cmd - Structure of the command buffer in TEE ring [all …]
|
| /kernel/linux/linux-5.10/Documentation/staging/ |
| D | tee.rst | 2 TEE subsystem 5 This document describes the TEE subsystem in Linux. 7 A TEE (Trusted Execution Environment) is a trusted OS running in some 9 secure co-processor etc. A TEE driver handles the details needed to 10 communicate with the TEE. 14 - Registration of TEE drivers 16 - Managing shared memory between Linux and the TEE 18 - Providing a generic API to the TEE 20 The TEE interface 23 include/uapi/linux/tee.h defines the generic interface to a TEE. [all …]
|
| /kernel/linux/linux-6.6/Documentation/staging/ |
| D | tee.rst | 2 TEE subsystem 5 This document describes the TEE subsystem in Linux. 7 A TEE (Trusted Execution Environment) is a trusted OS running in some 9 secure co-processor etc. A TEE driver handles the details needed to 10 communicate with the TEE. 14 - Registration of TEE drivers 16 - Managing shared memory between Linux and the TEE 18 - Providing a generic API to the TEE 20 The TEE interface 23 include/uapi/linux/tee.h defines the generic interface to a TEE. [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | psp-tee.h | 3 * AMD Trusted Execution Environment (TEE) interface 17 /* This file defines the Trusted Execution Environment (TEE) interface commands 19 * AMD-TEE Trusted OS. 23 * enum tee_cmd_id - TEE Interface Command IDs 25 * TEE environment 26 * @TEE_CMD_ID_UNLOAD_TA: Unload TA binary from TEE environment 46 * @cmd_id: TEE command ID (&enum tee_cmd_id) 47 * @buf: Command buffer for TEE processing. On success, is updated 50 * @status: On success, holds the TEE command execution status 53 * TEE environment and waits for a response or until the command times out. [all …]
|
| D | tee_drv.h | 14 #include <linux/tee.h> 19 * The file describes the API provided by the generic TEE driver to the 20 * specific TEE driver. 30 #define TEE_SHM_PRIV BIT(7) /* Memory private to TEE driver */ 47 * wait for tee-supplicant daemon to be started if not present 49 * that arises from TEE based kernel drivers that should be 51 * @cap_memref_null: flag indicating if the TEE Client support shared 94 * @shm_register: register shared memory buffer in TEE 95 * @shm_unregister: unregister shared memory buffer in TEE 121 * struct tee_desc - Describes the TEE driver to the subsystem [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | psp-tee.h | 3 * AMD Trusted Execution Environment (TEE) interface 17 /* This file defines the Trusted Execution Environment (TEE) interface commands 19 * AMD-TEE Trusted OS. 23 * enum tee_cmd_id - TEE Interface Command IDs 25 * TEE environment 26 * @TEE_CMD_ID_UNLOAD_TA: Unload TA binary from TEE environment 46 * @cmd_id: TEE command ID (&enum tee_cmd_id) 47 * @buf: Command buffer for TEE processing. On success, is updated 50 * @status: On success, holds the TEE command execution status 53 * TEE environment and waits for a response or until the command times out. [all …]
|
| D | tee_drv.h | 14 #include <linux/tee.h> 19 * The file describes the API provided by the generic TEE driver to the 20 * specific TEE driver. 27 #define TEE_SHM_PRIV BIT(3) /* Memory private to TEE driver */ 44 * wait for tee-supplicant daemon to be started if not present 46 * that arises from TEE based kernel drivers that should be 48 * @cap_memref_null: flag indicating if the TEE Client support shared 91 * @shm_register: register shared memory buffer in TEE 92 * @shm_unregister: unregister shared memory buffer in TEE 118 * struct tee_desc - Describes the TEE driver to the subsystem [all …]
|
| /kernel/linux/common_modules/tzdriver/ |
| D | README.md | 5 …d TEE. Tzdriver processes commands from Tee Client and sends instructions to switch from REE to TE… 9 smc: Send smc instructions to switch the CPU from the REE side to the TEE side for operation. 11 session_manager: Manage communication sessions between REE and TEE. 13 mailbox:Data is shared between REE and TEE through the mailbox. 17 tzdebug:Create debugfs debugging nodes to facilitate developers in debugging TEE functionality 19 tlogger:TEE log driver module, supporting TEE log recording and printing. 31 ├── gp_ops.c # GP TEE specification processing logic 32 ├── mailbox_mempool.c # REE and TEE shared memory management 34 ├── smc_smp.c # Send SMC command to switch to TEE 36 ├── tlogger # TEE log driver [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/rcutorture/bin/ |
| D | kvm-remote.sh | 79 echo | tee -a "$oldrun/remote-log" 80 echo " ----" kvm.sh output: "(`date`)" | tee -a "$oldrun/remote-log" 81 cat $T/kvm.sh.out | tee -a "$oldrun/remote-log" 88 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log" 89 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log" 106 echo $scriptname: kvm-again.sh failed exit code $? | tee -a "$oldrun/remote-log" 107 cat $T/kvm-again.sh.out | tee -a "$oldrun/remote-log" 113 echo | tee -a "$oldrun/remote-log" 114 echo " ----" kvm-again.sh output: "(`date`)" | tee -a "$oldrun/remote-log" 116 echo | tee -a "$oldrun/remote-log" [all …]
|
| D | kvm-end-run-stats.sh | 30 echo | tee -a "$rundir/log" 31 echo | tee -a "$rundir/log" 32 echo " --- `date` Test summary:" | tee -a "$rundir/log" 33 echo Results directory: $rundir | tee -a "$rundir/log" 34 kcsan-collapse.sh "$rundir" | tee -a "$rundir/log" 37 cat $T/kvm-recheck.sh.out | tee -a "$rundir/log" 38 echo " --- Done at `date` (`get_starttime_duration $starttime`) exitcode $ret" | tee -a "$rundir/lo…
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-bus-optee-devices | 1 What: /sys/bus/tee/devices/optee-ta-<uuid>/ 4 Contact: op-tee@lists.trustedfirmware.org 6 OP-TEE bus provides reference to registered drivers under this directory. The <uuid> 10 What: /sys/bus/tee/devices/optee-ta-<uuid>/need_supplicant 13 Contact: op-tee@lists.trustedfirmware.org 15 Allows to distinguish whether an OP-TEE based TA/device requires user-space 16 tee-supplicant to function properly or not. This attribute will be present for 17 devices which depend on tee-supplicant to be running.
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-bus-optee-devices | 1 What: /sys/bus/tee/devices/optee-ta-<uuid>/ 4 Contact: op-tee@lists.trustedfirmware.org 6 OP-TEE bus provides reference to registered drivers under this directory. The <uuid> 10 What: /sys/bus/tee/devices/optee-ta-<uuid>/need_supplicant 13 Contact: op-tee@lists.trustedfirmware.org 15 Allows to distinguish whether an OP-TEE based TA/device requires user-space 16 tee-supplicant to function properly or not. This attribute will be present for 17 devices which depend on tee-supplicant to be running.
|
| /kernel/linux/linux-6.6/drivers/tee/optee/ |
| D | Kconfig | 2 # OP-TEE Trusted Execution Environment Configuration 4 tristate "OP-TEE" 8 This implements the OP-TEE Trusted Execution Environment (TEE) 12 bool "Load OP-TEE image as firmware" 16 This loads the BL32 image for OP-TEE as firmware when the driver is 26 Documentation/staging/tee.rst.
|
| /kernel/linux/linux-5.10/drivers/tee/optee/ |
| D | Kconfig | 2 # OP-TEE Trusted Execution Environment Configuration 4 tristate "OP-TEE" 8 This implements the OP-TEE Trusted Execution Environment (TEE) 17 used by OP-TEE TEE driver.
|
| /kernel/linux/linux-5.10/drivers/tee/ |
| D | Kconfig | 3 config TEE config 12 Environment (TEE). 14 if TEE 16 menu "TEE drivers" 18 source "drivers/tee/optee/Kconfig" 19 source "drivers/tee/amdtee/Kconfig"
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/arm/firmware/ |
| D | linaro,optee-tz.txt | 1 OP-TEE Device Tree Bindings 3 OP-TEE is a piece of software using hardware features to provide a Trusted 10 * OP-TEE based on ARM TrustZone required properties: 14 - method : The method of calling the OP-TEE Trusted OS. Permitted 18 in drivers/tee/optee/optee_smc.h 21 in drivers/tee/optee/optee_smc.h
|
| /kernel/linux/linux-6.6/tools/testing/selftests/amd-pstate/ |
| D | tbench.sh | 26 echo "$1, $2, $3, $4, $5, $6, $7, $8" | tee -a $OUTFILE_TBENCH.csv > /dev/null 2>&1 88 printf "Tbench-$1-#$2 avg des perf: $avg_des_perf\n" | tee -a $OUTFILE_TBENCH.result 92 printf "Tbench-$1-#$2 avg freq: $avg_freq\n" | tee -a $OUTFILE_TBENCH.result 96 printf "Tbench-$1-#$2 avg load: $avg_load\n" | tee -a $OUTFILE_TBENCH.result 100 printf "Tbench-$1-#$2 throughput(MB/s): $tp_sum\n" | tee -a $OUTFILE_TBENCH.result 104 printf "Tbench-$1-#$2 power consumption(J): $en_sum\n" | tee -a $OUTFILE_TBENCH.result 114 printf "Tbench-$1-#$2 performance per watt(MB/J): $ppw\n" | tee -a $OUTFILE_TBENCH.result 115 printf "\n" | tee -a $OUTFILE_TBENCH.result 135 printf "Tbench test result for $1 (loops:$LOOP_TIMES)" | tee -a $OUTFILE_TBENCH.result 136 printf "\n--------------------------------------------------\n" | tee -a $OUTFILE_TBENCH.result [all …]
|
| D | gitsource.sh | 31 echo "$1, $2, $3, $4, $5, $6, $7, $8" | tee -a $OUTFILE_GIT.csv > /dev/null 2>&1 101 printf "Gitsource-$1-#$2 avg des perf: $avg_des_perf\n" | tee -a $OUTFILE_GIT.result 105 printf "Gitsource-$1-#$2 avg freq: $avg_freq\n" | tee -a $OUTFILE_GIT.result 109 printf "Gitsource-$1-#$2 avg load: $avg_load\n" | tee -a $OUTFILE_GIT.result 113 printf "Gitsource-$1-#$2 user time(s): $time_sum\n" | tee -a $OUTFILE_GIT.result 117 printf "Gitsource-$1-#$2 power consumption(J): $en_sum\n" | tee -a $OUTFILE_GIT.result 127 printf "Gitsource-$1-#$2 performance per watt(1/J): $ppw\n" | tee -a $OUTFILE_GIT.result 128 printf "\n" | tee -a $OUTFILE_GIT.result 148 printf "Gitsource test result for $1 (loops:$LOOP_TIMES)" | tee -a $OUTFILE_GIT.result 149 printf "\n--------------------------------------------------\n" | tee -a $OUTFILE_GIT.result [all …]
|
| /kernel/linux/linux-6.6/drivers/tee/amdtee/ |
| D | call.c | 7 #include <linux/tee.h> 9 #include <linux/psp-tee.h> 15 static int tee_params_to_amd_params(struct tee_param *tee, u32 count, in tee_params_to_amd_params() argument 24 if (!tee || !amd || count > TEE_MAX_PARAMS) in tee_params_to_amd_params() 29 /* AMD TEE does not support meta parameter */ in tee_params_to_amd_params() 30 if (tee[i].attr > TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT) in tee_params_to_amd_params() 33 amd->param_types |= ((tee[i].attr & 0xF) << i * 4); in tee_params_to_amd_params() 48 u32 buf_id = get_buffer_id(tee[i].u.memref.shm); in tee_params_to_amd_params() 51 amd->params[i].mref.offset = tee[i].u.memref.shm_offs; in tee_params_to_amd_params() 52 amd->params[i].mref.size = tee[i].u.memref.size; in tee_params_to_amd_params() [all …]
|
| /kernel/linux/linux-5.10/drivers/tee/amdtee/ |
| D | call.c | 7 #include <linux/tee.h> 9 #include <linux/psp-tee.h> 15 static int tee_params_to_amd_params(struct tee_param *tee, u32 count, in tee_params_to_amd_params() argument 24 if (!tee || !amd || count > TEE_MAX_PARAMS) in tee_params_to_amd_params() 29 /* AMD TEE does not support meta parameter */ in tee_params_to_amd_params() 30 if (tee[i].attr > TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT) in tee_params_to_amd_params() 33 amd->param_types |= ((tee[i].attr & 0xF) << i * 4); in tee_params_to_amd_params() 48 u32 buf_id = get_buffer_id(tee[i].u.memref.shm); in tee_params_to_amd_params() 51 amd->params[i].mref.offset = tee[i].u.memref.shm_offs; in tee_params_to_amd_params() 52 amd->params[i].mref.size = tee[i].u.memref.size; in tee_params_to_amd_params() [all …]
|
| /kernel/linux/linux-6.6/include/uapi/linux/ |
| D | tee.h | 35 * This file describes the API provided by a TEE driver to user space. 37 * Each TEE driver defines a TEE specific protocol which is used for the 47 #define TEE_GEN_CAP_GP (1 << 0)/* GlobalPlatform compliant TEE */ 55 * TEE Implementation ID 61 * OP-TEE specific capabilities 66 * struct tee_ioctl_version_data - TEE version 67 * @impl_id: [out] TEE implementation id 71 * Identifies the TEE implementation, @impl_id is one of TEE_IMPL_ID_* above. 82 * TEE_IOC_VERSION - query version of TEE 84 * Takes a tee_ioctl_version_data struct and returns with the TEE version [all …]
|
| /kernel/linux/linux-6.6/drivers/tee/ |
| D | Kconfig | 3 menuconfig TEE config 12 Environment (TEE). 14 if TEE 16 source "drivers/tee/optee/Kconfig" 17 source "drivers/tee/amdtee/Kconfig"
|