Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/spi/
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()
Dspi-cavium-octeon.c50 SPI_LSB_FIRST | in octeon_spi_probe()
Dspidev.c63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
379 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl()
419 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl()
421 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
Dspi-mt7621.c124 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare()
359 master->mode_bits = SPI_LSB_FIRST; in mt7621_spi_probe()
Dspi-sc18is602.c139 if (mode & SPI_LSB_FIRST) in sc18is602_setup_transfer()
294 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
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()
502 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_espi_setup()
675 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
Dspi-cavium-thunderx.c69 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_probe()
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()
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()
Dspi-st-ssc4.c180 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
244 if ((spi->mode & SPI_LSB_FIRST) == 0) in spi_st_setup()
Dspi-fsl-lib.c91 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
Dspi-fsl-spi.c197 !(spi->mode & SPI_LSB_FIRST)); in mspi_apply_cpu_mode_quirks()
217 if (spi->mode & SPI_LSB_FIRST && in mspi_apply_qe_mode_quirks()
472 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_spi_setup()
Dspi-ppc4xx.c257 if (spi->mode & SPI_LSB_FIRST) in spi_ppc4xx_setup()
459 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
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()
Dspi-xilinx.c204 if (spi->mode & SPI_LSB_FIRST) in xilinx_spi_chipselect()
424 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
Dspi-mpc52xx-psc.c91 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_psc_spi_activate_cs()
377 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
Dspi-mpc52xx.c168 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_spi_fsmstate_idle()
423 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
Dspi-sun6i.c250 if (spi->mode & SPI_LSB_FIRST) in sun6i_spi_transfer_one()
476 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun6i_spi_probe()
Dspi-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
Dspi-mpc512x-psc.c114 if (spi->mode & SPI_LSB_FIRST) in mpc512x_psc_spi_activate_cs()
512 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
Dspi-slave-mt27xx.c133 if (spi->mode & SPI_LSB_FIRST) in mtk_spi_slave_prepare_message()
383 ctlr->mode_bits |= SPI_LSB_FIRST; in mtk_spi_slave_probe()
Dspi-uniphier.c163 if (spi->mode & SPI_LSB_FIRST) in uniphier_spi_set_mode()
523 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in uniphier_spi_probe()
Dspi-orion.c244 if (spi->mode & SPI_LSB_FIRST) in orion_spi_mode_set()
620 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in orion_spi_probe()
/Linux-v5.4/include/uapi/linux/spi/
Dspidev.h42 #define SPI_LSB_FIRST 0x08 macro
/Linux-v5.4/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_spi.c186 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in netup_spi_init()

12