Home
last modified time | relevance | path

Searched refs:tpm_dev (Results 1 – 3 of 3) sorted by relevance

/linux-4.4.14/drivers/char/tpm/
Dtpm_infineon.c54 static struct tpm_inf_dev tpm_dev; variable
58 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_data_out()
59 outb(data, tpm_dev.data_regs + offset); in tpm_data_out()
61 writeb(data, tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_out()
66 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_data_in()
67 return inb(tpm_dev.data_regs + offset); in tpm_data_in()
69 return readb(tpm_dev.mem_base + tpm_dev.data_regs + offset); in tpm_data_in()
74 if (tpm_dev.iotype == TPM_INF_IO_PORT) in tpm_config_out()
75 outb(data, tpm_dev.config_port + offset); in tpm_config_out()
77 writeb(data, tpm_dev.mem_base + tpm_dev.index_off + offset); in tpm_config_out()
[all …]
Dtpm_i2c_infineon.c74 static struct tpm_inf_dev tpm_dev; variable
99 .addr = tpm_dev.client->addr, in iic_tpm_read()
104 .addr = tpm_dev.client->addr, in iic_tpm_read()
115 if (!tpm_dev.client->adapter->algo->master_xfer) in iic_tpm_read()
117 i2c_lock_adapter(tpm_dev.client->adapter); in iic_tpm_read()
119 if (tpm_dev.chip_type == SLB9645) { in iic_tpm_read()
127 rc = __i2c_transfer(tpm_dev.client->adapter, msgs, 2); in iic_tpm_read()
135 rc = __i2c_transfer(tpm_dev.client->adapter, &msg1, 1); in iic_tpm_read()
151 rc = __i2c_transfer(tpm_dev.client->adapter, &msg2, 1); in iic_tpm_read()
158 i2c_unlock_adapter(tpm_dev.client->adapter); in iic_tpm_read()
[all …]
/linux-4.4.14/drivers/char/tpm/st33zp24/
Dst33zp24.c89 static u8 clear_interruption(struct st33zp24_dev *tpm_dev) in clear_interruption() argument
93 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption()
94 tpm_dev->ops->send(tpm_dev->phy_id, TPM_INT_STATUS, &interrupt, 1); in clear_interruption()
105 struct st33zp24_dev *tpm_dev; in st33zp24_cancel() local
108 tpm_dev = (struct st33zp24_dev *)TPM_VPRIV(chip); in st33zp24_cancel()
111 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel()
121 struct st33zp24_dev *tpm_dev; in st33zp24_status() local
124 tpm_dev = (struct st33zp24_dev *)TPM_VPRIV(chip); in st33zp24_status()
126 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status()
137 struct st33zp24_dev *tpm_dev; in check_locality() local
[all …]