Lines Matching refs:total_length
104 int total_length = 0, ret = 0;
113 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0;
114 phy->tx_buf[total_length++] = tpm_register;
117 phy->tx_buf[total_length++] = tpm_size >> 8;
118 phy->tx_buf[total_length++] = tpm_size;
121 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size);
122 total_length += tpm_size;
124 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency);
126 spi_xfer.len = total_length + phy->latency;
130 ret = phy->rx_buf[total_length + phy->latency - 1];
147 int total_length = 0, ret;
156 phy->tx_buf[total_length++] = LOCALITY0;
157 phy->tx_buf[total_length++] = tpm_register;
159 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE,
162 spi_xfer.len = total_length + phy->latency + tpm_size;
167 ret = phy->rx_buf[total_length + phy->latency - 1];
169 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency,