Lines Matching full:tx
64 uint8_t tx[4] = {0}; in tpm_spi_read_n() local
71 tx[0] = 0x80 | (size - 1); /* Write (size) bytes */ in tpm_spi_read_n()
72 tx[1] = (off >> 16) & 0xff; in tpm_spi_read_n()
73 tx[2] = (off >> 8) & 0xff; in tpm_spi_read_n()
74 tx[3] = off & 0xff; in tpm_spi_read_n()
76 spic.tx_cmd = tx; in tpm_spi_read_n()
77 spic.tx_cmd_sz = sizeof(tx); in tpm_spi_read_n()
79 spic.rx_cmd_sz = sizeof(tx); in tpm_spi_read_n()
87 memset(tx, 0, sizeof(tx)); in tpm_spi_read_n()
100 uint8_t tx[8] = {0}; in tpm_spi_write_n() local
105 tx[0] = 0x00 | (size - 1); /* Write (size) bytes */ in tpm_spi_write_n()
106 tx[1] = (off >> 16) & 0xff; in tpm_spi_write_n()
107 tx[2] = (off >> 8) & 0xff; in tpm_spi_write_n()
108 tx[3] = off & 0xff; in tpm_spi_write_n()
110 memcpy(&tx[4], buf, size); in tpm_spi_write_n()
112 spic.tx_cmd = tx; in tpm_spi_write_n()