Home
last modified time | relevance | path

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

/openbmc/linux/drivers/char/tpm/st33zp24/
H A Di2c.c31 static int write8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in write8_reg() argument
36 memcpy(phy->buf + 1, tpm_data, tpm_size); in write8_reg()
48 static int read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in read8_reg() argument
57 status = i2c_master_recv(phy->client, tpm_data, tpm_size); in read8_reg()
70 static int st33zp24_i2c_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_send() argument
73 return write8_reg(phy_id, tpm_register | TPM_WRITE_DIRECTION, tpm_data, in st33zp24_i2c_send()
86 static int st33zp24_i2c_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_i2c_recv() argument
89 return read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_i2c_recv()
H A Dspi.c96 static int st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_send() argument
116 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send()
139 static int st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_read8_reg() argument
164 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency, in st33zp24_spi_read8_reg()
180 static int st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, in st33zp24_spi_recv() argument
185 ret = st33zp24_spi_read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_spi_recv()
H A Dst33zp24.h29 int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
30 int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
/openbmc/u-boot/drivers/tpm/
H A Dtpm_tis_st33zp24_i2c.c47 const u8 *tpm_data, size_t tpm_size) in st33zp24_i2c_write8_reg() argument
52 memcpy(chip_priv->buf + 1, tpm_data, tpm_size); in st33zp24_i2c_write8_reg()
66 u8 *tpm_data, size_t tpm_size) in st33zp24_i2c_read8_reg() argument
76 return dm_i2c_read(dev, 0, tpm_data, tpm_size); in st33zp24_i2c_read8_reg()
89 const u8 *tpm_data, size_t tpm_size) in st33zp24_i2c_write() argument
92 tpm_data, tpm_size); in st33zp24_i2c_write()
105 u8 *tpm_data, size_t tpm_size) in st33zp24_i2c_read() argument
107 return st33zp24_i2c_read8_reg(dev, tpm_register, tpm_data, tpm_size); in st33zp24_i2c_read()
H A Dtpm_tis_st33zp24_spi.c113 const u8 *tpm_data, size_t tpm_size) in st33zp24_spi_write() argument
129 memcpy(tx_buf + total_length, tpm_data, tpm_size); in st33zp24_spi_write()
164 u8 *tpm_data, size_t tpm_size) in st33zp24_spi_read8_reg() argument
194 memcpy(tpm_data, rx_buf + total_length - tpm_size, tpm_size); in st33zp24_spi_read8_reg()
209 u8 *tpm_data, size_t tpm_size) in st33zp24_spi_read() argument
213 ret = st33zp24_spi_read8_reg(dev, tpm_register, tpm_data, tpm_size); in st33zp24_spi_read()