Lines Matching refs:rx_buf
37 /* the device is jumpered for loopback - enabling some rx_buf tests */
41 "if set enable loopback mode, where the rx_buf " \
86 .rx_buf = RX(0),
100 .rx_buf = RX(PAGE_SIZE - 4),
124 .rx_buf = RX(0),
191 .rx_buf = RX(0),
208 .rx_buf = RX(0),
225 .rx_buf = RX(0),
239 .rx_buf = RX(0),
246 .rx_buf = RX(SPI_TEST_MAX_SIZE_HALF),
261 .rx_buf = RX(1024),
267 .rx_buf = RX(0),
282 .rx_buf = RX(0),
287 .rx_buf = RX(1024),
300 .rx_buf = RX(0),
308 .rx_buf = RX(0),
430 dev_info(&spi->dev, " rx_buf: %pK\n", xfer->rx_buf);
431 if (dump_data && xfer->rx_buf)
433 xfer->rx_buf,
435 /* check for unwritten test pattern on rx_buf */
436 if (xfer->rx_buf) {
438 b = ((u8 *)xfer->rx_buf)[xfer->len - 1 - i];
444 " rx_buf filled with %02x starts at offset: %i\n",
484 if (!xfer->rx_buf)
487 if (RANGE_CHECK(xfer->rx_buf, xfer->len,
489 ranges[i].start = xfer->rx_buf;
490 ranges[i].end = xfer->rx_buf + xfer->len;
585 /* if applicable to transfer check that rx_buf is equal to tx_buf */
588 if (!xfer->len || !xfer->rx_buf)
594 rxb = ((u8 *)xfer->rx_buf)[i];
600 txb = ((u8 *)xfer->rx_buf)[0];
610 rxb = ((u8 *)xfer->rx_buf)[i];
688 /* fill rx_buf with SPI_TEST_PATTERN_UNWRITTEN */
689 if (xfers[i].rx_buf)
690 memset(xfers[i].rx_buf, SPI_TEST_PATTERN_UNWRITTEN,
778 /* patch the values of rx_buf */
779 ret = spi_test_translate(spi, &x->rx_buf, x->len,
836 /* count number of transfers with tx/rx_buf != NULL */
841 if (test.transfers[i].rx_buf)
856 "%s: iterate_rx_off configured with rx_buf==NULL - ignoring\n",
878 if (test.transfers[i].rx_buf)
879 test.transfers[i].rx_buf += rx_off;