Lines Matching refs:txbuf
55 int spi_write_slt(int id, const void *txbuf, size_t n) in spi_write_slt() argument
60 .tx_buf = txbuf, in spi_write_slt()
113 int spi_write_then_read_slt(int id, const void *txbuf, unsigned n_tx, in spi_write_then_read_slt() argument
128 ret = spi_write_then_read(spi, txbuf, n_tx, rxbuf, n_rx); in spi_write_then_read_slt()
167 char *txbuf = NULL, *rxbuf = NULL; in spi_test_write() local
212 txbuf = kzalloc(size, GFP_KERNEL); in spi_test_write()
213 if (!txbuf) { in spi_test_write()
219 txbuf[i] = i % 256; in spi_test_write()
223 spi_write_slt(id, txbuf, size); in spi_test_write()
232 kfree(txbuf); in spi_test_write()
268 txbuf = kzalloc(size, GFP_KERNEL); in spi_test_write()
269 if (!txbuf) { in spi_test_write()
276 kfree(txbuf); in spi_test_write()
282 txbuf[i] = i % 256; in spi_test_write()
286 spi_write_and_read_slt(id, txbuf, rxbuf, size); in spi_test_write()
287 if (memcmp(txbuf, rxbuf, size)) { in spi_test_write()
301 kfree(txbuf); in spi_test_write()