/linux-6.8/drivers/char/tpm/ |
D | Kconfig | 3 # TPM device configuration 7 tristate "TPM Hardware Support" 13 If you have a TPM security chip in your system, which 21 will be called tpm. If unsure, say N. 23 1) For more TPM drivers enable CONFIG_PNP, CONFIG_ACPI 31 bool "TPM HW Random Number Generator support" 35 This setting exposes the TPM's Random Number Generator as a hwrng 36 device. This allows the kernel to collect randomness from the TPM at 37 boot, and provides the TPM randomines in /dev/hwrng. 44 TCG TIS TPM core driver. It implements the TPM TCG TIS logic and hooks [all …]
|
D | Makefile | 3 # Makefile for the kernel tpm device drivers. 5 obj-$(CONFIG_TCG_TPM) += tpm.o 6 tpm-y := tpm-chip.o 7 tpm-y += tpm-dev-common.o 8 tpm-y += tpm-dev.o 9 tpm-y += tpm-interface.o 10 tpm-y += tpm1-cmd.o 11 tpm-y += tpm2-cmd.o 12 tpm-y += tpmrm-dev.o 13 tpm-y += tpm2-space.o [all …]
|
D | tpm_tis_i2c_cr50.c | 5 * Based on Infineon TPM driver by Peter Huewe. 32 #define TPM_CR50_TIMEOUT_NOIRQ_MS 20 /* Timeout for TPM ready without IRQ */ 62 * @tpm_info: TPM chip information. 82 * tpm_cr50_i2c_wait_tpm_ready() - Wait for tpm to signal ready. 83 * @chip: A TPM chip. 86 * delay for the TPM to be ready. 102 /* Wait for interrupt to indicate TPM is ready to respond */ in tpm_cr50_i2c_wait_tpm_ready() 104 dev_warn(&chip->dev, "Timeout waiting for TPM ready\n"); in tpm_cr50_i2c_wait_tpm_ready() 112 * tpm_cr50_i2c_enable_tpm_irq() - Enable TPM irq. 113 * @chip: A TPM chip. [all …]
|
D | tpm1-cmd.c | 12 * Device driver for TCG/TCPA TPM (trusted platform module). 23 #include "tpm.h" 31 * TCG Specification TPM Main Part 2 TPM Structures Section 17. The 283 * @chip: TPM chip to use. 284 * @ordinal: TPM command ordinal. 315 * tpm1_startup() - turn on the TPM 316 * @chip: TPM chip to use 318 * Normally the firmware should start the TPM. This function is provided as a 320 * example when a TPM emulator is used. 329 dev_info(&chip->dev, "starting up the TPM manually\n"); in tpm1_startup() [all …]
|
D | tpm-interface.c | 14 * Device driver for TCG/TCPA TPM (trusted platform module). 17 * Note, the TPM chip is not interrupt driven (only polling) 30 #include "tpm.h" 33 * Bug workaround - some TPM's don't flush the most 44 * @chip: TPM chip to use. 45 * @ordinal: TPM command ordinal. 137 * tpm_transmit - Internal kernel interface to transmit TPM commands. 138 * @chip: a TPM chip to use 139 * @buf: a TPM command buffer 140 * @bufsiz: length of the TPM command buffer [all …]
|
D | tpm-chip.c | 15 * TPM chip management routines. 26 #include "tpm.h" 32 .name = "tpm", 98 * tpm_chip_start() - power on the TPM 99 * @chip: a TPM chip to use 131 * tpm_chip_stop() - power off the TPM 132 * @chip: a TPM chip to use 199 * tpm_default_chip() - find a TPM chip and get a reference to it 226 * tpm_find_get_ops() - find and reserve a TPM chip 229 * Finds a TPM chip and reserves its class device and operations. The chip must [all …]
|
D | tpm_vtpm_proxy.c | 24 #include "tpm.h" 43 size_t req_len; /* length of queued TPM request */ 44 size_t resp_len; /* length of queued TPM response */ 47 struct work_struct work; /* task that retrieves TPM timeouts */ 62 * vtpm_proxy_fops_read - Read TPM commands on 'server side' 117 * vtpm_proxy_fops_write - Write TPM responses on 'server side' 211 *@proxy_dev: tpm proxy device 221 /* no more TPM responses -- wake up anyone waiting for them */ in vtpm_proxy_fops_undo_open() 254 * Functions invoked by the core TPM driver to send TPM commands to 259 * Called when core TPM driver reads TPM responses from 'server side' [all …]
|
D | tpm2-cmd.c | 14 #include "tpm.h" 49 * @ordinal: TPM command ordinal. 120 * @chip: TPM chip to use. 121 * @ordinal: TPM command ordinal. 154 * @chip: TPM chip to use. 229 * @chip: TPM chip to use. 278 * tpm2_get_random() - get random bytes from the TPM RNG 286 * -errno otherwise (positive TPM return codes are masked to -EIO) 345 * @chip: TPM chip to use 384 * -errno or a TPM return code otherwise [all …]
|
D | tpm_i2c_atmel.c | 3 * ATMEL I2C TPM AT97SC3204T 11 * Teddy Reed determined the basic I2C command flow, unlike other I2C TPM 12 * devices the raw TCG formatted TPM command data is written via I2C and then 13 * raw TCG formatted TPM command data is returned via I2C. 23 #include "tpm.h" 104 dev_err(&chip->dev, "TPM operation cancellation was requested, but is not supported"); in i2c_atmel_cancel() 113 /* The TPM fails the I2C read until it is ready, so we do the entire in i2c_atmel_read_status() 120 /* Once the TPM has completed the command the command remains readable in i2c_atmel_read_status() 175 * information seems to be read via TPM commands. Thus we rely on the in i2c_atmel_probe() 176 * TPM startup process in the common code to detect the device. */ in i2c_atmel_probe() [all …]
|
/linux-6.8/drivers/pwm/ |
D | pwm-imx-tpm.c | 6 * - The TPM counter and period counter are shared between 92 struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip); in pwm_imx_tpm_round_state() local 96 rate = clk_get_rate(tpm->clk); in pwm_imx_tpm_round_state() 139 struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip); in pwm_imx_tpm_get_state() local 144 state->period = tpm->real_period; in pwm_imx_tpm_get_state() 147 rate = clk_get_rate(tpm->clk); in pwm_imx_tpm_get_state() 148 val = readl(tpm->base + PWM_IMX_TPM_SC); in pwm_imx_tpm_get_state() 150 tmp = readl(tpm->base + PWM_IMX_TPM_CnV(pwm->hwpwm)); in pwm_imx_tpm_get_state() 155 val = readl(tpm->base + PWM_IMX_TPM_CnSC(pwm->hwpwm)); in pwm_imx_tpm_get_state() 177 struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip); in pwm_imx_tpm_apply_hw() local [all …]
|
/linux-6.8/Documentation/devicetree/bindings/tpm/ |
D | tcg,tpm-tis-i2c.yaml | 4 $id: http://devicetree.org/schemas/tpm/tcg,tpm-tis-i2c.yaml# 14 for accessing a TPM chip. It can be transported over various buses, 16 TCG PC Client Specific TPM Interface Specification (TIS) 17 …https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-s… 21 TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP) 22 https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/ 24 Recent TPM 2.0 chips conform to this generic interface, others use a 30 - description: Generic TPM 2.0 chips conforming to TCG PTP interface 35 - const: tcg,tpm-tis-i2c 37 - description: TPM 1.2 and 2.0 chips with vendor-specific I²C interface [all …]
|
D | tcg,tpm-tis-mmio.yaml | 4 $id: http://devicetree.org/schemas/tpm/tcg,tpm-tis-mmio.yaml# 14 for accessing a TPM chip. It can be transported over various buses, 16 TCG PC Client Specific TPM Interface Specification (TIS) 17 …https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-s… 25 - socionext,synquacer-tpm-mmio 26 - const: tcg,tpm-tis-mmio 34 - $ref: tpm-common.yaml# 44 tpm@90000 { 45 compatible = "atmel,at97sc3204", "tcg,tpm-tis-mmio";
|
D | google,cr50.yaml | 4 $id: http://devicetree.org/schemas/tpm/google,cr50.yaml# 17 The chip provides several functions, including TPM 2.0 like functionality. 19 TCG PC Client Platform TPM Profile Specification for TPM 2.0 (PTP), sec 6: 20 https://trustedcomputinggroup.org/resource/pc-client-platform-tpm-profile-ptp-specification/ 27 - $ref: tpm-common.yaml# 31 - $ref: tcg,tpm-tis-i2c.yaml#/properties/reg 45 tpm@0 { 58 tpm@50 {
|
D | tpm-common.yaml | 4 $id: http://devicetree.org/schemas/tpm/tpm-common.yaml# 14 pattern: '^tpm(@[0-9a-f]+)?$' 21 description: human readable string describing the device, e.g. "tpm" 39 present when the TPM is left powered on between suspend and resume 44 description: Reset controller to reset the TPM 48 description: Output GPIO pin to reset the TPM
|
D | tcg,tpm_tis-spi.yaml | 4 $id: http://devicetree.org/schemas/tpm/tcg,tpm_tis-spi.yaml# 14 for accessing a TPM chip. It can be transported over various buses, 16 TCG PC Client Specific TPM Interface Specification (TIS) 17 …https://trustedcomputinggroup.org/resource/pc-client-work-group-pc-client-specific-tpm-interface-s… 29 - $ref: tpm-common.yaml# 53 tpm@0 { 67 tpm@0 {
|
/linux-6.8/Documentation/ABI/stable/ |
D | sysfs-class-tpm | 1 What: /sys/class/tpm/tpmX/device/ 5 Description: The device/ directory under a specific TPM instance exposes 6 the properties of that TPM chip 9 What: /sys/class/tpm/tpmX/device/active 13 Description: The "active" property prints a '1' if the TPM chip is accepting 14 commands. An inactive TPM chip still contains all the state of 17 commands. See the TPM Main Specification part 2, Structures, 21 What: /sys/class/tpm/tpmX/device/cancel 26 pending TPM command. Writing any value to cancel will call the 27 TPM vendor specific cancel operation. [all …]
|
/linux-6.8/Documentation/security/tpm/ |
D | tpm_vtpm_proxy.rst | 2 Virtual TPM Proxy Driver for Linux Containers 14 The goal of this work is to provide TPM functionality to each Linux 15 container. This allows programs to interact with a TPM in a container 16 the same way they interact with a TPM on the physical system. Each 17 container gets its own unique, emulated, software TPM. 22 To make an emulated software TPM available to each container, the container 23 management stack needs to create a device pair consisting of a client TPM 27 is passed to the TPM emulator. Software inside the container can then send 28 TPM commands using the character device and the emulator will receive the 31 To support this, the virtual TPM proxy driver provides a device ``/dev/vtpmx`` [all …]
|
D | xen-tpmfront.rst | 2 Virtual TPM interface for Xen 9 Linux, and a basic understanding of the TPM and vTPM concepts. 14 The goal of this work is to provide a TPM functionality to a virtual guest 16 a TPM in a virtual system the same way they interact with a TPM on the physical 17 system. Each guest gets its own unique, emulated, software TPM. However, each 19 which seals the secrets to the Physical TPM. If the process of creating each of 21 the chain of trust rooted in the hardware TPM to virtual machines in Xen. Each 66 | Hardware TPM | 74 Linux kernel virtual TPM frontend driver. This driver 78 Mini-os TPM backend driver. The Linux frontend driver [all …]
|
/linux-6.8/drivers/char/tpm/st33zp24/ |
D | i2c.c | 3 * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24 11 #include <linux/tpm.h> 13 #include "../tpm.h" 26 * @param: tpm_register, the tpm tis register where the data should be written 43 * @param: tpm_register, the tpm tis register where the data should be read 44 * @param: tpm_data, the TPM response 45 * @param: tpm_size, tpm TPM response size to read. 65 * @param: tpm_register, the tpm tis register where the data should be written 81 * @param: tpm_register, the tpm tis register where the data should be read 82 * @param: tpm_data, the TPM response [all …]
|
D | spi.c | 3 * STMicroelectronics TPM SPI Linux driver for TPM ST33ZP24 11 #include <linux/tpm.h> 13 #include "../tpm.h" 39 * TPM command can be up to 2048 byte, A TPM response can be up to 46 * 2048 (for the TPM command) + 1024 (for the TPM answer). We need 91 * @param: tpm_register, the tpm tis register where the data should be written 134 * @param: tpm_register, the tpm tis register where the data should be read 135 * @param: tpm_data, the TPM response 136 * @param: tpm_size, tpm TPM response size to read. 175 * @param: tpm_register, the tpm tis register where the data should be read [all …]
|
/linux-6.8/Documentation/devicetree/bindings/timer/ |
D | nxp,tpm-timer.yaml | 4 $id: http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml# 7 title: NXP Low Power Timer/Pulse Width Modulation Module (TPM) 13 The Timer/PWM Module (TPM) supports input capture, output compare, 17 power modes. TPM can support global counter bus where one TPM drives 23 - const: fsl,imx7ulp-tpm 25 - const: fsl,imx8ulp-tpm 26 - const: fsl,imx7ulp-tpm 36 - description: SoC TPM ipg clock 37 - description: SoC TPM per clock 59 compatible = "fsl,imx7ulp-tpm";
|
/linux-6.8/security/integrity/ima/ |
D | ima_init.c | 30 * Calculate the boot aggregate, a hash over tpm registers 0-7, 31 * assuming a TPM chip exists, and zeroes if the TPM chip does not 35 * If a tpm chip does not exist, indicate the core root of trust is 61 * With TPM 2.0 hash agility, TPM chips could support multiple TPM in ima_add_boot_aggregate() 65 * Use the same hash algorithm for reading the TPM PCRs as for in ima_add_boot_aggregate() 68 * TCG required banks - SHA256 for TPM 2.0, SHA1 for TPM 1.2. in ima_add_boot_aggregate() 69 * Ultimately select SHA1 also for TPM 2.0 if the SHA256 PCR bank in ima_add_boot_aggregate() 122 pr_info("No TPM chip found, activating TPM-bypass!\n"); in ima_init() 135 /* It can be called before ima_init_digests(), it does not use TPM. */ in ima_init()
|
/linux-6.8/Documentation/security/keys/ |
D | trusted-encrypted.rst | 28 (1) TPM (Trusted Platform Module: hardware device) 30 Rooted to Storage Root Key (SRK) which never leaves the TPM that 47 (1) TPM 62 (1) TPM 65 values, and only unsealed by the TPM, if PCRs and blob integrity 84 (1) TPM 115 * TPM: hardware device based RNG 117 Keys are generated within the TPM. Strength of random numbers may vary 151 Trusted Keys usage: TPM 154 TPM 1.2: By default, trusted keys are sealed under the SRK, which has the [all …]
|
/linux-6.8/include/uapi/linux/ |
D | vtpm_proxy.h | 24 * enum vtpm_proxy_flags - flags for the proxy TPM 25 * @VTPM_PROXY_FLAG_TPM2: the proxy TPM uses TPM 2.0 protocol 34 * @flags: flags for the proxy TPM 35 * @tpm_num: index of the TPM device 36 * @fd: the file descriptor used by the proxy TPM 37 * @major: the major number of the TPM device 38 * @minor: the minor number of the TPM device
|
/linux-6.8/Documentation/ABI/testing/ |
D | sysfs-driver-ppi | 1 What: /sys/class/tpm/tpmX/ppi/ 7 Presence Interface). Only if TPM is supported by BIOS, this 18 What: /sys/class/tpm/tpmX/ppi/version 26 What: /sys/class/tpm/tpmX/ppi/request 36 What: /sys/class/tpm/tpmX/ppi/response 45 What: /sys/class/tpm/tpmX/ppi/transition_action 55 What: /sys/class/tpm/tpmX/ppi/tcg_operations 66 What: /sys/class/tpm/tpmX/ppi/vs_operations
|