Lines Matching full:tpm

14 #include "tpm.h"
66 * @ordinal: TPM command ordinal.
95 * @chip: TPM chip to use.
163 * @chip: TPM chip to use.
222 * tpm2_get_random() - get random bytes from the TPM RNG
230 * -errno otherwise (positive TPM return codes are masked to -EIO)
309 * @chip: TPM chip to use
348 * -errno or a TPM return code otherwise
384 * tpm2_shutdown() - send a TPM shutdown command
386 * Sends a TPM shutdown command. The shutdown command is used in call
402 tpm_transmit_cmd(chip, &buf, 0, "stopping the TPM"); in tpm2_shutdown()
409 * @chip: TPM chip to use
413 * The TPM can either run all self tests synchronously and then return
445 * tpm2_probe() - probe for the TPM 2.0 protocol
448 * Send an idempotent TPM 2.0 command and see whether there is TPM2 chip in the
469 /* We ignore TPM return codes on purpose. */ in tpm2_probe()
535 rc = tpm_transmit_cmd(chip, &buf, 9, "get tpm pcr allocation"); in tpm2_get_pcr_allocation()
661 * tpm2_startup - turn on the TPM
662 * @chip: TPM chip to use
664 * Normally the firmware should start the TPM. This function is provided as a
666 * example when a TPM emulator is used.
676 dev_info(&chip->dev, "starting up the TPM manually\n"); in tpm2_startup()
683 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to start the TPM"); in tpm2_startup()
690 * tpm2_auto_startup - Perform the standard automatic TPM initialization
692 * @chip: TPM chip to use
721 "TPM in field failure mode, requires firmware upgrade\n"); in tpm2_auto_startup()
733 * Infineon TPM in field upgrade mode will return no data for the number in tpm2_auto_startup()
737 dev_info(&chip->dev, "TPM in field upgrade mode, requires firmware upgrade\n"); in tpm2_auto_startup()