Home
last modified time | relevance | path

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

/linux/tools/spi/
A Dspidev_test.c143 if (!(mode & SPI_LOOP)) { in transfer()
254 mode |= SPI_LOOP; in parse_opts()
302 if (mode & SPI_LOOP) { in parse_opts()
403 if (mode & SPI_LOOP) { in transfer_buf()
/linux/include/uapi/linux/spi/
A Dspi.h19 #define SPI_LOOP _BITUL(5) /* loopback mode */ macro
/linux/drivers/spi/
A Dspi-st-ssc4.c180 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
249 if (spi->mode & SPI_LOOP) in spi_st_setup()
A Dspi-xilinx.c206 if (spi->mode & SPI_LOOP) in xilinx_spi_chipselect()
429 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
A Dspi-fsl-lib.c91 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
A Dspi-hisi-kunpeng.c318 cr |= FIELD_PREP(CR_LOOP_MASK, (spi->mode & SPI_LOOP) ? 1 : 0); in hisi_spi_prepare_cr()
491 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
A Dspi-ingenic.c279 if (spi->mode & SPI_LOOP) in spi_ingenic_prepare_message()
426 ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH; in spi_ingenic_probe()
A Dspi-dw-core.c287 cr0 |= ((spi->mode & SPI_LOOP) ? 1 : 0) << SPI_SRL_OFFSET; in dw_spi_prepare_cr0()
301 cr0 |= ((spi->mode & SPI_LOOP) ? 1 : 0) << DWC_SSI_CTRLR0_SRL_OFFSET; in dw_spi_prepare_cr0()
893 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP; in dw_spi_add_host()
A Dspi-qup.c666 if (spi->mode & SPI_LOOP && xfer->len > controller->in_fifo_sz) { in spi_qup_io_prep()
792 if (spi->mode & SPI_LOOP) in spi_qup_io_config()
806 if ((xfer->speed_hz >= SPI_HS_MIN_RATE) && !(spi->mode & SPI_LOOP)) in spi_qup_io_config()
1062 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in spi_qup_probe()
A Dspi-geni-qcom.c320 if (spi_slv->mode & SPI_LOOP) in setup_fifo_params()
401 peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP); in setup_gsi_xfer()
916 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
A Dspi-at91-usart.c376 if (spi->mode & SPI_LOOP) in at91_usart_spi_setup()
526 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_spi_probe()
A Dspi-rspi.c864 if (spi->mode & SPI_LOOP) { in qspi_transfer_one()
1004 if (spi->mode & SPI_LOOP) in rspi_prepare_message()
1323 SPI_LOOP | ops->extra_mode_bits; in rspi_probe()
A Dspi-fsl-espi.c510 if (spi->mode & SPI_LOOP) in fsl_espi_setup()
678 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
A Dspi-davinci.c428 if (spi->mode & SPI_LOOP) in davinci_spi_setup()
952 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
A Dspi-lantiq-ssc.c336 if (mode & SPI_LOOP) in hw_setup_clock_mode()
983 SPI_LOOP; in lantiq_ssc_probe()
A Dspi-imx.c541 if (spi->mode & SPI_LOOP) in mx51_ecspi_prepare_message()
765 if (spi->mode & SPI_LOOP) in mx31_prepare_transfer()
1656 spi_imx->bitbang.master->mode_bits |= SPI_LOOP | SPI_READY; in spi_imx_probe()
A Dspidev.c63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
A Dspi-fsl-spi.c474 if (spi->mode & SPI_LOOP) in fsl_spi_setup()
A Dspi-pxa2xx.c1391 if (spi->mode & SPI_LOOP) in setup()
1713 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pxa2xx_spi_probe()
A Dspi-loopback-test.c325 spi->mode |= loop_req ? SPI_LOOP : 0; in spi_loopback_test_probe()
A Dspi-pl022.c2043 if (spi->mode & SPI_LOOP) in pl022_setup()
2152 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in pl022_probe()
A Dspi-rockchip.c756 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_LSB_FIRST; in rockchip_spi_probe()
A Dspi.c3539 (spi->mode & SPI_LOOP) ? "loopback, " : "", in spi_setup()
/linux/include/trace/events/
A Dspi.h73 (__entry->mode & SPI_LOOP) ? "loopback, " : "",

Completed in 55 milliseconds