Lines Matching refs:tx_buf
94 .tx_buf = TX(0),
108 .tx_buf = TX(PAGE_SIZE - 4),
121 .tx_buf = TX(0),
146 .tx_buf = TX(0),
150 .tx_buf = TX(SPI_TEST_MAX_SIZE_HALF),
163 .tx_buf = TX(64),
167 .tx_buf = TX(0),
181 .tx_buf = TX(0),
184 .tx_buf = TX(64),
197 .tx_buf = TX(0),
213 .tx_buf = TX(0),
231 .tx_buf = TX(0),
247 .tx_buf = TX(0),
254 .tx_buf = TX(SPI_TEST_MAX_SIZE_HALF),
269 .tx_buf = TX(1024),
275 .tx_buf = TX(0),
290 .tx_buf = TX(0),
295 .tx_buf = TX(1024),
308 .tx_buf = TX(0),
313 .tx_buf = TX(0),
427 dev_info(&spi->dev, " tx_buf: %pK\n", xfer->tx_buf); in spi_test_dump_message()
428 if (dump_data && xfer->tx_buf) in spi_test_dump_message()
430 xfer->tx_buf, in spi_test_dump_message()
593 if (xfer->tx_buf) { in spi_test_check_loopback_result()
595 txb = ((u8 *)xfer->tx_buf)[i]; in spi_test_check_loopback_result()
676 u8 *tx_buf; in spi_test_fill_pattern() local
695 tx_buf = (u8 *)xfers[i].tx_buf; in spi_test_fill_pattern()
696 if (!tx_buf) in spi_test_fill_pattern()
699 for (j = 0; j < xfers[i].len; j++, tx_buf++, count++) { in spi_test_fill_pattern()
703 *tx_buf = test->fill_pattern; in spi_test_fill_pattern()
706 *tx_buf = GET_VALUE_BYTE(test->fill_pattern, in spi_test_fill_pattern()
710 *tx_buf = GET_VALUE_BYTE(test->fill_pattern, in spi_test_fill_pattern()
714 *tx_buf = GET_VALUE_BYTE(test->fill_pattern, in spi_test_fill_pattern()
718 *tx_buf = count; in spi_test_fill_pattern()
721 *tx_buf = GET_VALUE_BYTE(count, count, 2); in spi_test_fill_pattern()
724 *tx_buf = GET_VALUE_BYTE(count, count, 3); in spi_test_fill_pattern()
727 *tx_buf = GET_VALUE_BYTE(count, count, 4); in spi_test_fill_pattern()
730 *tx_buf = j; in spi_test_fill_pattern()
733 *tx_buf = GET_VALUE_BYTE(j, j, 2); in spi_test_fill_pattern()
736 *tx_buf = GET_VALUE_BYTE(j, j, 3); in spi_test_fill_pattern()
739 *tx_buf = GET_VALUE_BYTE(j, j, 4); in spi_test_fill_pattern()
742 *tx_buf = i; in spi_test_fill_pattern()
775 ret = spi_test_translate(spi, (void **)&x->tx_buf, x->len, in _spi_test_run_iter()
841 if (test.transfers[i].tx_buf) in spi_test_run_iter()
878 if (test.transfers[i].tx_buf) in spi_test_run_iter()
879 test.transfers[i].tx_buf += tx_off; in spi_test_run_iter()
880 if (test.transfers[i].tx_buf) in spi_test_run_iter()