Searched refs:SPI_LSB_FIRST (Results 1 – 25 of 29) sorted by relevance
12
109 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode0()118 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode1()127 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode2()136 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode3()156 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode0()166 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode1()176 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode2()186 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode3()370 SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW | in spi_gpio_probe()
159 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()
274 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()
66 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_probe()
128 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare()344 host->mode_bits = SPI_LSB_FIRST; in mt7621_spi_probe()
172 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()677 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
248 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()
174 #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()
92 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
169 !(spi->mode & SPI_LSB_FIRST)); in mspi_apply_cpu_mode_quirks()333 if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8) in fsl_spi_prepare_message()401 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_spi_setup()
107 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()
252 if (spi->mode & SPI_LSB_FIRST) in sun4i_spi_transfer_one()472 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
204 if (spi->mode & SPI_LSB_FIRST) in xilinx_spi_chipselect()433 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
174 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()
150 if (spi->mode & SPI_LSB_FIRST) in mtk_spi_slave_prepare_message()400 ctlr->mode_bits |= SPI_LSB_FIRST; in mtk_spi_slave_probe()
289 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()
351 if (spi->mode & SPI_LSB_FIRST) in sun6i_spi_transfer_one()673 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in sun6i_spi_probe()
167 if (spi->mode & SPI_LSB_FIRST) in xlp_spi_setup()
548 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()
500 spi->mode & SPI_LSB_FIRST, cs_high); in sh_msiof_prepare_message()1272 ctlr->mode_bits |= SPI_LSB_FIRST | SPI_3WIRE; in sh_msiof_spi_probe()
999 if (spi->mode & SPI_LSB_FIRST) in rspi_prepare_message()1335 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST | in rspi_probe()
17 #define SPI_LSB_FIRST _BITUL(3) /* per-word bits-on-wire */ macro
71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",
305 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()