Lines Matching full:tpm
14 #include "tpm.h"
53 * @ordinal: TPM command ordinal.
124 * @chip: TPM chip to use.
125 * @ordinal: TPM command ordinal.
158 * @chip: TPM chip to use.
226 * @chip: TPM chip to use.
285 * tpm2_get_random() - get random bytes from the TPM RNG
293 * -errno otherwise (positive TPM return codes are masked to -EIO)
373 * @chip: TPM chip to use
412 * -errno or a TPM return code otherwise
448 * tpm2_shutdown() - send a TPM shutdown command
450 * Sends a TPM shutdown command. The shutdown command is used in call
466 tpm_transmit_cmd(chip, &buf, 0, "stopping the TPM"); in tpm2_shutdown()
473 * @chip: TPM chip to use
477 * The TPM can either run all self tests synchronously and then return
509 * tpm2_probe() - probe for the TPM 2.0 protocol
512 * Send an idempotent TPM 2.0 command and see whether there is TPM2 chip in the
533 /* We ignore TPM return codes on purpose. */ in tpm2_probe()
599 rc = tpm_transmit_cmd(chip, &buf, 9, "get tpm pcr allocation"); in tpm2_get_pcr_allocation()
725 * tpm2_startup - turn on the TPM
726 * @chip: TPM chip to use
728 * Normally the firmware should start the TPM. This function is provided as a
730 * example when a TPM emulator is used.
740 dev_info(&chip->dev, "starting up the TPM manually\n"); in tpm2_startup()
747 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to start the TPM"); in tpm2_startup()
754 * tpm2_auto_startup - Perform the standard automatic TPM initialization
756 * @chip: TPM chip to use
785 "TPM in field failure mode, requires firmware upgrade\n"); in tpm2_auto_startup()
797 * Infineon TPM in field upgrade mode will return no data for the number in tpm2_auto_startup()
801 dev_info(&chip->dev, "TPM in field upgrade mode, requires firmware upgrade\n"); in tpm2_auto_startup()