Lines Matching refs:spi_xfer
49 struct spi_transfer *spi_xfer) in tpm_tis_spi_flow_control() argument
57 spi_xfer->len = 1; in tpm_tis_spi_flow_control()
59 spi_message_add_tail(spi_xfer, &m); in tpm_tis_spi_flow_control()
84 struct spi_transfer spi_xfer[3]; in tpm_tis_spi_transfer_half() local
98 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_half()
100 spi_xfer[0].tx_buf = phy->iobuf; in tpm_tis_spi_transfer_half()
101 spi_xfer[0].len = 1; in tpm_tis_spi_transfer_half()
102 spi_message_add_tail(&spi_xfer[0], &m); in tpm_tis_spi_transfer_half()
104 spi_xfer[1].tx_buf = phy->iobuf + 1; in tpm_tis_spi_transfer_half()
105 spi_xfer[1].len = 3; in tpm_tis_spi_transfer_half()
106 spi_message_add_tail(&spi_xfer[1], &m); in tpm_tis_spi_transfer_half()
109 spi_xfer[2].tx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
110 spi_xfer[2].rx_buf = NULL; in tpm_tis_spi_transfer_half()
116 spi_xfer[2].tx_buf = NULL; in tpm_tis_spi_transfer_half()
117 spi_xfer[2].rx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
120 spi_xfer[2].len = transfer_len; in tpm_tis_spi_transfer_half()
121 spi_message_add_tail(&spi_xfer[2], &m); in tpm_tis_spi_transfer_half()
146 struct spi_transfer spi_xfer; in tpm_tis_spi_transfer_full() local
159 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_full()
160 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
161 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
162 spi_xfer.len = 4; in tpm_tis_spi_transfer_full()
163 spi_xfer.cs_change = 1; in tpm_tis_spi_transfer_full()
166 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()
172 spi_xfer.tx_buf = NULL; in tpm_tis_spi_transfer_full()
173 ret = phy->flow_control(phy, &spi_xfer); in tpm_tis_spi_transfer_full()
177 spi_xfer.cs_change = 0; in tpm_tis_spi_transfer_full()
178 spi_xfer.len = transfer_len; in tpm_tis_spi_transfer_full()
179 spi_xfer.delay.value = 5; in tpm_tis_spi_transfer_full()
180 spi_xfer.delay.unit = SPI_DELAY_UNIT_USECS; in tpm_tis_spi_transfer_full()
183 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
184 spi_xfer.rx_buf = NULL; in tpm_tis_spi_transfer_full()
190 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()
207 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_full()
209 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()