/u-boot/drivers/tpm/ |
A D | tpm2_tis_sandbox.c | 181 strncmp(pw, tpm->pw[*hierarchy], tpm->pw_sz[*hierarchy])) { in sandbox_tpm2_check_session() 195 if (!tpm->init_done || tpm->startup_done) in sandbox_tpm2_check_readyness() 200 if (!tpm->init_done || !tpm->startup_done) in sandbox_tpm2_check_readyness() 205 if (!tpm->startup_done) in sandbox_tpm2_check_readyness() 210 if (!tpm->tests_done) in sandbox_tpm2_check_readyness() 337 tpm->tests_done = true; in sandbox_tpm2_xfer() 349 tpm->pw_sz[i] = 0; in sandbox_tpm2_xfer() 359 tpm->pcr[i][j] = 0; in sandbox_tpm2_xfer() 581 if (tpm->init_done) in sandbox_tpm2_open() 584 tpm->init_done = true; in sandbox_tpm2_open() [all …]
|
A D | Kconfig | 32 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. 154 The usual TPM operations and the 'tpm' command can be used to talk
|
A D | tpm_tis_sandbox.c | 183 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()
|
A D | Makefile | 4 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-uclass.o
|
A D | tpm-uclass.c | 137 UCLASS_DRIVER(tpm) = {
|
/u-boot/board/gdsys/a38x/ |
A D | hre.c | 110 err = tpm_get_capability(tpm, TPM_CAP_NV_INDEX, index, in get_tpm_nv_size() 165 err = tpm_get_pub_key_oiap(tpm, key_handles[i], auth, buf, in find_key() 185 static int read_common_data(struct udevice *tpm) in read_common_data() argument 192 if (get_tpm_nv_size(tpm, NV_COMMON_DATA_INDEX, &size) || in read_common_data() 195 err = tpm_nv_read_value(tpm, NV_COMMON_DATA_INDEX, in read_common_data() 273 hre_tpm_err = tpm_pcr_read(tpm, HREG_IDX(spec), in access_hreg() 279 read_common_data(tpm); in access_hreg() 409 src_reg = access_hreg(tpm, src_spec, HREG_RD); in hre_execute_op() 412 dst_reg = access_hreg(tpm, dst_spec, in hre_execute_op() 477 hre_tpm_err = tpm_extend(tpm, HREG_IDX(dst_spec), in hre_execute_op() [all …]
|
A D | controlcenterdc.c | 284 struct udevice *tpm; in last_stage_init() local 290 ret = get_tpm(&tpm); in last_stage_init() 291 if (ret || tpm_init(tpm) || tpm_startup(tpm, TPM_ST_CLEAR) || in last_stage_init() 292 tpm_continue_self_test(tpm)) { in last_stage_init() 298 flush_keys(tpm); in last_stage_init() 299 load_and_run_keyprog(tpm); in last_stage_init()
|
A D | keyprogram.h | 10 int load_and_run_keyprog(struct udevice *tpm); 11 int flush_keys(struct udevice *tpm);
|
A D | keyprogram.c | 17 int flush_keys(struct udevice *tpm) in flush_keys() argument 26 err = tpm_get_capability(tpm, TPM_CAP_HANDLE, TPM_RT_KEY, buf, in flush_keys() 33 err = tpm_flush_specific(tpm, get_unaligned_be32(ptr), in flush_keys() 128 int load_and_run_keyprog(struct udevice *tpm) in load_and_run_keyprog() argument 151 if (hre_run_program(tpm, prog->code, prog->code_size)) { in load_and_run_keyprog()
|
A D | hre.h | 35 int hre_run_program(struct udevice *tpm, const uint8_t *code, size_t code_size);
|
/u-boot/board/gdsys/p1022/ |
A D | controlcenterd-id.c | 517 read_common_data(tpm); in access_hreg() 656 dst_reg = access_hreg(tpm, dst_spec, in hre_execute_op() 967 if (tpm_continue_self_test(tpm)) in first_stage_actions() 970 tpm_continue_self_test(tpm); in first_stage_actions() 1001 struct udevice *tpm; in first_stage_init() local 1005 ret = get_tpm(&tpm); in first_stage_init() 1006 if (ret || tpm_init(tpm) || tpm_startup(tpm, TPM_ST_CLEAR)) in first_stage_init() 1008 ret = first_stage_actions(tpm); in first_stage_init() 1056 struct udevice *tpm; in second_stage_init() local 1061 ret = get_tpm(&tpm); in second_stage_init() [all …]
|
/u-boot/board/gdsys/mpc8308/ |
A D | gazerbeam.c | 130 struct udevice *tpm; in last_stage_init() local 147 ret = get_tpm(&tpm); in last_stage_init() 148 if (ret || tpm_init(tpm) || tpm_startup(tpm, TPM_ST_CLEAR) || in last_stage_init() 149 tpm_continue_self_test(tpm)) { in last_stage_init()
|
/u-boot/doc/device-tree-bindings/tpm2/ |
A D | sandbox.txt | 9 tpm {
|
A D | tis-tpm2-spi.txt | 14 tpm@1 {
|
/u-boot/lib/ |
A D | Makefile | 53 obj-$(CONFIG_$(SPL_TPL_)TPM) += tpm-common.o 56 obj-$(CONFIG_TPM_V1) += tpm-v1.o 57 obj-$(CONFIG_TPM_V2) += tpm-v2.o
|
/u-boot/doc/device-tree-bindings/interrupt-controller/ |
A D | intel,acpi-gpe.txt | 25 tpm@50 {
|
/u-boot/doc/device-tree-bindings/gpio/ |
A D | intel,apl-gpio.txt | 46 tpm@50 {
|
/u-boot/arch/arm/dts/ |
A D | rk3399-gru-bob.dts | 84 tpm {
|
A D | rk3399-gru-kevin.dts | 188 tpm: tpm@20 { label
|
A D | rk3288-veyron.dtsi | 465 tpm: tpm@20 { label 797 tpm { 798 tpm_int_h: tpm-int-h {
|
/u-boot/arch/x86/dts/ |
A D | chromebox_panther.dts | 84 tpm {
|
/u-boot/cmd/ |
A D | Makefile | 152 obj-$(CONFIG_CMD_TPM) += tpm-common.o 153 obj-$(CONFIG_CMD_TPM_V1) += tpm-v1.o 155 obj-$(CONFIG_CMD_TPM_V2) += tpm-v2.o
|
/u-boot/doc/usage/ |
A D | qfw.rst | 53 etc/tpm/log
|
/u-boot/drivers/ |
A D | Kconfig | 125 source "drivers/tpm/Kconfig"
|
/u-boot/arch/sandbox/dts/ |
A D | sandbox.dtsi | 284 tpm { 285 compatible = "google,sandbox-tpm";
|