Lines Matching refs:tx_buf
57 u8 tx_buf[ST33ZP24_SPI_BUFFER_SIZE]; member
103 .tx_buf = phy->tx_buf, in st33zp24_spi_send()
108 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0; in st33zp24_spi_send()
109 phy->tx_buf[total_length++] = tpm_register; 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()
119 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send()
146 .tx_buf = phy->tx_buf, in st33zp24_spi_read8_reg()
151 phy->tx_buf[total_length++] = LOCALITY0; in st33zp24_spi_read8_reg()
152 phy->tx_buf[total_length++] = tpm_register; in st33zp24_spi_read8_reg()
154 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, in st33zp24_spi_read8_reg()