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()
80 struct spi_transfer spi_xfer; in tpm_tis_spi_transfer() local
93 memset(&spi_xfer, 0, sizeof(spi_xfer)); in tpm_tis_spi_transfer()
94 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer()
95 spi_xfer.rx_buf = phy->iobuf; in tpm_tis_spi_transfer()
96 spi_xfer.len = 4; in tpm_tis_spi_transfer()
97 spi_xfer.cs_change = 1; in tpm_tis_spi_transfer()
100 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer()
106 spi_xfer.tx_buf = NULL; in tpm_tis_spi_transfer()
107 ret = phy->flow_control(phy, &spi_xfer); in tpm_tis_spi_transfer()
111 spi_xfer.cs_change = 0; in tpm_tis_spi_transfer()
112 spi_xfer.len = transfer_len; in tpm_tis_spi_transfer()
113 spi_xfer.delay.value = 5; in tpm_tis_spi_transfer()
114 spi_xfer.delay.unit = SPI_DELAY_UNIT_USECS; in tpm_tis_spi_transfer()
117 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer()
118 spi_xfer.rx_buf = NULL; in tpm_tis_spi_transfer()
124 spi_message_add_tail(&spi_xfer, &m); in tpm_tis_spi_transfer()