Lines Matching full:tpm
5 * Based on Infineon TPM driver by Peter Huewe.
33 #define TPM_CR50_TIMEOUT_NOIRQ_MS 20 /* Timeout for TPM ready without IRQ */
65 * @tpm_info: TPM chip information.
85 * tpm_cr50_i2c_wait_tpm_ready() - Wait for tpm to signal ready.
86 * @chip: A TPM chip.
89 * delay for the TPM to be ready.
105 /* Wait for interrupt to indicate TPM is ready to respond */ in tpm_cr50_i2c_wait_tpm_ready()
107 dev_warn(&chip->dev, "Timeout waiting for TPM ready\n"); in tpm_cr50_i2c_wait_tpm_ready()
115 * tpm_cr50_i2c_enable_tpm_irq() - Enable TPM irq.
116 * @chip: A TPM chip.
129 * tpm_cr50_i2c_disable_tpm_irq() - Disable TPM irq.
130 * @chip: A TPM chip.
175 * tpm_cr50_i2c_read() - Read from TPM register.
176 * @chip: A TPM chip.
181 * Sends the register address byte to the TPM, then waits until TPM
183 * bytes are read from TPM response into the provided 'buffer'.
208 /* Send the register address byte to the TPM */ in tpm_cr50_i2c_read()
213 /* Wait for TPM to be ready with response data */ in tpm_cr50_i2c_read()
218 /* 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
272 /* Wait for TPM to be ready, ignore timeout */ in tpm_cr50_i2c_write()
285 * tpm_cr50_check_locality() - Verify if required TPM locality is active.
286 * @chip: A TPM chip.
310 * tpm_cr50_release_locality() - Release TPM locality.
311 * @chip: A TPM chip.
341 * tpm_cr50_request_locality() - Request TPM locality.
342 * @chip: A TPM chip.
382 * @chip: A TPM chip.
387 * TPM status byte.
401 * @chip: A TPM chip.
415 * @chip: A TPM chip.
459 * tpm_cr50_i2c_tis_recv() - TPM reception callback.
460 * @chip: A TPM chip.
525 /* Ensure TPM is done reading data */ in tpm_cr50_i2c_tis_recv()
546 * tpm_cr50_i2c_tis_send() - TPM transmission callback.
547 * @chip: A TPM chip.
563 /* Wait until TPM is ready for a command */ in tpm_cr50_i2c_tis_send()
602 /* Ensure TPM is not expecting more data */ in tpm_cr50_i2c_tis_send()
612 /* Start the TPM command */ in tpm_cr50_i2c_tis_send()
631 * @chip: A TPM chip.
734 /* cr50 is a TPM 2.0 chip */ in tpm_cr50_i2c_probe()
760 dev_warn(dev, "No IRQ, will use %ums delay for TPM ready\n", in tpm_cr50_i2c_probe()
793 dev_info(dev, "%s TPM 2.0 (i2c 0x%02x irq %d id 0x%x)\n", in tpm_cr50_i2c_probe()
835 MODULE_DESCRIPTION("cr50 TPM I2C Driver");