Searched refs:tpm_dev (Results 1 – 5 of 5) sorted by relevance
| /Linux-v5.10/drivers/char/tpm/st33zp24/ |
| D | st33zp24.c | 68 static u8 clear_interruption(struct st33zp24_dev *tpm_dev) in clear_interruption() argument 72 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 73 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption() 84 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_cancel() local 88 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel() 98 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_status() local 101 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status() 112 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in check_locality() local 116 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_ACCESS, &data, 1); in check_locality() 132 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in request_locality() local [all …]
|
| D | i2c.c | 112 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_i2c_acpi_request_resources() local 113 struct st33zp24_i2c_phy *phy = tpm_dev->phy_id; in st33zp24_i2c_acpi_request_resources() 144 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_i2c_of_request_resources() local 145 struct st33zp24_i2c_phy *phy = tpm_dev->phy_id; in st33zp24_i2c_of_request_resources() 184 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_i2c_request_resources() local 185 struct st33zp24_i2c_phy *phy = tpm_dev->phy_id; in st33zp24_i2c_request_resources()
|
| D | spi.c | 231 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_spi_acpi_request_resources() local 232 struct st33zp24_spi_phy *phy = tpm_dev->phy_id; in st33zp24_spi_acpi_request_resources() 262 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_spi_of_request_resources() local 263 struct st33zp24_spi_phy *phy = tpm_dev->phy_id; in st33zp24_spi_of_request_resources() 302 struct st33zp24_dev *tpm_dev = dev_get_drvdata(&chip->dev); in st33zp24_spi_request_resources() local 303 struct st33zp24_spi_phy *phy = tpm_dev->phy_id; in st33zp24_spi_request_resources()
|
| /Linux-v5.10/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 …]
|