Home
last modified time | relevance | path

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

/openbmc/linux/drivers/char/tpm/
H A Dtpm_infineon.c50 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 …]
H A Dtpm_i2c_infineon.c71 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 …]
/openbmc/linux/drivers/char/tpm/st33zp24/
H A Dst33zp24.c67 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 …]
/openbmc/qemu/backends/tpm/
H A Dtpm_passthrough.c45 const char *tpm_dev; member
226 dev = strrchr(tpm_pt->tpm_dev, '/'); in tpm_passthrough_open_sysfs_cancel()
229 tpm_pt->tpm_dev); in tpm_passthrough_open_sysfs_cancel()
269 tpm_pt->tpm_dev = value ? value : TPM_PASSTHROUGH_DEFAULT_DEVICE; in tpm_passthrough_handle_device_opts()
270 tpm_pt->tpm_fd = qemu_open_old(tpm_pt->tpm_dev, O_RDWR); in tpm_passthrough_handle_device_opts()
273 tpm_pt->tpm_dev, strerror(errno)); in tpm_passthrough_handle_device_opts()
279 tpm_pt->tpm_dev); in tpm_passthrough_handle_device_opts()
/openbmc/u-boot/cmd/
H A Dtpm-common.c16 static struct udevice *tpm_dev; variable
272 tpm_dev = dev; in tpm_set_device()
285 if (!tpm_dev) { in get_tpm()
294 *devp = tpm_dev; in get_tpm()