Home
last modified time | relevance | path

Searched refs:tpm (Results 1 – 25 of 201) sorted by relevance

123456789

/openbmc/linux/drivers/pwm/
H A Dpwm-imx-tpm.c303 mutex_lock(&tpm->lock); in pwm_imx_tpm_apply()
314 mutex_lock(&tpm->lock); in pwm_imx_tpm_request()
315 tpm->user_count++; in pwm_imx_tpm_request()
325 mutex_lock(&tpm->lock); in pwm_imx_tpm_free()
326 tpm->user_count--; in pwm_imx_tpm_free()
344 tpm = devm_kzalloc(&pdev->dev, sizeof(*tpm), GFP_KERNEL); in pwm_imx_tpm_probe()
345 if (!tpm) in pwm_imx_tpm_probe()
351 if (IS_ERR(tpm->base)) in pwm_imx_tpm_probe()
355 if (IS_ERR(tpm->clk)) in pwm_imx_tpm_probe()
373 mutex_init(&tpm->lock); in pwm_imx_tpm_probe()
[all …]
/openbmc/linux/drivers/char/tpm/
H A DMakefile6 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
14 tpm-y += tpm-sysfs.o
16 tpm-y += eventlog/tpm1.o
[all …]
/openbmc/openbmc/meta-security/meta-tpm/recipes-core/packagegroup/
H A Dpackagegroup-security-tpm.bb8 PACKAGES = "packagegroup-security-tpm"
11 RDEPENDS:packagegroup-security-tpm = " \
12 tpm-tools \
15 tpm-quote-tools \
18 openssl-tpm-engine \
25 kernel-module-tpm-atmel \
26 kernel-module-tpm-infineon \
27 kernel-module-tpm-nsc \
31 kernel-module-tpm-atmel \
32 kernel-module-tpm-infineon \
[all …]
H A Dpackagegroup-security-tpm-i2c.bb8 PACKAGES = "packagegroup-security-tpm-i2c"
10 SUMMARY:packagegroup-security-tpm-i2c = "Security TPM i2c support"
11 RDEPENDS:packagegroup-security-tpm-i2c = " \
12 ${@bb.utils.contains('MACHINE_FEATURES', 'tpm', 'packagegroup-security-tpm', '', d)} \
14 kernel-module-tpm-i2c-atmel \
15 kernel-module-tpm-i2c-infineon \
16 kernel-module-tpm-i2c-nuvoton \
17 kernel-module-tpm-st33zp24 \
18 kernel-module-tpm-st33zp24-i2c \
/openbmc/u-boot/drivers/tpm/
H A Dtpm2_tis_sandbox.c176 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session()
190 if (!tpm->init_done || tpm->startup_done) in sandbox_tpm2_check_readyness()
195 if (!tpm->init_done || !tpm->startup_done) in sandbox_tpm2_check_readyness()
200 if (!tpm->startup_done) in sandbox_tpm2_check_readyness()
205 if (!tpm->tests_done) in sandbox_tpm2_check_readyness()
332 tpm->tests_done = true; in sandbox_tpm2_xfer()
344 tpm->pw_sz[i] = 0; in sandbox_tpm2_xfer()
354 tpm->pcr[i][j] = 0; in sandbox_tpm2_xfer()
624 if (tpm->init_done) in sandbox_tpm2_open()
627 tpm->init_done = true; in sandbox_tpm2_open()
[all …]
H A DKconfig32 The usual tpm operations and the 'tpm' command can be used to talk
41 The usual tpm operations and the 'tpm' command can be used to talk
65 The usual tpm operations and the 'tpm' command can be used to talk
76 available using the 'tpm' command, too.
83 The usual tpm operations and the 'tpm' command can be used to talk
92 The usual tpm operations and the 'tpm' command can be used to talk
101 The functionality is available via the 'tpm' command as well.
109 The functionality is available via the 'tpm' command as well.
116 The functionality is available via the 'tpm' command as well.
144 The usual TPM operations and the 'tpm' command can be used to talk
[all …]
H A Dtpm_tis_sandbox.c183 struct tpm_state *tpm = dev_get_priv(dev); in sandbox_tpm_xfer() local
253 memcpy(&tpm->nvdata[seq].data, sendbuf + 22, length); in sandbox_tpm_xfer()
254 tpm->nvdata[seq].present = true; in sandbox_tpm_xfer()
283 } else if (!tpm->nvdata[seq].present) { in sandbox_tpm_xfer()
288 sizeof(uint32_t), &tpm->nvdata[seq].data, in sandbox_tpm_xfer()
329 struct tpm_state *tpm = dev_get_priv(dev); in sandbox_tpm_probe() local
331 memcpy(tpm, &g_state, sizeof(*tpm)); in sandbox_tpm_probe()
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/tpm-tools/files/
H A D04-fix-FTBFS-clang.patch7 tpm-tools_1.3.9.1-0.1.debian.tar
11 --- tpm-tools-1.3.8/src/tpm_mgmt/tpm_present.c 2012-05-17 21:49:58.000000000 +0400
12 +++ tpm-tools-1.3.8-my/src/tpm_mgmt/tpm_present.c 2014-06-29 01:01:11.502081468 +0400
22 --- tpm-tools-1.3.8/src/tpm_mgmt/tpm_takeownership.c 2010-09-30 21:28:09.000000000 +0400
23 +++ tpm-tools-1.3.8-my/src/tpm_mgmt/tpm_takeownership.c 2014-06-29 01:01:51.069373655 +0400
33 --- tpm-tools-1.3.8/src/tpm_mgmt/tpm_nvwrite.c 2011-08-17 16:20:35.000000000 +0400
34 +++ tpm-tools-1.3.8-my/src/tpm_mgmt/tpm_nvwrite.c 2014-06-29 01:02:45.836397172 +0400
44 --- tpm-tools-1.3.8/src/data_mgmt/data_protect.c 2012-05-17 21:49:58.000000000 +0400
45 +++ tpm-tools-1.3.8-my/src/data_mgmt/data_protect.c 2014-06-29 01:03:49.863254459 +0400
/openbmc/linux/Documentation/devicetree/bindings/security/tpm/
H A Dtpm-tis-i2c.yaml4 $id: http://devicetree.org/schemas/security/tpm/tpm-tis-i2c.yaml#
17 pattern: "^tpm(@[0-9a-f]+)?$"
24 - const: tcg,tpm-tis-i2c
28 - const: tcg,tpm-tis-i2c
29 - const: tcg,tpm-tis-i2c
45 tpm@2e {
46 compatible = "nuvoton,npct75x", "tcg,tpm-tis-i2c";
/openbmc/qemu/qapi/
H A Dtpm.json14 # @tpm-tis: TPM TIS model
16 # @tpm-crb: TPM CRB model (since 2.12)
18 # @tpm-spapr: TPM SPAPR model (since 5.0)
22 { 'enum': 'TpmModel', 'data': [ 'tpm-tis', 'tpm-crb', 'tpm-spapr' ],
26 # @query-tpm-models:
39 { 'command': 'query-tpm-models', 'returns': ['TpmModel'],
57 # @query-tpm-types:
70 { 'command': 'query-tpm-types', 'returns': ['TpmType'],
161 # @query-tpm:
187 { 'command': 'query-tpm', 'returns': ['TPMInfo'],
/openbmc/u-boot/board/gdsys/a38x/
H A Dhre.c108 err = tpm_get_capability(tpm, TPM_CAP_NV_INDEX, index, in get_tpm_nv_size()
163 err = tpm_get_pub_key_oiap(tpm, key_handles[i], auth, buf, in find_key()
183 static int read_common_data(struct udevice *tpm) in read_common_data() argument
190 if (get_tpm_nv_size(tpm, NV_COMMON_DATA_INDEX, &size) || in read_common_data()
193 err = tpm_nv_read_value(tpm, NV_COMMON_DATA_INDEX, in read_common_data()
271 hre_tpm_err = tpm_pcr_read(tpm, HREG_IDX(spec), in access_hreg()
277 read_common_data(tpm); in access_hreg()
407 src_reg = access_hreg(tpm, src_spec, HREG_RD); in hre_execute_op()
410 dst_reg = access_hreg(tpm, dst_spec, in hre_execute_op()
475 hre_tpm_err = tpm_extend(tpm, HREG_IDX(dst_spec), in hre_execute_op()
[all …]
H A Dcontrolcenterdc.c278 struct udevice *tpm; in last_stage_init() local
284 ret = get_tpm(&tpm); in last_stage_init()
285 if (ret || tpm_init(tpm) || tpm_startup(tpm, TPM_ST_CLEAR) || in last_stage_init()
286 tpm_continue_self_test(tpm)) { in last_stage_init()
292 flush_keys(tpm); in last_stage_init()
293 load_and_run_keyprog(tpm); in last_stage_init()
H A Dkeyprogram.c15 int flush_keys(struct udevice *tpm) in flush_keys() argument
24 err = tpm_get_capability(tpm, TPM_CAP_HANDLE, TPM_RT_KEY, buf, in flush_keys()
31 err = tpm_flush_specific(tpm, get_unaligned_be32(ptr), in flush_keys()
126 int load_and_run_keyprog(struct udevice *tpm) in load_and_run_keyprog() argument
149 if (hre_run_program(tpm, prog->code, prog->code_size)) { in load_and_run_keyprog()
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/openssl-tpm-engine/
H A Dopenssl-tpm-engine_0.5.0.bb3 SECTION = "security/tpm"
12 file://0001-create-tpm-key-support-well-known-key-option.patch \
14 file://0003-tpm-openssl-tpm-engine-parse-an-encrypted-tpm-SRK-pa.patch \
15 file://0004-tpm-openssl-tpm-engine-change-variable-c-type-from-c.patch \
49 FILES:${PN}-staticdev += "${libdir}/ssl/engines-3/tpm.la"
56 ${libdir}/ssl/engines-3/tpm.so* \
57 ${libdir}/engines-3/tpm.so* \
59 ${prefix}/local/ssl/lib/engines-3/tpm.so* \
/openbmc/u-boot/board/gdsys/p1022/
H A Dcontrolcenterd-id.c510 read_common_data(tpm); in access_hreg()
649 dst_reg = access_hreg(tpm, dst_spec, in hre_execute_op()
960 if (tpm_continue_self_test(tpm)) in first_stage_actions()
963 tpm_continue_self_test(tpm); in first_stage_actions()
994 struct udevice *tpm; in first_stage_init() local
998 ret = get_tpm(&tpm); in first_stage_init()
999 if (ret || tpm_init(tpm) || tpm_startup(tpm, TPM_ST_CLEAR)) in first_stage_init()
1001 ret = first_stage_actions(tpm); in first_stage_init()
1049 struct udevice *tpm; in second_stage_init() local
1054 ret = get_tpm(&tpm); in second_stage_init()
[all …]
/openbmc/openbmc/meta-security/meta-tpm/
H A DREADME.md1 meta-tpm layer
5 to have 'tpm' in DISTRO_FEATURES to have effect.
8 DISTRO_FEATURES:append = " tpm"
10 If meta-tpm is included, but tpm is not enabled as a
13 You have included the meta-tpm layer, but
14 'tpm' has not been enabled in your DISTRO_FEATURES. Some bbappend files
40 Adding the meta-tpm layer to your build
48 location of the meta-tpm layer to bblayers.conf, along with any
54 /path/to/layer/meta-tpm \
/openbmc/openbmc/meta-security/meta-tpm/classes/
H A Dsanity-meta-tpm.bbclass5 if 'tpm' not in e.data.getVar('DISTRO_FEATURES').split() and \
8 bb.warn("You have included the meta-tpm layer, but \
9 'tpm or tpm2' has not been enabled in your DISTRO_FEATURES. Some bbappend files \
10 and preferred version setting may not take effect. See the meta-tpm README \
11 for details on enabling tpm support.")
/openbmc/qemu/tests/qtest/
H A Dmeson.build209 (config_all_devices.has_key('CONFIG_TPM_TIS_I2C') ? ['tpm-tis-i2c-test'] : []) + \
220 …['tpm-tis-device-test', 'tpm-tis-device-swtpm-test'] : []) + …
296 tpmemu_files = ['tpm-emu.c', 'tpm-util.c', 'tpm-tests.c']
309 'bios-tables-test': [io, 'boot-sector.c', 'acpi-utils.c', 'tpm-emu.c'],
317 'tpm-crb-swtpm-test': [io, tpmemu_files],
318 'tpm-crb-test': [io, tpmemu_files],
319 'tpm-tis-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
320 'tpm-tis-test': [io, tpmemu_files, 'tpm-tis-util.c'],
321 'tpm-tis-i2c-test': [io, tpmemu_files, 'qtest_aspeed.c'],
322 'tpm-tis-device-swtpm-test': [io, tpmemu_files, 'tpm-tis-util.c'],
[all …]
/openbmc/openbmc/meta-security/meta-tpm/recipes-tpm1/tpm-tools/
H A Dtpm-tools_1.3.9.2.bb1 SUMMARY = "The tpm-tools package contains commands to allow the platform administrator the ability …
3 The tpm-tools package contains commands to allow the platform administrator \
8 SECTION = "tpm"
17 git://git.code.sf.net/p/trousers/tpm-tools;branch=master \
18 file://tpm-tools-extendpcr.patch \
/openbmc/linux/Documentation/devicetree/bindings/timer/
H A Dnxp,tpm-timer.yaml4 $id: http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml#
23 - const: fsl,imx7ulp-tpm
25 - const: fsl,imx8ulp-tpm
26 - const: fsl,imx7ulp-tpm
59 compatible = "fsl,imx7ulp-tpm";
/openbmc/openbmc/meta-security/meta-tpm/recipes-core/images/
H A Dsecurity-tpm-image.bb1 DESCRIPTION = "A small image for building a tpm image for testing"
8 packagegroup-security-tpm \
18 export IMAGE_BASENAME = "security-tpm-image"
/openbmc/linux/tools/testing/selftests/tpm2/
H A Dtpm2_tests.py183 self.client.tpm.write(cmd)
184 hdr = self.client.tpm.read(10)
186 rsp = self.client.tpm.read()
200 self.client.tpm.write(cmd)
202 rsp1 = self.client.tpm.read(15)
205 self.client.tpm.write(cmd)
208 rsp2 = self.client.tpm.read()
223 self.client.tpm.write(cmd)
226 self.client.tpm.write(cmd)
227 rsp = self.client.tpm.read()
[all …]
/openbmc/qemu/docs/specs/
H A Dtpm.rst23 - ``hw/tpm/tpm_tis_common.c``
24 - ``hw/tpm/tpm_tis_isa.c``
26 - ``hw/tpm/tpm_tis_i2c.c``
27 - ``hw/tpm/tpm_tis.h``
49 - ``hw/tpm/tpm_crb.c``
57 - ``hw/tpm/tpm_spapr.c``
207 - ``backends/tpm.c``
263 # dmesg | grep -i tpm
267 # ls -l /dev/tpm*
392 # dmesg | grep -i tpm
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-ppi1 What: /sys/class/tpm/tpmX/ppi/
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
/openbmc/qemu/tests/qapi-schema/
H A Dreturns-bad-type.json4 'human-monitor-command', 'query-tpm-models', 'guest-get-time' ] } }
9 { 'enum': 'TpmModel', 'data': [ 'tpm-tis' ] }
10 { 'command': 'query-tpm-models', 'returns': ['TpmModel'] }

123456789