Lines Matching full:rx
68 /* check rx ranges */
77 .description = "tx/rx-transfer - start of page",
86 .rx_buf = RX(0),
91 .description = "tx/rx-transfer - crossing PAGE_SIZE",
100 .rx_buf = RX(PAGE_SIZE - 4),
117 .description = "rx-transfer - only",
124 .rx_buf = RX(0),
180 .description = "two transfers tx then rx - alter both",
191 .rx_buf = RX(0),
196 .description = "two transfers tx then rx - alter tx",
208 .rx_buf = RX(0),
213 .description = "two transfers tx then rx - alter rx",
225 .rx_buf = RX(0),
230 .description = "two tx+rx transfers - alter both",
239 .rx_buf = RX(0),
246 .rx_buf = RX(SPI_TEST_MAX_SIZE_HALF),
251 .description = "two tx+rx transfers - alter first",
261 .rx_buf = RX(1024),
267 .rx_buf = RX(0),
272 .description = "two tx+rx transfers - alter second",
282 .rx_buf = RX(0),
287 .rx_buf = RX(1024),
292 .description = "two tx+rx transfers - delay after transfer",
300 .rx_buf = RX(0),
308 .rx_buf = RX(0),
432 spi_test_print_hex_dump(" RX: ", in spi_test_dump_message()
471 void *rx) in spi_check_rx_ranges() argument
482 /* if there is no rx, then no check is needed */ in spi_check_rx_ranges()
487 rx, SPI_TEST_MAX_SIZE_PLUS)) { in spi_check_rx_ranges()
502 /* and iterate over all the rx addresses */ in spi_check_rx_ranges()
503 for (addr = rx; addr < (u8 *)rx + SPI_TEST_MAX_SIZE_PLUS; addr++) { in spi_check_rx_ranges()
523 "loopback strangeness - rx changed outside of allowed range at: %pK\n", in spi_check_rx_ranges()
566 void *tx, void *rx) in spi_test_check_loopback_result() argument
575 ret = spi_check_rx_ranges(spi, msg, rx); in spi_test_check_loopback_result()
586 /* if there is no rx, then no check is needed */ in spi_test_check_loopback_result()
628 void *tx, void *rx) in spi_test_translate() argument
642 /* RX range in spi_test_translate()
645 if (RANGE_CHECK(*ptr, len, RX(0), SPI_TEST_MAX_SIZE_PLUS)) { in spi_test_translate()
646 off = *ptr - RX(0); in spi_test_translate()
647 *ptr = rx + off; in spi_test_translate()
663 RX(0), RX(SPI_TEST_MAX_SIZE), in spi_test_translate()
755 void *tx, void *rx) in _spi_test_run_iter() argument
764 /* fill rx with the DO_NOT_WRITE pattern */ in _spi_test_run_iter()
765 memset(rx, SPI_TEST_PATTERN_DO_NOT_WRITE, SPI_TEST_MAX_SIZE_PLUS); in _spi_test_run_iter()
773 (void *)tx, rx); in _spi_test_run_iter()
779 (void *)tx, rx); in _spi_test_run_iter()
794 ret = test->execute_msg(spi, test, tx, rx); in _spi_test_run_iter()
796 ret = spi_test_execute_msg(spi, test, tx, rx); in _spi_test_run_iter()
817 void *tx, void *rx, in spi_test_run_iter() argument
882 return _spi_test_run_iter(spi, &test, tx, rx); in spi_test_run_iter()
891 * @rx: the rx buffer allocated for the test sequence
896 void *tx, void *rx) in spi_test_execute_msg() argument
937 /* run rx-buffer tests */ in spi_test_execute_msg()
938 ret = spi_test_check_loopback_result(spi, msg, tx, rx); in spi_test_execute_msg()
963 * @rx: the rx buffer allocated for the test sequence
969 void *tx, void *rx) in spi_test_run_test() argument
1007 tx, rx, in spi_test_run_test()
1032 char *rx = NULL, *tx = NULL; in spi_test_run_tests() local
1036 /* allocate rx/tx buffers of 128kB size without devm in spi_test_run_tests()
1040 rx = vmalloc(SPI_TEST_MAX_SIZE_PLUS); in spi_test_run_tests()
1042 rx = kzalloc(SPI_TEST_MAX_SIZE_PLUS, GFP_KERNEL); in spi_test_run_tests()
1043 if (!rx) in spi_test_run_tests()
1064 ret = test->run_test(spi, test, tx, rx); in spi_test_run_tests()
1066 ret = spi_test_run_test(spi, test, tx, rx); in spi_test_run_tests()
1080 kvfree(rx); in spi_test_run_tests()