Lines Matching refs:iobuf
55 if ((phy->iobuf[3] & 0x01) == 0) { in tpm_tis_spi_flow_control()
64 if (phy->iobuf[0] & 0x01) in tpm_tis_spi_flow_control()
94 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer_half()
95 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer_half()
96 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer_half()
97 phy->iobuf[3] = addr; in tpm_tis_spi_transfer_half()
101 spi_xfer[0].tx_buf = phy->iobuf; in tpm_tis_spi_transfer_half()
105 spi_xfer[1].tx_buf = phy->iobuf + 1; in tpm_tis_spi_transfer_half()
110 spi_xfer[2].tx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
112 memcpy(&phy->iobuf[4], out, transfer_len); in tpm_tis_spi_transfer_half()
118 spi_xfer[2].rx_buf = &phy->iobuf[4]; in tpm_tis_spi_transfer_half()
131 memcpy(in, &phy->iobuf[4], transfer_len); in tpm_tis_spi_transfer_half()
155 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer_full()
156 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer_full()
157 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer_full()
158 phy->iobuf[3] = addr; 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()
184 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer_full()
186 memcpy(phy->iobuf, out, transfer_len); in tpm_tis_spi_transfer_full()
198 memcpy(in, phy->iobuf, transfer_len); in tpm_tis_spi_transfer_full()
251 phy->iobuf = devm_kmalloc(&spi->dev, SPI_HDRSIZE + MAX_SPI_FRAMESIZE, GFP_KERNEL); in tpm_tis_spi_init()
252 if (!phy->iobuf) in tpm_tis_spi_init()