Lines Matching full:tpm
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()
337 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to start the TPM"); in tpm1_startup()
361 dev_err(&chip->dev, "A TPM error (%zd) occurred attempting to determine the timeouts\n", in tpm1_get_timeouts()
455 dev_info(&chip->dev, "Adjusting TPM timeout parameters."); in tpm1_get_timeouts()
521 * tpm1_get_random() - get random bytes from the TPM's RNG
528 * * -errno (positive TPM return codes are masked to -EIO)
614 * tpm1_continue_selftest() - run TPM's selftest
615 * @chip: TPM chip to use
618 * a TPM error code.
635 * tpm1_do_selftest - have the TPM continue its selftest and wait until it
637 * @chip: TPM chip to use
640 * a TPM error code.
657 dev_info(&chip->dev, "TPM not ready (%d)\n", rc); in tpm1_do_selftest()
659 /* This may fail if there was no TPM driver during a suspend/resume in tpm1_do_selftest()
674 dev_info(&chip->dev, HW_ERR "TPM command timed out during continue self test"); in tpm1_do_selftest()
680 dev_info(&chip->dev, "TPM is disabled/deactivated (0x%X)\n", in tpm1_do_selftest()
682 /* TPM is disabled and/or deactivated; driver can in tpm1_do_selftest()
683 * proceed and TPM does handle commands for in tpm1_do_selftest()
698 * tpm1_auto_startup - Perform the standard automatic TPM initialization
700 * @chip: TPM chip to use
713 dev_warn(&chip->dev, "TPM self test failed, switching to the firmware upgrade mode\n"); in tpm1_auto_startup()
714 /* A TPM in this state possibly allows or needs a firmware upgrade */ in tpm1_auto_startup()
718 dev_err(&chip->dev, "TPM self test failed\n"); in tpm1_auto_startup()
733 * @chip: TPM chip to use.
734 * @tpm_suspend_pcr: flush pcr for buggy TPM chips.
736 * The functions saves the TPM state to be restored on resume.
750 /* for buggy tpm, flush pcrs with extend to selected dummy */ in tpm1_pm_suspend()
762 * If the TPM indicates that it is too busy to respond to in tpm1_pm_suspend()
764 * several seconds for this TPM to be ready. in tpm1_pm_suspend()
766 * This can happen if the TPM has already been sent the in tpm1_pm_suspend()
769 * may cause the TPM to invalidate previously saved state. in tpm1_pm_suspend()
782 dev_warn(&chip->dev, "TPM savestate took %dms\n", in tpm1_pm_suspend()
792 * @chip: TPM chip to use.