Lines Matching refs:tx_buf
75 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
119 u8 *tx_buf = (u8 *)phy->tx_buf; in st33zp24_spi_write() local
122 tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_write()
123 tx_buf[total_length++] = tpm_register; in st33zp24_spi_write()
126 tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_write()
127 tx_buf[total_length++] = tpm_size; in st33zp24_spi_write()
129 memcpy(tx_buf + total_length, tpm_data, tpm_size); in st33zp24_spi_write()
132 memset(tx_buf + total_length, TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_write()
140 ret = spi_xfer(slave, total_length * 8, tx_buf, rx_buf, in st33zp24_spi_write()
170 u8 *tx_buf = (u8 *)phy->tx_buf; in st33zp24_spi_read8_reg() local
174 tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg()
175 tx_buf[total_length++] = tpm_register; in st33zp24_spi_read8_reg()
177 memset(&tx_buf[total_length], TPM_DUMMY_BYTE, in st33zp24_spi_read8_reg()
185 ret = spi_xfer(slave, total_length * 8, tx_buf, rx_buf, in st33zp24_spi_read8_reg()