Lines Matching refs:tx_buf
44 u8 *tx_buf;
75 rmi_spi->tx_buf = &rmi_spi->rx_buf[buf_size];
113 const struct rmi_spi_cmd *cmd, const u8 *tx_buf,
163 rmi_spi->tx_buf[0] = (addr >> 8);
164 rmi_spi->tx_buf[1] = addr & 0xFF;
167 rmi_spi->tx_buf[0] = (addr >> 8) | 0x80;
168 rmi_spi->tx_buf[1] = addr & 0xFF;
175 rmi_spi->tx_buf[0] = 0x40;
176 rmi_spi->tx_buf[1] = (addr >> 8) & 0xFF;
177 rmi_spi->tx_buf[2] = addr & 0xFF;
178 rmi_spi->tx_buf[3] = tx_len;
182 if (tx_buf)
183 memcpy(&rmi_spi->tx_buf[cmd_len], tx_buf, tx_len);
189 xfer->tx_buf = &rmi_spi->tx_buf[i];
198 xfer->tx_buf = rmi_spi->tx_buf;
203 rmi_dbg(RMI_DEBUG_XPORT, &spi->dev, "%s: cmd: %s tx_buf len: %d tx_buf: %*ph\n",
205 total_tx_len, total_tx_len, rmi_spi->tx_buf);