Lines Matching refs:total_length
99 int total_length = 0, ret = 0;
108 phy->tx_buf[total_length++] = TPM_WRITE_DIRECTION | LOCALITY0;
109 phy->tx_buf[total_length++] = tpm_register;
112 phy->tx_buf[total_length++] = tpm_size >> 8;
113 phy->tx_buf[total_length++] = tpm_size;
116 memcpy(&phy->tx_buf[total_length], tpm_data, tpm_size);
117 total_length += tpm_size;
119 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE, phy->latency);
121 spi_xfer.len = total_length + phy->latency;
125 ret = phy->rx_buf[total_length + phy->latency - 1];
142 int total_length = 0, ret;
151 phy->tx_buf[total_length++] = LOCALITY0;
152 phy->tx_buf[total_length++] = tpm_register;
154 memset(&phy->tx_buf[total_length], TPM_DUMMY_BYTE,
157 spi_xfer.len = total_length + phy->latency + tpm_size;
162 ret = phy->rx_buf[total_length + phy->latency - 1];
164 memcpy(tpm_data, phy->rx_buf + total_length + phy->latency,