Searched refs:SPI_LOOP (Results 1 – 19 of 19) sorted by relevance
19 #define SPI_LOOP _BITUL(5) /* loopback mode */ macro
189 if (spi->mode & SPI_LOOP) in virtio_spi_transfer_one()283 ctrl->mode_bits |= SPI_LOOP; in virtio_spi_read_config()
316 cr |= FIELD_PREP(CR_LOOP_MASK, (spi->mode & SPI_LOOP) ? 1 : 0); in hisi_spi_prepare_cr()491 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
358 if (mode_changed & SPI_LOOP) in setup_fifo_params()359 writel((spi_slv->mode & SPI_LOOP) ? LOOPBACK_ENABLE : 0, se->base + SE_SPI_LOOPBACK); in setup_fifo_params()429 peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP); in setup_gsi_xfer()1071 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
287 if (spi->mode & SPI_LOOP) in dw_spi_prepare_cr0()304 if (spi->mode & SPI_LOOP) in dw_spi_prepare_cr0()971 ctlr->mode_bits |= SPI_LOOP; in dw_spi_add_controller()
361 if (spi->mode & SPI_LOOP) in at91_usart_spi_setup()508 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_spi_probe()
510 if (spi->mode & SPI_LOOP) in fsl_espi_setup()677 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
487 if (spi->mode & SPI_LOOP) in davinci_spi_setup()1004 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
713 spi->mode & SPI_LOOP ? SPICC_LBC_W1 : 0, in meson_spicc_prepare_message()1057 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP; in meson_spicc_probe()
1232 if (spi->mode & SPI_LOOP) in setup()1294 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pxa2xx_spi_probe()
632 if (spi->mode & SPI_LOOP) in mx51_ecspi_prepare_message()927 if (spi->mode & SPI_LOOP) in mx31_prepare_transfer()2283 controller->mode_bits |= SPI_LOOP | SPI_READY; in spi_imx_probe()
743 if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback) in s3c64xx_spi_config()1314 host->mode_bits |= SPI_LOOP; in s3c64xx_spi_probe()
381 if (spi->mode & SPI_LOOP) in mtk_spi_hw_init()1207 host->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL | in mtk_spi_probe()
63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
403 if (spi->mode & SPI_LOOP) in fsl_spi_setup()
1793 if (spi->mode & SPI_LOOP) in pl022_setup()1902 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pl022_probe()
922 SPI_TX_DUAL | SPI_LOOP; in pci1xxxx_spi_probe()
4141 (spi->mode & SPI_LOOP) ? "loopback, " : "", in spi_setup()
73 (__entry->mode & SPI_LOOP) ? "loopback, " : "",