Home
last modified time | relevance | path

Searched refs:SPI_LOOP (Results 1 – 19 of 19) sorted by relevance

/linux/include/uapi/linux/spi/
H A Dspi.h19 #define SPI_LOOP _BITUL(5) /* loopback mode */ macro
/linux/drivers/spi/
H A Dspi-virtio.c189 if (spi->mode & SPI_LOOP) in virtio_spi_transfer_one()
283 ctrl->mode_bits |= SPI_LOOP; in virtio_spi_read_config()
H A Dspi-hisi-kunpeng.c316 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()
H A Dspi-geni-qcom.c358 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()
H A Dspi-dw-core.c287 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()
H A Dspi-at91-usart.c361 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()
H A Dspi-fsl-espi.c510 if (spi->mode & SPI_LOOP) in fsl_espi_setup()
677 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
H A Dspi-davinci.c487 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()
H A Dspi-meson-spicc.c713 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()
H A Dspi-pxa2xx.c1232 if (spi->mode & SPI_LOOP) in setup()
1294 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pxa2xx_spi_probe()
H A Dspi-imx.c632 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()
H A Dspi-s3c64xx.c743 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()
H A Dspi-mt65xx.c381 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()
H A Dspidev.c63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
H A Dspi-fsl-spi.c403 if (spi->mode & SPI_LOOP) in fsl_spi_setup()
H A Dspi-pl022.c1793 if (spi->mode & SPI_LOOP) in pl022_setup()
1902 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pl022_probe()
H A Dspi-pci1xxxx.c922 SPI_TX_DUAL | SPI_LOOP; in pci1xxxx_spi_probe()
H A Dspi.c4141 (spi->mode & SPI_LOOP) ? "loopback, " : "", in spi_setup()
/linux/include/trace/events/
H A Dspi.h73 (__entry->mode & SPI_LOOP) ? "loopback, " : "",