Lines Matching full:tpm
14 #include "tpm.h"
49 * @ordinal: TPM command ordinal.
120 * @chip: TPM chip to use.
121 * @ordinal: TPM command ordinal.
154 * @chip: TPM chip to use.
229 * @chip: TPM chip to use.
278 * tpm2_get_random() - get random bytes from the TPM RNG
286 * -errno otherwise (positive TPM return codes are masked to -EIO)
345 * @chip: TPM chip to use
384 * -errno or a TPM return code otherwise
420 * tpm2_shutdown() - send a TPM shutdown command
422 * Sends a TPM shutdown command. The shutdown command is used in call
438 tpm_transmit_cmd(chip, &buf, 0, "stopping the TPM"); in tpm2_shutdown()
445 * @chip: TPM chip to use
449 * The TPM can either run all self tests synchronously and then return
481 * tpm2_probe() - probe for the TPM 2.0 protocol
484 * Send an idempotent TPM 2.0 command and see whether there is TPM2 chip in the
505 /* We ignore TPM return codes on purpose. */ in tpm2_probe()
571 rc = tpm_transmit_cmd(chip, &buf, 9, "get tpm pcr allocation"); in tpm2_get_pcr_allocation()
697 * tpm2_startup - turn on the TPM
698 * @chip: TPM chip to use
700 * Normally the firmware should start the TPM. This function is provided as a
702 * example when a TPM emulator is used.
712 dev_info(&chip->dev, "starting up the TPM manually\n"); in tpm2_startup()
719 rc = tpm_transmit_cmd(chip, &buf, 0, "attempting to start the TPM"); in tpm2_startup()
726 * tpm2_auto_startup - Perform the standard automatic TPM initialization
728 * @chip: TPM chip to use
757 "TPM in field failure mode, requires firmware upgrade\n"); in tpm2_auto_startup()
764 * Infineon TPM in field upgrade mode will return no data for the number in tpm2_auto_startup()
768 dev_info(&chip->dev, "TPM in field upgrade mode, requires firmware upgrade\n"); in tpm2_auto_startup()