/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/ |
H A D | st33zp24.c | 25 #define TPM_STS 0x18 macro 88 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel() 92 * st33zp24_status return the TPM_STS register 94 * @return: the TPM_STS register value. 101 tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_status() 186 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 1, in get_burstcount() 192 status = tpm_dev->ops->recv(tpm_dev->phy_id, TPM_STS + 2, in get_burstcount() 231 * wait_for_stat wait for a TPM_STS value 413 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_send()
|
/kernel/linux/linux-6.6/drivers/char/tpm/st33zp24/ |
H A D | st33zp24.c | 26 #define TPM_STS 0x18 macro 85 tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_cancel() 89 * return the TPM_STS register 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() 203 * wait for a TPM_STS value 360 ret = tpm_dev->ops->send(tpm_dev->phy_id, TPM_STS, &data, 1); in st33zp24_send()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm_i2c_infineon.c | 308 #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 D | tpm_i2c_nuvoton.c | 26 #define TPM_STS 0x00 macro 87 /* read TPM_STS register */ 94 status = i2c_nuvoton_read_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_read_status() 104 /* write byte to TPM_STS register */ 112 status = i2c_nuvoton_write_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_write_status() 120 /* write commandReady to TPM_STS register */ 130 "%s() fail to write TPM_STS.commandReady\n", __func__); in i2c_nuvoton_ready() 133 /* read burstCount field from TPM_STS register 218 /* wait for dataAvail field to be set in the TPM_STS register */ 590 /* - wait for TPM_STS in i2c_nuvoton_probe() [all...] |
H A D | tpm_tis_core.h | 74 #define TPM_STS(l) (0x0018 | ((l) << 12)) macro
|
H A D | tpm_tis_core.c | 220 rc = tpm_tis_read8(priv, TPM_STS(priv->locality), &status); in tpm_tis_status() 232 dev_err(&chip->dev, "invalid TPM_STS.x 0x%02x, dumping stack for forensics\n", in tpm_tis_status() 236 * Dump stack for forensics, as invalid TPM_STS.x could be in tpm_tis_status() 254 tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_COMMAND_READY); in tpm_tis_ready() 270 rc = tpm_tis_read32(priv, TPM_STS(priv->locality), &value); in get_burstcount() 485 rc = tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_GO); in tpm_tis_send_main()
|
/kernel/linux/linux-6.6/drivers/char/tpm/ |
H A D | tpm_i2c_infineon.c | 308 #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 D | tpm_i2c_nuvoton.c | 26 #define TPM_STS 0x00 macro 87 /* read TPM_STS register */ 94 status = i2c_nuvoton_read_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_read_status() 104 /* write byte to TPM_STS register */ 112 status = i2c_nuvoton_write_buf(client, TPM_STS, 1, &data); in i2c_nuvoton_write_status() 120 /* write commandReady to TPM_STS register */ 130 "%s() fail to write TPM_STS.commandReady\n", __func__); in i2c_nuvoton_ready() 133 /* read burstCount field from TPM_STS register 218 /* wait for dataAvail field to be set in the TPM_STS register */ 590 /* - wait for TPM_STS in i2c_nuvoton_probe() [all...] |
H A D | tpm_tis_core.c | 252 rc = tpm_tis_read8(priv, TPM_STS(priv->locality), &status); in tpm_tis_status() 264 dev_err(&chip->dev, "invalid TPM_STS.x 0x%02x, dumping stack for forensics\n", in tpm_tis_status() 268 * Dump stack for forensics, as invalid TPM_STS.x could be 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 D | tpm_tis_core.h | 75 #define TPM_STS(l) (0x0018 | ((l) << 12)) macro
|
H A D | tpm_tis_i2c.c | 160 case TPM_STS(0) & TPM_TIS_REGISTER_MASK: in tpm_tis_i2c_sanity_check_read()
|