• Home
  • Raw
  • Download

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()
472 void *rx) in spi_check_rx_ranges() argument
483 /* if there is no rx, then no check is needed */ in spi_check_rx_ranges()
488 rx, SPI_TEST_MAX_SIZE_PLUS)) { in spi_check_rx_ranges()
503 /* and iterate over all the rx addresses */ in spi_check_rx_ranges()
504 for (addr = rx; addr < (u8 *)rx + SPI_TEST_MAX_SIZE_PLUS; addr++) { in spi_check_rx_ranges()
524 "loopback strangeness - rx changed outside of allowed range at: %pK\n", in spi_check_rx_ranges()
567 void *tx, void *rx) in spi_test_check_loopback_result() argument
576 ret = spi_check_rx_ranges(spi, msg, rx); in spi_test_check_loopback_result()
587 /* if there is no rx, then no check is needed */ in spi_test_check_loopback_result()
629 void *tx, void *rx) in spi_test_translate() argument
643 /* RX range in spi_test_translate()
646 if (RANGE_CHECK(*ptr, len, RX(0), SPI_TEST_MAX_SIZE_PLUS)) { in spi_test_translate()
647 off = *ptr - RX(0); in spi_test_translate()
648 *ptr = rx + off; in spi_test_translate()
664 RX(0), RX(SPI_TEST_MAX_SIZE), in spi_test_translate()
756 void *tx, void *rx) in _spi_test_run_iter() argument
765 /* fill rx with the DO_NOT_WRITE pattern */ in _spi_test_run_iter()
766 memset(rx, SPI_TEST_PATTERN_DO_NOT_WRITE, SPI_TEST_MAX_SIZE_PLUS); in _spi_test_run_iter()
774 (void *)tx, rx); in _spi_test_run_iter()
780 (void *)tx, rx); in _spi_test_run_iter()
795 ret = test->execute_msg(spi, test, tx, rx); in _spi_test_run_iter()
797 ret = spi_test_execute_msg(spi, test, tx, rx); in _spi_test_run_iter()
818 void *tx, void *rx, in spi_test_run_iter() argument
883 return _spi_test_run_iter(spi, &test, tx, rx); in spi_test_run_iter()
892 * @rx: the rx buffer allocated for the test sequence
897 void *tx, void *rx) in spi_test_execute_msg() argument
938 /* run rx-buffer tests */ in spi_test_execute_msg()
939 ret = spi_test_check_loopback_result(spi, msg, tx, rx); in spi_test_execute_msg()
964 * @rx: the rx buffer allocated for the test sequence
970 void *tx, void *rx) in spi_test_run_test() argument
1008 tx, rx, in spi_test_run_test()
1033 char *rx = NULL, *tx = NULL; in spi_test_run_tests() local
1037 /* allocate rx/tx buffers of 128kB size without devm in spi_test_run_tests()
1041 rx = vmalloc(SPI_TEST_MAX_SIZE_PLUS); in spi_test_run_tests()
1043 rx = kzalloc(SPI_TEST_MAX_SIZE_PLUS, GFP_KERNEL); in spi_test_run_tests()
1044 if (!rx) in spi_test_run_tests()
1065 ret = test->run_test(spi, test, tx, rx); in spi_test_run_tests()
1067 ret = spi_test_run_test(spi, test, tx, rx); in spi_test_run_tests()
1081 kvfree(rx); in spi_test_run_tests()