Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/spi/
H A Dspidev_test.c143 if (!(mode & SPI_LOOP)) { in transfer()
266 mode |= SPI_LOOP; in parse_opts()
323 if (mode & SPI_LOOP) { in parse_opts()
424 if (mode & SPI_LOOP) { in transfer_buf()
/openbmc/linux/include/uapi/linux/spi/
H A Dspi.h19 #define SPI_LOOP _BITUL(5) /* loopback mode */ macro
/openbmc/linux/drivers/spi/
H A Dspi-st-ssc4.c174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
230 if (spi->mode & SPI_LOOP) in spi_st_setup()
H A Dspi-fsl-lib.c92 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
H A Dspi-xilinx.c206 if (spi->mode & SPI_LOOP) in xilinx_spi_chipselect()
432 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
H A Dspi-hisi-kunpeng.c318 cr |= FIELD_PREP(CR_LOOP_MASK, (spi->mode & SPI_LOOP) ? 1 : 0); in hisi_spi_prepare_cr()
493 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
H A Dspi-ingenic.c283 if (spi->mode & SPI_LOOP) in spi_ingenic_prepare_message()
433 ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH; in spi_ingenic_probe()
H A Dspi-dw-core.c285 if (spi->mode & SPI_LOOP) in dw_spi_prepare_cr0()
302 if (spi->mode & SPI_LOOP) in dw_spi_prepare_cr0()
917 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP; in dw_spi_add_host()
H A Dspi-qup.c664 if (spi->mode & SPI_LOOP && xfer->len > controller->in_fifo_sz) { in spi_qup_io_prep()
790 if (spi->mode & SPI_LOOP) in spi_qup_io_config()
804 if ((xfer->speed_hz >= SPI_HS_MIN_RATE) && !(spi->mode & SPI_LOOP)) in spi_qup_io_config()
1046 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in spi_qup_probe()
H A Dspi-at91-usart.c375 if (spi->mode & SPI_LOOP) in at91_usart_spi_setup()
522 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_spi_probe()
H A Dspi-rspi.c869 if (spi->mode & SPI_LOOP) { in qspi_transfer_one()
1009 if (spi->mode & SPI_LOOP) in rspi_prepare_message()
1346 SPI_LOOP | ops->extra_mode_bits; in rspi_probe()
H A Dspi-geni-qcom.c406 if (spi_slv->mode & SPI_LOOP) in setup_fifo_params()
491 peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP); in setup_gsi_xfer()
1092 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
H A Dspi-fsl-espi.c510 if (spi->mode & SPI_LOOP) in fsl_espi_setup()
678 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
H A Dspi-davinci.c427 if (spi->mode & SPI_LOOP) in davinci_spi_setup()
942 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
H A Dspi-lantiq-ssc.c337 if (mode & SPI_LOOP) in hw_setup_clock_mode()
978 SPI_LOOP; in lantiq_ssc_probe()
H A Dspi-imx.c561 if (spi->mode & SPI_LOOP) in mx51_ecspi_prepare_message()
810 if (spi->mode & SPI_LOOP) in mx31_prepare_transfer()
1768 controller->mode_bits |= SPI_LOOP | SPI_READY; in spi_imx_probe()
H A Dspi-pci1xxxx.c364 SPI_TX_DUAL | SPI_LOOP; in pci1xxxx_spi_probe()
H A Dspi-mt65xx.c365 if (spi->mode & SPI_LOOP) in mtk_spi_hw_init()
1149 master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL | in mtk_spi_probe()
H A Dspi-pxa2xx.c1309 if (spi->mode & SPI_LOOP) in setup()
1482 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pxa2xx_spi_probe()
H A Dspi-s3c64xx.c698 if ((sdd->cur_mode & SPI_LOOP) && sdd->port_conf->has_loopback) in s3c64xx_spi_config()
1250 host->mode_bits |= SPI_LOOP; in s3c64xx_spi_probe()
H A Dspi-fsl-spi.c404 if (spi->mode & SPI_LOOP) in fsl_spi_setup()
H A Dspidev.c63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
/openbmc/u-boot/include/
H A Dspi.h24 #define SPI_LOOP BIT(5) /* loopback mode */ macro
/openbmc/linux/include/trace/events/
H A Dspi.h73 (__entry->mode & SPI_LOOP) ? "loopback, " : "",
/openbmc/u-boot/drivers/spi/
H A Dxilinx_spi.c336 if (mode & SPI_LOOP) in xilinx_spi_set_mode()

12