Home
last modified time | relevance | path

Searched refs:SPI_LSB_FIRST (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.3-rc2/drivers/spi/
A Dspi-gpio.c138 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode0()
147 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode1()
156 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode2()
165 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode3()
185 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode0()
195 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode1()
205 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode2()
215 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode3()
415 SPI_CS_HIGH | SPI_LSB_FIRST; in spi_gpio_probe()
A Dspi-lp8841-rtc.c160 if ((spi->mode & SPI_LSB_FIRST) == 0) { in spi_lp8841_rtc_setup()
195 master->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
A Dspi-cavium-octeon.c50 SPI_LSB_FIRST | in octeon_spi_probe()
A Dspi-ingenic.c274 if (spi->mode & SPI_LSB_FIRST) in spi_ingenic_prepare_message()
279 if (spi->mode & SPI_LSB_FIRST) in spi_ingenic_prepare_message()
433 ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH; in spi_ingenic_probe()
A Dspi-mt7621.c123 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare()
351 master->mode_bits = SPI_LSB_FIRST; in mt7621_spi_probe()
A Dspi-sc18is602.c139 if (mode & SPI_LSB_FIRST) in sc18is602_setup_transfer()
297 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
A Dspidev.c63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
408 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl()
453 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl()
455 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
A Dspi-fsl-espi.c172 if (!(m->spi->mode & SPI_LSB_FIRST) && first->bits_per_word != 8 && in fsl_espi_check_message()
404 espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8; in fsl_espi_trans()
504 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_espi_setup()
678 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
A Dspi-cavium-thunderx.c70 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_probe()
A Dspi-ppc4xx.c253 if (spi->mode & SPI_LSB_FIRST) in spi_ppc4xx_setup()
381 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
A Dspi-pic32-sqi.c290 if (spi->mode & SPI_LSB_FIRST) in pic32_sqi_one_transfer()
369 mode = spi->mode & (SPI_MODE_3 | SPI_LSB_FIRST); in pic32_sqi_one_message()
375 if (mode & SPI_LSB_FIRST) in pic32_sqi_one_message()
A Dspi-sifive.c193 if (device->mode & SPI_LSB_FIRST) in sifive_spi_prep_transfer()
375 | SPI_CS_HIGH | SPI_LSB_FIRST in sifive_spi_probe()
A Dspi-st-ssc4.c174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
225 if ((spi->mode & SPI_LSB_FIRST) == 0) in spi_st_setup()
A Dspi-fsl-lib.c91 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
A Dspi-fsl-spi.c170 !(spi->mode & SPI_LSB_FIRST)); in mspi_apply_cpu_mode_quirks()
190 if (spi->mode & SPI_LSB_FIRST && in mspi_apply_qe_mode_quirks()
423 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_spi_setup()
A Dspi-sun4i.c251 if (spi->mode & SPI_LSB_FIRST) in sun4i_spi_transfer_one()
467 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
A Dspi-mpc52xx-psc.c86 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_psc_spi_activate_cs()
333 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
A Dspi-xilinx.c204 if (spi->mode & SPI_LSB_FIRST) in xilinx_spi_chipselect()
432 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
A Dspi-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
A Dspi-mpc52xx.c173 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_spi_fsmstate_idle()
430 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
A Dspi-mpc512x-psc.c113 if (spi->mode & SPI_LSB_FIRST) in mpc512x_psc_spi_activate_cs()
499 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
A Dspi-slave-mt27xx.c150 if (spi->mode & SPI_LSB_FIRST) in mtk_spi_slave_prepare_message()
400 ctlr->mode_bits |= SPI_LSB_FIRST; in mtk_spi_slave_probe()
A Dspi-ar934x.c198 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe()
/linux-6.3-rc2/include/uapi/linux/spi/
A Dspi.h17 #define SPI_LSB_FIRST _BITUL(3) /* per-word bits-on-wire */ macro
/linux-6.3-rc2/include/trace/events/
A Dspi.h71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",

Completed in 43 milliseconds

12