Lines Matching refs:iobuf
54 if ((phy->iobuf[3] & 0x01) == 0) { in tpm_tis_spi_flow_control()
63 if (phy->iobuf[0] & 0x01) in tpm_tis_spi_flow_control()
88 phy->iobuf[0] = (in ? 0x80 : 0) | (transfer_len - 1); in tpm_tis_spi_transfer()
89 phy->iobuf[1] = 0xd4; in tpm_tis_spi_transfer()
90 phy->iobuf[2] = addr >> 8; in tpm_tis_spi_transfer()
91 phy->iobuf[3] = addr; 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()
117 spi_xfer.tx_buf = phy->iobuf; in tpm_tis_spi_transfer()
119 memcpy(phy->iobuf, out, transfer_len); in tpm_tis_spi_transfer()
131 memcpy(in, phy->iobuf, transfer_len); in tpm_tis_spi_transfer()
158 phy->iobuf = devm_kmalloc(&spi->dev, MAX_SPI_FRAMESIZE, GFP_KERNEL); in tpm_tis_spi_init()
159 if (!phy->iobuf) in tpm_tis_spi_init()