Home
last modified time | relevance | path

Searched refs:tpm_size (Results 1 – 3 of 3) sorted by relevance

/linux-6.1.9/drivers/char/tpm/st33zp24/
Dspi.c102 int tpm_size) in st33zp24_spi_send() argument
116 if (tpm_size > 0 && tpm_register == TPM_DATA_FIFO) { in st33zp24_spi_send()
117 phy->tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send()
118 phy->tx_buf[total_length++] = tpm_size; in st33zp24_spi_send()
121 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send()
122 total_length += tpm_size; in st33zp24_spi_send()
145 int tpm_size) in st33zp24_spi_read8_reg() argument
160 phy->latency + tpm_size); in st33zp24_spi_read8_reg()
162 spi_xfer.len = total_length + phy->latency + tpm_size; in st33zp24_spi_read8_reg()
166 if (tpm_size > 0 && ret == 0) { in st33zp24_spi_read8_reg()
[all …]
Di2c.c36 static int write8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in write8_reg() argument
41 memcpy(phy->buf + 1, tpm_data, tpm_size); in write8_reg()
42 return i2c_master_send(phy->client, phy->buf, tpm_size + 1); in write8_reg()
53 static int read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) in read8_reg() argument
62 status = i2c_master_recv(phy->client, tpm_data, tpm_size); in read8_reg()
76 int tpm_size) in st33zp24_i2c_send() argument
79 tpm_size); in st33zp24_i2c_send()
92 int tpm_size) in st33zp24_i2c_recv() argument
94 return read8_reg(phy_id, tpm_register, tpm_data, tpm_size); in st33zp24_i2c_recv()
Dst33zp24.h26 int (*send)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);
27 int (*recv)(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size);