Lines Matching +full:- +full:- +full:disable +full:- +full:tpm

1 // SPDX-License-Identifier: GPL-2.0+
9 #include <tpm-v1.h>
10 #include "tpm-user-utils.h"
45 static uint32_t tpm_get_flags(struct udevice *dev, uint8_t *disable, in tpm_get_flags() argument
54 if (disable) in tpm_get_flags()
55 *disable = pflags.disable; in tpm_get_flags()
60 debug("TPM: Got flags disable=%d, deactivated=%d, nvlocked=%d\n", in tpm_get_flags()
61 pflags.disable, pflags.deactivated, pflags.nv_locked); in tpm_get_flags()
68 debug("TPM: Write lock 0x%x\n", index); in tpm_nv_write_value_lock()
127 uint8_t disable = 0, deactivated = 0; in test_enable() local
134 TPM_CHECK(tpm_get_flags(dev, &disable, &deactivated, NULL)); in test_enable()
135 printf("\tdisable is %d, deactivated is %d\n", disable, deactivated); in test_enable()
138 TPM_CHECK(tpm_get_flags(dev, &disable, &deactivated, NULL)); in test_enable()
139 printf("\tdisable is %d, deactivated is %d\n", disable, deactivated); in test_enable()
140 if (disable == 1 || deactivated == 1) in test_enable()
153 uint8_t disable = 0, deactivated = 0; in test_fast_enable() local
161 TPM_CHECK(tpm_get_flags(dev, &disable, &deactivated, NULL)); in test_fast_enable()
162 printf("\tdisable is %d, deactivated is %d\n", disable, deactivated); in test_fast_enable()
165 TPM_CHECK(tpm_get_flags(dev, &disable, &deactivated, NULL)); in test_fast_enable()
166 printf("\tdisable is %d, deactivated is %d\n", disable, in test_fast_enable()
168 assert(disable == 1 && deactivated == 1); in test_fast_enable()
171 TPM_CHECK(tpm_get_flags(dev, &disable, &deactivated, NULL)); in test_fast_enable()
172 printf("\tdisable is %d, deactivated is %d\n", disable, in test_fast_enable()
174 assert(disable == 0 && deactivated == 0); in test_fast_enable()
266 * Checks if initialisation has completed by trying to read-lock a in test_readonly()
411 return -1; \
543 printf("\n------\n"); in do_tpmtest()
545 argc--; in do_tpmtest()
549 return c ? c->cmd(cmdtp, flag, argc, argv) : cmd_usage(cmdtp); in do_tpmtest()
552 U_BOOT_CMD(tpmtest, 2, 1, do_tpmtest, "TPM tests",