SPI_LOOP
if (spi->mode & SPI_LOOP)
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH;
dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD;
if (spi->mode & SPI_LOOP)
if (spi->mode & SPI_LOOP)
if (spi->mode & SPI_LOOP)
ctlr->mode_bits |= SPI_LOOP;
if (spi->mode & SPI_LOOP)
SPI_LSB_FIRST | SPI_LOOP;
| SPI_LSB_FIRST | SPI_LOOP;
if (spi->mode & SPI_LOOP)
spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH;
if (mode_changed & SPI_LOOP)
writel((spi_slv->mode & SPI_LOOP) ? LOOPBACK_ENABLE : 0, se->base + SE_SPI_LOOPBACK);
peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP);
cr |= FIELD_PREP(CR_LOOP_MASK, (spi->mode & SPI_LOOP) ? 1 : 0);
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;
controller->mode_bits |= SPI_LOOP | SPI_READY;
if (spi->mode & SPI_LOOP)
if (spi->mode & SPI_LOOP)
if (spi->mode & SPI_LOOP)
ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH;
if (mode & SPI_LOOP)
SPI_LOOP;
spi->mode |= loop_req ? SPI_LOOP : 0;
host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP;
spi->mode & SPI_LOOP ? SPICC_LBC_W1 : 0,
host->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL |
if (spi->mode & SPI_LOOP)
SPI_TX_DUAL | SPI_LOOP;
if (spi->mode & SPI_LOOP)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;
if (spi->mode & SPI_LOOP)
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP;
if (spi->mode & SPI_LOOP && xfer->len > controller->in_fifo_sz) {
if (spi->mode & SPI_LOOP)
if ((xfer->speed_hz >= SPI_HS_MIN_RATE) && !(spi->mode & SPI_LOOP))
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_LSB_FIRST;
if (spi->mode & SPI_LOOP)
SPI_LOOP | ops->extra_mode_bits;
if (spi->mode & SPI_LOOP) {
conf8 = FIELD_PREP(RSPI_SPPCR_SPLP2, !!(spi->mode & SPI_LOOP));
SPI_LSB_FIRST | SPI_LOOP;
host->mode_bits |= SPI_LOOP;
if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback)
#define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
if (spi->mode & SPI_LOOP)
if (spi->mode & SPI_LOOP)
ctrl->mode_bits |= SPI_LOOP;
if (spi->mode & SPI_LOOP)
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP |
(spi->mode & SPI_LOOP) ? "loopback, " : "",
| SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
(__entry->mode & SPI_LOOP) ? "loopback, " : "",
if (!(mode & SPI_LOOP)) {
mode |= SPI_LOOP;
if (mode & SPI_LOOP) {
if (mode & SPI_LOOP) {