Searched refs:tpm_dev (Results 1 – 3 of 3) sorted by relevance
/drivers/char/tpm/ |
D | tpm_infineon.c | 50 static struct tpm_inf_dev tpm_dev; variable 54 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_data_out() 55 outb(data, tpm_dev.data_regs + offset); in tpm_data_out() 57 writeb(data, tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_out() 62 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_data_in() 63 return inb(tpm_dev.data_regs + offset); in tpm_data_in() 65 return readb(tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_in() 70 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_config_out() 71 outb(data, tpm_dev.config_port + offset); in tpm_config_out() 73 writeb(data, tpm_dev.mem_base + tpm_dev.index_off + offset); in tpm_config_out() [all …]
|
D | tpm_i2c_infineon.c | 71 static struct tpm_inf_dev tpm_dev; variable 96 .addr = tpm_dev.client->addr, in iic_tpm_read() 101 .addr = tpm_dev.client->addr, in iic_tpm_read() 113 if (!tpm_dev.client->adapter->algo->master_xfer) in iic_tpm_read() 115 i2c_lock_bus(tpm_dev.client->adapter, I2C_LOCK_SEGMENT); in iic_tpm_read() 117 if (tpm_dev.chip_type == SLB9645) { in iic_tpm_read() 125 rc = __i2c_transfer(tpm_dev.client->adapter, msgs, 2); in iic_tpm_read() 137 rc = __i2c_transfer(tpm_dev.client->adapter, in iic_tpm_read() 154 if (tpm_dev.adapterlimit) { in iic_tpm_read() 156 tpm_dev.adapterlimit, in iic_tpm_read() [all …]
|
/drivers/char/tpm/st33zp24/ |
D | st33zp24.c | 67 static u8 clear_interruption(struct st33zp24_dev *tpm_dev) in clear_interruption() argument 71 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 72 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 81 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_cancel() local 85 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel() 93 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_status() local 96 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status() 105 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in check_locality() local 109 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in check_locality() 120 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in request_locality() local [all …]
|