Lines Matching full:tpm
14 * Device driver for TCG/TCPA TPM (trusted platform module).
17 * Note, the TPM chip is not interrupt driven (only polling)
30 #include "tpm.h"
33 * Bug workaround - some TPM's don't flush the most
44 * @chip: TPM chip to use.
45 * @ordinal: TPM command ordinal.
137 * tpm_transmit - Internal kernel interface to transmit TPM commands.
138 * @chip: a TPM chip to use
139 * @buf: a TPM command buffer
140 * @bufsiz: length of the TPM command buffer
143 * the TPM and retransmits the command after a delay up to a maximum wait of
146 * Note that TPM 1.x never returns TPM2_RC_RETRY so the retry logic is TPM 2.0
202 * tpm_transmit_cmd - send a tpm command to the device
203 * @chip: a TPM chip to use
204 * @buf: a TPM command buffer
211 * * TPM_RC - A TPM error
227 dev_err(&chip->dev, "A TPM error (%d) occurred %s\n", err, in tpm_transmit_cmd()
362 * We are about to suspend. Save the TPM state
408 * the TPM state.
430 * tpm_get_random() - get random bytes from the TPM's RNG
448 /* Give back zero bytes, as TPM chip has not yet fully resumed: */ in tpm_get_random()
471 pr_err("couldn't create tpm class\n"); in tpm_init()
481 rc = alloc_chrdev_region(&tpm_devt, 0, 2*TPM_NUM_DEVICES, "tpm"); in tpm_init()
483 pr_err("tpm: failed to allocate char dev region\n"); in tpm_init()
489 pr_err("tpm: failed to allocate char dev region\n"); in tpm_init()
518 MODULE_DESCRIPTION("TPM Driver");