Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-gpio.c137 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode0()
146 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode1()
155 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode2()
164 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode3()
184 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode0()
194 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode1()
204 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode2()
214 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode3()
400 SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW | in spi_gpio_probe()
H A Dspi-lp8841-rtc.c159 if ((spi->mode & SPI_LSB_FIRST) == 0) { in spi_lp8841_rtc_setup()
194 host->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
H 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()
436 ctlr->mode_bits = SPI_MODE_3 | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH; in spi_ingenic_probe()
H A Dspi-mt7621.c128 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare()
344 host->mode_bits = SPI_LSB_FIRST; in mt7621_spi_probe()
H A Dspi-ppc4xx.c248 if (spi->mode & SPI_LSB_FIRST) in spi_ppc4xx_setup()
376 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
H A Dspi-cavium-thunderx.c66 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_probe()
H A Dspi-mpc512x-psc.c107 if (spi->mode & SPI_LSB_FIRST) in mpc512x_psc_spi_activate_cs()
475 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_of_probe()
H A Dspi-fsl-lib.c92 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
H A Dspi-apple.c180 (device->mode & SPI_LSB_FIRST ? APPLE_SPI_CFG_LSB_FIRST : 0)); in apple_spi_prepare_message()
491 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in apple_spi_probe()
H A Dspi-mpc52xx.c174 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_spi_fsmstate_idle()
431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
H A Dspi-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
H 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()
H A Dspi-sn-f-ospi.c289 if (spi->mode & SPI_LSB_FIRST) in f_ospi_config_indir_protocol()
621 | SPI_MODE_0 | SPI_MODE_1 | SPI_LSB_FIRST; in f_ospi_probe()
H A Dspi-davinci.c313 if (spi->mode & SPI_LSB_FIRST) in davinci_spi_setup_transfer()
945 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
H A Dspi-rockchip.c548 if (spi->mode & SPI_LSB_FIRST) in rockchip_spi_config()
845 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_LSB_FIRST; in rockchip_spi_probe()
H A Dspi-xlp.c167 if (spi->mode & SPI_LSB_FIRST) in xlp_spi_setup()
H A Dspi-geni-qcom.c340 bool msb_first = (mode & SPI_LSB_FIRST) ? false : true; in spi_setup_word_len()
/linux/include/uapi/linux/spi/
H A Dspi.h17 #define SPI_LSB_FIRST _BITUL(3) /* per-word bits-on-wire */ macro
/linux/include/trace/events/
H A Dspi.h71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",