Home
last modified time | relevance | path

Searched refs:locality (Results 1 – 8 of 8) sorted by relevance

/drivers/char/tpm/
Dtpm_tis_core.c132 priv->locality = l; in check_locality()
220 rc = tpm_tis_read8(priv, TPM_STS(priv->locality), &status); 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()
301 rc = tpm_tis_read_bytes(priv, TPM_DATA_FIFO(priv->locality), in recv_data()
398 rc = tpm_tis_write_bytes(priv, TPM_DATA_FIFO(priv->locality), in tpm_tis_send_data()
418 rc = tpm_tis_write8(priv, TPM_DATA_FIFO(priv->locality), buf[count]); in tpm_tis_send_data()
449 rc = tpm_tis_read32(priv, TPM_INT_ENABLE(priv->locality), &intmask); in disable_interrupts()
454 rc = tpm_tis_write32(priv, TPM_INT_ENABLE(priv->locality), intmask); in disable_interrupts()
485 rc = tpm_tis_write8(priv, TPM_STS(priv->locality), TPM_STS_GO); in tpm_tis_send_main()
[all …]
Dtpm_i2c_infineon.c61 int locality; member
323 tpm_dev.locality = loc; in check_locality()
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()
454 rc = iic_tpm_read(TPM_DATA_FIFO(tpm_dev.locality), in recv_data()
513 release_locality(chip, tpm_dev.locality, 0); in tpm_tis_i2c_recv()
552 rc = iic_tpm_write(TPM_DATA_FIFO(tpm_dev.locality), in tpm_tis_i2c_send()
575 iic_tpm_write(TPM_DATA_FIFO(tpm_dev.locality), &(buf[count]), 1); in tpm_tis_i2c_send()
583 iic_tpm_write(TPM_STS(tpm_dev.locality), &sts, 1); in tpm_tis_i2c_send()
[all …]
Dtpm-chip.c46 chip->locality = rc; in tpm_request_locality()
57 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality()
61 chip->locality = -1; in tpm_relinquish_locality()
106 if (chip->locality == -1) { in tpm_chip_start()
367 chip->locality = -1; in tpm_chip_alloc()
Dtpm_vtpm_proxy.c395 static int vtpm_proxy_request_locality(struct tpm_chip *chip, int locality) in vtpm_proxy_request_locality() argument
410 tpm_buf_append_u8(&buf, locality); in vtpm_proxy_request_locality()
419 locality = rc; in vtpm_proxy_request_locality()
426 locality = -1; in vtpm_proxy_request_locality()
431 return locality; in vtpm_proxy_request_locality()
Dtpm_tis_spi_cr50.c239 tpm_tis_write8(data, TPM_CR50_FW_VER(data->locality), 0); in cr50_print_fw_version()
243 tpm_tis_read_bytes(data, TPM_CR50_FW_VER(data->locality), 4, in cr50_print_fw_version()
Dtpm_tis_core.h95 int locality; member
/drivers/char/tpm/st33zp24/
Dst33zp24.h17 int locality; member
Dst33zp24.c138 return tpm_dev->locality; in request_locality()
150 return tpm_dev->locality; in request_locality()
536 tpm_dev->locality = LOCALITY0; in st33zp24_probe()