Lines Matching refs:total_length
114 int total_length = 0, nbr_dummy_bytes = 0, ret = 0; in st33zp24_spi_send() local
122 memcpy(tx_buf + total_length, &data, sizeof(data)); in st33zp24_spi_send()
123 total_length++; in st33zp24_spi_send()
125 memcpy(tx_buf + total_length, &data, sizeof(data)); in st33zp24_spi_send()
126 total_length++; in st33zp24_spi_send()
129 tx_buf[total_length++] = tpm_size >> 8; in st33zp24_spi_send()
130 tx_buf[total_length++] = tpm_size; in st33zp24_spi_send()
133 memcpy(&tx_buf[total_length], tpm_data, tpm_size); in st33zp24_spi_send()
134 total_length += tpm_size; in st33zp24_spi_send()
137 memset(&tx_buf[total_length], TPM_DUMMY_BYTE, nbr_dummy_bytes); in st33zp24_spi_send()
139 phy->spi_xfer.len = total_length + nbr_dummy_bytes; in st33zp24_spi_send()
143 ret = rx_buf[total_length + nbr_dummy_bytes - 1]; in st33zp24_spi_send()
160 int total_length = 0, nbr_dummy_bytes, ret; in read8_reg() local
168 memcpy(tx_buf + total_length, &data, sizeof(data)); in read8_reg()
169 total_length++; in read8_reg()
171 memcpy(tx_buf + total_length, &data, sizeof(data)); in read8_reg()
172 total_length++; in read8_reg()
175 memset(&tx_buf[total_length], TPM_DUMMY_BYTE, in read8_reg()
178 phy->spi_xfer.len = total_length + nbr_dummy_bytes + tpm_size; in read8_reg()
183 ret = rx_buf[total_length + nbr_dummy_bytes - 1]; in read8_reg()
185 memcpy(tpm_data, rx_buf + total_length + nbr_dummy_bytes, in read8_reg()