Lines Matching refs:total_length
104 int total_length = 0, ret = 0; in st33zp24_spi_send() local
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()
122 total_length += tpm_size; in st33zp24_spi_send()
124 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency); in st33zp24_spi_send()
126 spi_xfer.len = total_length + phy->latency; in st33zp24_spi_send()
130 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_send()
147 int total_length = 0, ret; in st33zp24_spi_read8_reg() local
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()
162 spi_xfer.len = total_length + phy->latency + tpm_size; in st33zp24_spi_read8_reg()
167 ret = phy->rx_buf[total_length + phy->latency - 1]; in st33zp24_spi_read8_reg()
169 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency, in st33zp24_spi_read8_reg()