Lines Matching full:tpm

5  * Based on Infineon TPM driver by Peter Huewe.
32 #define TPM_CR50_TIMEOUT_NOIRQ_MS 20 /* Timeout for TPM ready without IRQ */
62 * @tpm_info: TPM chip information.
82 * tpm_cr50_i2c_wait_tpm_ready() - Wait for tpm to signal ready.
83 * @chip: A TPM chip.
86 * delay for the TPM to be ready.
102 /* Wait for interrupt to indicate TPM is ready to respond */ in tpm_cr50_i2c_wait_tpm_ready()
104 dev_warn(&chip->dev, "Timeout waiting for TPM ready\n"); in tpm_cr50_i2c_wait_tpm_ready()
112 * tpm_cr50_i2c_enable_tpm_irq() - Enable TPM irq.
113 * @chip: A TPM chip.
126 * tpm_cr50_i2c_disable_tpm_irq() - Disable TPM irq.
127 * @chip: A TPM chip.
172 * tpm_cr50_i2c_read() - Read from TPM register.
173 * @chip: A TPM chip.
178 * Sends the register address byte to the TPM, then waits until TPM
180 * bytes are read from TPM response into the provided 'buffer'.
207 /* Send the register address byte to the TPM */ in tpm_cr50_i2c_read()
212 /* Wait for TPM to be ready with response data */ in tpm_cr50_i2c_read()
217 /* Read response data from the TPM */ in tpm_cr50_i2c_read()
231 * tpm_cr50_i2c_write()- Write to TPM register.
232 * @chip: A TPM chip.
238 * combined address+data is sent to the TPM, then wait for TPM to
274 /* Wait for TPM to be ready, ignore timeout */ in tpm_cr50_i2c_write()
288 * tpm_cr50_check_locality() - Verify TPM locality 0 is active.
289 * @chip: A TPM chip.
312 * tpm_cr50_release_locality() - Release TPM locality.
313 * @chip: A TPM chip.
332 * tpm_cr50_request_locality() - Request TPM locality 0.
333 * @chip: A TPM chip.
365 * @chip: A TPM chip.
370 * TPM status byte.
384 * @chip: A TPM chip.
398 * @chip: A TPM chip.
442 * tpm_cr50_i2c_tis_recv() - TPM reception callback.
443 * @chip: A TPM chip.
508 /* Ensure TPM is done reading data */ in tpm_cr50_i2c_tis_recv()
531 * tpm_cr50_i2c_tis_send() - TPM transmission callback.
532 * @chip: A TPM chip.
552 /* Wait until TPM is ready for a command */ in tpm_cr50_i2c_tis_send()
590 /* Ensure TPM is not expecting more data */ in tpm_cr50_i2c_tis_send()
600 /* Start the TPM command */ in tpm_cr50_i2c_tis_send()
620 * @chip: A TPM chip.
699 /* cr50 is a TPM 2.0 chip */ in tpm_cr50_i2c_probe()
725 dev_warn(dev, "No IRQ, will use %ums delay for TPM ready\n", in tpm_cr50_i2c_probe()
750 dev_info(dev, "%s TPM 2.0 (i2c 0x%02x irq %d id 0x%x)\n", in tpm_cr50_i2c_probe()
793 MODULE_DESCRIPTION("cr50 TPM I2C Driver");