Lines Matching refs:tx_buf
61 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
108 .tx_buf = phy->tx_buf, in st33zp24_spi_send()
113 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_send()
114 phy->tx_buf[total_length++] = tpm_register; 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()
124 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send()
151 .tx_buf = phy->tx_buf, in st33zp24_spi_read8_reg()
156 phy->tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg()
157 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_read8_reg()
159 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, in st33zp24_spi_read8_reg()