Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/spi/
Dspi-lp8841-rtc.c169 if ((spi->mode & SPI_LSB_FIRST) == 0) { in spi_lp8841_rtc_setup()
205 master->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
Dspi-cavium-octeon.c52 SPI_LSB_FIRST | in octeon_spi_probe()
Dspidev.c72 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
386 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl()
426 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl()
428 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
Dspi-sc18is602.c148 if (mode & SPI_LSB_FIRST) in sc18is602_setup_transfer()
303 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
Dspi-cavium-thunderx.c68 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_probe()
Dspi-fsl-espi.c176 if (!(m->spi->mode & SPI_LSB_FIRST) && first->bits_per_word != 8 && in fsl_espi_check_message()
408 espi->swab = spi->mode & SPI_LSB_FIRST && trans->bits_per_word > 8; in fsl_espi_trans()
506 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_espi_setup()
679 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_probe()
Dspi-pic32-sqi.c298 if (spi->mode & SPI_LSB_FIRST) in pic32_sqi_one_transfer()
377 mode = spi->mode & (SPI_MODE_3 | SPI_LSB_FIRST); in pic32_sqi_one_message()
383 if (mode & SPI_LSB_FIRST) in pic32_sqi_one_message()
Dspi-st-ssc4.c182 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
246 if ((spi->mode & SPI_LSB_FIRST) == 0) in spi_st_setup()
Dspi-fsl-lib.c95 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
Dspi-xilinx.c206 if (spi->mode & SPI_LSB_FIRST) in xilinx_spi_chipselect()
426 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
Dspi-ppc4xx.c260 if (spi->mode & SPI_LSB_FIRST) in spi_ppc4xx_setup()
462 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
Dspi-mpc52xx.c169 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_spi_fsmstate_idle()
424 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
Dspi-uniphier.c161 if (spi->mode & SPI_LSB_FIRST) in uniphier_spi_set_mode()
468 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in uniphier_spi_probe()
Dspi-mpc52xx-psc.c95 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_psc_spi_activate_cs()
381 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
Dspi-sun4i.c255 if (spi->mode & SPI_LSB_FIRST) in sun4i_spi_transfer_one()
474 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
Dspi-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
Dspi-sun6i.c254 if (spi->mode & SPI_LSB_FIRST) in sun6i_spi_transfer_one()
483 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun6i_spi_probe()
Dspi-mpc512x-psc.c118 if (spi->mode & SPI_LSB_FIRST) in mpc512x_psc_spi_activate_cs()
516 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
Dspi-fsl-spi.c194 !(spi->mode & SPI_LSB_FIRST)); in mspi_apply_cpu_mode_quirks()
214 if (spi->mode & SPI_LSB_FIRST && in mspi_apply_qe_mode_quirks()
452 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_spi_setup()
Dspi-orion.c247 if (spi->mode & SPI_LSB_FIRST) in orion_spi_mode_set()
619 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in orion_spi_probe()
Dspi-sirf.c471 if (sspi->word_width == 1 && !(spi->mode & SPI_LSB_FIRST)) in spi_sirfsoc_cmd_transfer()
475 (!(spi->mode & SPI_LSB_FIRST))) in spi_sirfsoc_cmd_transfer()
807 if (!(spi->mode & SPI_LSB_FIRST)) { in spi_sirfsoc_config_mode()
1124 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_CS_HIGH; in spi_sirfsoc_probe()
Dspi-stm32.c618 if (spi_dev->mode & SPI_LSB_FIRST) in stm32_spi_prepare_msg()
626 spi_dev->mode & SPI_LSB_FIRST, in stm32_spi_prepare_msg()
1154 master->mode_bits = SPI_MODE_3 | SPI_CS_HIGH | SPI_LSB_FIRST | in stm32_spi_probe()
/Linux-v4.19/include/uapi/linux/spi/
Dspidev.h42 #define SPI_LSB_FIRST 0x08 macro
/Linux-v4.19/drivers/staging/mt7621-spi/
Dspi-mt7621.c59 SPI_LSB_FIRST | SPI_CS_HIGH)
139 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare()
/Linux-v4.19/drivers/media/pci/netup_unidvb/
Dnetup_unidvb_spi.c195 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in netup_spi_init()

12