Lines Matching refs:spi_xfer
50 struct spi_transfer *spi_xfer) in tpm_tis_spi_flow_control() argument
58 spi_xfer->len = 1; in tpm_tis_spi_flow_control()
60 spi_message_add_tail(spi_xfer, &m); in tpm_tis_spi_flow_control()
85 struct spi_transfer spi_xfer[3]; in tpm_tis_spi_transfer_half() local
99 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_half()
101 spi_xfer[0].tx_buf = phy->iobuf; in tpm_tis_spi_transfer_half()
102 spi_xfer[0].len = 1; in tpm_tis_spi_transfer_half()
103 spi_message_add_tail(&spi_xfer[0], &m); in tpm_tis_spi_transfer_half()
105 spi_xfer[1].tx_buf = phy->iobuf + 1; in tpm_tis_spi_transfer_half()
106 spi_xfer[1].len = 3; in tpm_tis_spi_transfer_half()
107 spi_message_add_tail(&spi_xfer[1], &m); in tpm_tis_spi_transfer_half()
110 spi_xfer[2].tx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
111 spi_xfer[2].rx_buf = NULL; in tpm_tis_spi_transfer_half()
117 spi_xfer[2].tx_buf = NULL; in tpm_tis_spi_transfer_half()
118 spi_xfer[2].rx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
121 spi_xfer[2].len = transfer_len; in tpm_tis_spi_transfer_half()
122 spi_message_add_tail(&spi_xfer[2], &m); in tpm_tis_spi_transfer_half()
147 struct spi_transfer spi_xfer; in tpm_tis_spi_transfer_full() local
160 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_full()
161 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
162 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
163 spi_xfer.len = 4; in tpm_tis_spi_transfer_full()
164 spi_xfer.cs_change = 1; in tpm_tis_spi_transfer_full()
167 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()
173 spi_xfer.tx_buf = NULL; in tpm_tis_spi_transfer_full()
174 ret = phy->flow_control(phy, &spi_xfer); in tpm_tis_spi_transfer_full()
178 spi_xfer.cs_change = 0; in tpm_tis_spi_transfer_full()
179 spi_xfer.len = transfer_len; in tpm_tis_spi_transfer_full()
180 spi_xfer.delay.value = 5; in tpm_tis_spi_transfer_full()
181 spi_xfer.delay.unit = SPI_DELAY_UNIT_USECS; in tpm_tis_spi_transfer_full()
184 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
185 spi_xfer.rx_buf = NULL; in tpm_tis_spi_transfer_full()
191 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()
208 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer_full()
210 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer_full()