Home
last modified time | relevance | path

Searched full:tpm (Results 1 – 25 of 260) sorted by relevance

1234567891011

/OK3568_Linux_fs/u-boot/drivers/tpm/
H A DKconfig2 # TPM subsystem configuration
5 menu "TPM support"
8 bool "Enable sandbox TPM driver"
11 This driver emulates a TPM, providing access to base functions
12 such as reading and writing TPM private data. This is enough to
17 bool "Enable Atmel TWI TPM device driver"
18 depends on TPM
20 This driver supports an Atmel TPM device connected on the I2C bus.
21 The usual tpm operations and the 'tpm' command can be used to talk
22 to the device using the standard TPM Interface Specification (TIS)
[all …]
H A Dtpm_tis_st33zp24_spi.c2 * STMicroelectronics TPM ST33ZP24 SPI UBOOT driver
6 * Description: Device driver for ST33ZP24 SPI TPM TCG.
8 * This device driver implements the TPM interface as defined in
9 * the TCG TPM Interface Spec version 1.21, revision 1.0 and the
19 #include <tpm.h>
58 * TPM command can be up to 2048 byte, A TPM response can be up to
65 * 2048 (for the TPM command) + 1024 (for the TPM answer). We need
105 * Send byte to TPM register according to the ST33ZP24 SPI protocol.
106 * @param: tpm, the chip description
107 * @param: tpm_register, the tpm tis register where the data should be written
[all …]
H A Dtpm_tis_st33zp24_i2c.c2 * STMicroelectronics TPM ST33ZP24 I2C UBOOT driver
6 * Description: Device driver for ST33ZP24 I2C TPM TCG.
8 * This device driver implements the TPM interface as defined in
9 * the TCG TPM Interface Spec version 1.21, revision 1.0 and the
19 #include <tpm.h>
41 * @param: tpm_register, the tpm tis register where the data should be written
60 * @param: tpm_register, the tpm tis register where the data should be read
61 * @param: tpm_data, the TPM response
62 * @param: tpm_size, tpm TPM response size to read.
83 * @param: tpm_register, the tpm tis register where the data should be written
[all …]
H A Dtpm_tis_sandbox.c9 #include <tpm.h>
14 /* TPM NVRAM location indices. */
20 /* Kernel TPM space - KERNEL_NV_INDEX, locked with physical presence */
39 * the TPM commands manual.
56 * Information about our TPM emulation. This is preserved in the sandbox
67 * not this function sets up an empty TPM.
122 SANDBOX_STATE_IO(sandbox_tpm, "google,sandbox-tpm", sandbox_tpm_read_state,
144 struct tpm_state *tpm = dev_get_priv(dev); in sandbox_tpm_xfer() local
151 printf("tpm: %zd bytes, recv_len %zd, cmd = %x\n", send_size, in sandbox_tpm_xfer()
195 printf("tpm: nvwrite index=%#02x, len=%#02x\n", index, length); in sandbox_tpm_xfer()
[all …]
/OK3568_Linux_fs/kernel/drivers/char/tpm/
H A DKconfig3 # 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 …]
H A DMakefile3 # 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 …]
H A Dtpm1-cmd.c12 * 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 * tpm_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 …]
H A Dtpm-interface.c14 * 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 …]
H A Dtpm_vtpm_proxy.c24 #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 …]
H A Dtpm-chip.c15 * TPM chip management routines.
26 #include "tpm.h"
93 * tpm_chip_start() - power on the TPM
94 * @chip: a TPM chip to use
126 * tpm_chip_stop() - power off the TPM
127 * @chip: a TPM chip to use
194 * tpm_default_chip() - find a TPM chip and get a reference to it
221 * tpm_find_get_ops() - find and reserve a TPM chip
224 * Finds a TPM chip and reserves its class device and operations. The chip must
226 * This function is for internal use only. It supports existing TPM callers
[all …]
H A Dtpm2-cmd.c14 #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 …]
/OK3568_Linux_fs/kernel/drivers/pwm/
H A Dpwm-imx-tpm.c6 * - 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()
175 struct imx_tpm_pwm_chip *tpm = to_imx_tpm_pwm_chip(chip); in pwm_imx_tpm_apply_hw() local
[all …]
/OK3568_Linux_fs/kernel/Documentation/ABI/stable/
H A Dsysfs-class-tpm1 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 …]
/OK3568_Linux_fs/kernel/Documentation/security/tpm/
H A Dtpm_vtpm_proxy.rst2 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 …]
H A Dxen-tpmfront.rst2 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 …]
/OK3568_Linux_fs/kernel/drivers/char/tpm/st33zp24/
H A Dst33zp24.c3 * STMicroelectronics TPM Linux driver for TPM ST33ZP24
21 #include "../tpm.h"
65 * @param: tpm_dev, the tpm device device.
80 * @param: chip, the tpm_chip description as specified in driver/char/tpm/tpm.h
93 * @param: chip, the tpm chip description
107 * @param: chip, the tpm chip description
126 * request_locality request the TPM locality
160 * @param: chip, the tpm chip description.
232 * @param: chip, the tpm chip description
237 * @return: the tpm status, 0 if success, -ETIME if timeout is reached.
[all …]
H A Di2c.c3 * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24
14 #include <linux/tpm.h>
17 #include "../tpm.h"
31 * @param: tpm_register, the tpm tis register where the data should be written
48 * @param: tpm_register, the tpm tis register where the data should be read
49 * @param: tpm_data, the TPM response
50 * @param: tpm_size, tpm TPM response size to read.
70 * @param: tpm_register, the tpm tis register where the data should be written
86 * @param: tpm_register, the tpm tis register where the data should be read
87 * @param: tpm_data, the TPM response
[all …]
H A Dspi.c3 * STMicroelectronics TPM SPI Linux driver for TPM ST33ZP24
14 #include <linux/tpm.h>
17 #include "../tpm.h"
43 * TPM command can be up to 2048 byte, A TPM response can be up to
50 * 2048 (for the TPM command) + 1024 (for the TPM answer). We need
96 * @param: tpm_register, the tpm tis register where the data should be written
139 * @param: tpm_register, the tpm tis register where the data should be read
140 * @param: tpm_data, the TPM response
141 * @param: tpm_size, tpm TPM response size to read.
180 * @param: tpm_register, the tpm tis register where the data should be read
[all …]
/OK3568_Linux_fs/kernel/security/integrity/ima/
H A Dima_init.c28 * Calculate the boot aggregate, a hash over tpm registers 0-7,
29 * assuming a TPM chip exists, and zeroes if the TPM chip does not
33 * If a tpm chip does not exist, indicate the core root of trust is
62 * With TPM 2.0 hash agility, TPM chips could support multiple TPM in ima_add_boot_aggregate()
66 * Use the same hash algorithm for reading the TPM PCRs as for in ima_add_boot_aggregate()
69 * TCG required banks - SHA256 for TPM 2.0, SHA1 for TPM 1.2. in ima_add_boot_aggregate()
70 * Ultimately select SHA1 also for TPM 2.0 if the SHA256 PCR bank in ima_add_boot_aggregate()
119 pr_info("No TPM chip found, activating TPM-bypass!\n"); in ima_init()
132 /* It can be called before ima_init_digests(), it does not use TPM. */ in ima_init()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/timer/
H A Dnxp,tpm-timer.yaml4 $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
22 const: fsl,imx7ulp-tpm
32 - description: SoC TPM ipg clock
33 - description: SoC TPM per clock
55 compatible = "fsl,imx7ulp-tpm";
/OK3568_Linux_fs/u-boot/include/
H A Dtpm.h12 * Here is a partial implementation of TPM commands. Please consult TCG Main
13 * Specification for definitions of TPM commands.
96 * TPM return codes as defined in the TCG Main specification
97 * (TPM Main Part 2 Structures; Specification version 1.2)
103 /* TPM-defined fatal error codes */
202 /* TPM-defined non-fatal errors */
233 /* Max buffer size supported by our tpm */
237 * struct tpm_chip_priv - Information about a TPM, stored by the uclass
253 * struct tpm_ops - low-level TPM operations
262 * This interface is for low-level TPM access. It does not understand the
[all …]
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Dvtpm_proxy.h24 * 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
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Dvtpm_proxy.h24 * 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
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Dvtpm_proxy.h24 * 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
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/
H A D0001-acpi-tpm-Add-missing-device-identification-objects.patch4 Subject: [PATCH] acpi: tpm: Add missing device identification objects
6 Add missing TPM device identification objects _STR and _UID. They will
41 + aml_append(dev, aml_name_decl("_STR", aml_string("TPM 2.0 Device")));
50 dev = aml_device("TPM");
55 + aml_string("TPM 2.0 Device")));
57 dev = aml_device("ISA.TPM");
66 if (TPM_IS_CRB(tpm)) {
67 dev = aml_device("TPM");
70 + aml_string("TPM 2.0 Device")));
79 tpm_build_ppi_acpi(tpm, dev);

1234567891011