Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-gpio.c108 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode0()
117 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode1()
126 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode2()
135 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode3()
155 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode0()
165 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode1()
175 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode2()
185 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode3()
368 SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW | in spi_gpio_probe()
H A Dspidev.c62 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
391 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl()
434 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl()
436 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
H A Dspi-sc18is602.c139 if (mode & SPI_LSB_FIRST) in sc18is602_setup_transfer()
284 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
H A Dspi-mpc52xx-psc.c80 if (spi->mode & SPI_LSB_FIRST) in mpc52xx_psc_spi_activate_cs()
310 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_of_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-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
H A Dspi-uniphier.c175 if (spi->mode & SPI_LSB_FIRST) in uniphier_spi_set_mode()
688 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in uniphier_spi_probe()
H A Dspi-rzv2h-rspi.c661 conf32 |= FIELD_PREP(RSPI_SPCMD_LSBF, !!(spi->mode & SPI_LSB_FIRST)); in rzv2h_rspi_prepare_message()
762 SPI_LSB_FIRST | SPI_LOOP; in rzv2h_rspi_probe()
H A Dspi-sh-msiof.c500 spi->mode & SPI_LSB_FIRST, cs_high); in sh_msiof_prepare_message()
1269 ctlr->mode_bits |= SPI_LSB_FIRST | SPI_3WIRE; in sh_msiof_spi_probe()
H A Dspi-stm32.c1202 if (spi_dev->mode & SPI_LSB_FIRST) in stm32_spi_prepare_msg()
1220 !!(spi_dev->mode & SPI_LSB_FIRST), in stm32_spi_prepare_msg()
2450 ctrl->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST | in stm32_spi_probe()
H A Dspi.c2578 spi->mode |= SPI_LSB_FIRST; in of_spi_parse_dt()
3053 lookup->mode |= SPI_LSB_FIRST; in acpi_spi_parse_apple_properties()
4415 (spi->mode & SPI_LSB_FIRST) ? "lsb, " : "", in __spi_setup()
/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, " : "",
/linux/drivers/iio/adc/
H A Dmax14001.c304 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()