/kernel/linux/linux-6.6/drivers/char/tpm/st33zp24/ |
H A D | spi.c | 93 * @param: tpm_size, The length of the data 97 int tpm_size) in st33zp24_spi_send() 111 if (tpm_size > 0 && tpm_register == TPM_DATA_FIFO) { in st33zp24_spi_send() 112 phy->tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send() 113 phy->tx_buf[total_length++] = tpm_size; in st33zp24_spi_send() 116 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send() 117 total_length += tpm_size; in st33zp24_spi_send() 136 * @param: tpm_size, tpm TPM response size to read. 140 int tpm_size) in st33zp24_spi_read8_reg() 155 phy->latency + tpm_size); in st33zp24_spi_read8_reg() 96 st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_send() argument 139 st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_read8_reg() argument 180 st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_recv() argument [all...] |
H A D | i2c.c | 28 * @param: tpm_size, The length of the data 31 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() 37 return i2c_master_send(phy->client, phy->buf, tpm_size + 1); in write8_reg() 45 * @param: tpm_size, tpm TPM response size to read. 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() 67 * @param: tpm_size, the length of the data 71 int tpm_size) in st33zp24_i2c_send() 74 tpm_size); in st33zp24_i2c_send() 70 st33zp24_i2c_send(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_i2c_send() argument 86 st33zp24_i2c_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_i2c_recv() argument [all...] |
H A D | st33zp24.h | 29 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);
|
/kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/ |
H A D | spi.c | 98 * @param: tpm_size, The length of the data 102 int tpm_size) in st33zp24_spi_send() 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() 141 * @param: tpm_size, tpm TPM response size to read. 145 int tpm_size) in st33zp24_spi_read8_reg() 160 phy->latency + tpm_size); in st33zp24_spi_read8_reg() 101 st33zp24_spi_send(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_send() argument 144 st33zp24_spi_read8_reg(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_read8_reg() argument 185 st33zp24_spi_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_spi_recv() argument [all...] |
H A D | i2c.c | 33 * @param: tpm_size, The length of the data 36 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() 50 * @param: tpm_size, tpm TPM response size to read. 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() 72 * @param: tpm_size, the length of the data 76 int tpm_size) in st33zp24_i2c_send() 79 tpm_size); in st33zp24_i2c_send() 75 st33zp24_i2c_send(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_i2c_send() argument 91 st33zp24_i2c_recv(void *phy_id, u8 tpm_register, u8 *tpm_data, int tpm_size) st33zp24_i2c_recv() argument [all...] |
H A D | st33zp24.h | 26 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);
|