Home
last modified time | relevance | path

Searched refs:TPM_STS (Results 1 – 12 of 12) sorted by relevance

/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_st33zp24_i2c.c28 #define TPM_STS 0x18 macro
182 st33zp24_i2c_read(dev, TPM_STS, &data, 1); in st33zp24_i2c_status()
203 tpm_reg = TPM_STS + 1; in st33zp24_i2c_get_burstcount()
208 tpm_reg = TPM_STS + 2; in st33zp24_i2c_get_burstcount()
233 st33zp24_i2c_write(dev, TPM_STS, &data, 1); in st33zp24_i2c_cancel()
406 ret = st33zp24_i2c_write(dev, TPM_STS, &data, 1); in st33zp24_i2c_send()
H A Dtpm_tis_st33zp24_spi.c29 #define TPM_STS 0x18 macro
312 st33zp24_spi_read(dev, TPM_STS, &data, 1); in st33zp24_spi_status()
332 tpm_reg = TPM_STS + 1; in st33zp24_spi_get_burstcount()
337 tpm_reg = TPM_STS + 2; in st33zp24_spi_get_burstcount()
362 st33zp24_spi_write(dev, TPM_STS, &data, 1); in st33zp24_spi_cancel()
534 ret = st33zp24_spi_write(dev, TPM_STS, &data, 1); in st33zp24_spi_send()
H A Dtpm_tis_infineon.c52 #define TPM_STS(l) (0x0001 | ((l) << 4)) macro
272 if (tpm_tis_i2c_read(dev, TPM_STS(chip->locality), &buf, 1) < 0) in tpm_tis_i2c_status()
287 rc = tpm_tis_i2c_write_long(dev, TPM_STS(chip->locality), &buf, 1); in tpm_tis_i2c_ready()
307 addr = TPM_STS(chip->locality) + 1; in tpm_tis_i2c_get_burstcount()
483 rc = tpm_tis_i2c_write(dev, TPM_STS(chip->locality), &sts, 1); in tpm_tis_i2c_send()
H A Dtpm2_tis_core.c100 phy_ops->read_bytes(dev, TPM_STS(chip->locality), 1, status); in tpm_tis_status()
190 phy_ops->read32(dev, TPM_STS(chip->locality), &burst); in tpm_tis_get_burstcount()
215 return phy_ops->write_bytes(dev, TPM_STS(chip->locality), 1, &data); in tpm_tis_ready()
291 ret = phy_ops->write_bytes(dev, TPM_STS(chip->locality), 1, &data); in tpm_tis_send()
H A Dtpm2_tis_spi.c35 #define TPM_STS(l) (0x0018 | ((l) << 12)) macro
275 return tpm_tis_spi_read(dev, TPM_STS(chip->locality), status, 1); in tpm_tis_spi_status()
308 ret = tpm_tis_spi_read32(dev, TPM_STS(chip->locality), in tpm_tis_spi_get_burstcount()
328 return tpm_tis_spi_write(dev, TPM_STS(chip->locality), &data, 1); in tpm_tis_spi_cancel()
482 ret = tpm_tis_spi_write(dev, TPM_STS(chip->locality), &data, 1); in tpm_tis_spi_send()
H A Dtpm_tis.h85 #define TPM_STS(l) (0x0018 | ((l) << 12)) macro
/openbmc/linux/drivers/char/tpm/st33zp24/
H A Dst33zp24.c26 #define TPM_STS 0x18 macro
85 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel()
96 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status()
168 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 1, in get_burstcount()
174 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 2, in get_burstcount()
360 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_send()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_i2c_infineon.c308 #define TPM_STS(l) (0x0001 | ((l) << 4)) macro
372 if (iic_tpm_read(TPM_STS(tpm_dev.locality), &buf, 1) < 0) in tpm_tis_i2c_status()
386 iic_tpm_write_long(TPM_STS(tpm_dev.locality), &buf, 1); in tpm_tis_i2c_ready()
400 if (iic_tpm_read(TPM_STS(tpm_dev.locality)+1, buf, 3) < 0) in get_burstcount()
583 iic_tpm_write(TPM_STS(tpm_dev.locality), &sts, 1); in tpm_tis_i2c_send()
H A Dtpm_i2c_nuvoton.c26 #define TPM_STS 0x00 macro
94 status = i2c_nuvoton_read_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_read_status()
112 status = i2c_nuvoton_write_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_write_status()
H A Dtpm_tis_core.c252 rc = tpm_tis_read8(priv, TPM_STS(priv->locality), &status); in tpm_tis_status()
286 tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_COMMAND_READY); in tpm_tis_ready()
302 rc = tpm_tis_read32(priv, TPM_STS(priv->locality), &value); in get_burstcount()
416 tpm_tis_write8(priv, TPM_STS(priv->locality), in tpm_tis_recv()
555 rc = tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_GO); in tpm_tis_send_main()
H A Dtpm_tis_core.h75 #define TPM_STS(l) (0x0018 | ((l) << 12)) macro
H A Dtpm_tis_i2c.c160 case TPM_STS(0) & TPM_TIS_REGISTER_MASK: in tpm_tis_i2c_sanity_check_read()