Lines Matching refs:tx_buf
73 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
120 .tx_buf = phy->tx_buf, in st33zp24_spi_send()
125 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_send()
126 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_send()
129 phy->tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send()
130 phy->tx_buf[total_length++] = tpm_size; in st33zp24_spi_send()
133 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send()
136 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send()
163 .tx_buf = phy->tx_buf, in st33zp24_spi_read8_reg()
168 phy->tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg()
169 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_read8_reg()
171 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, in st33zp24_spi_read8_reg()