Searched refs:SPI_LSB_FIRST (Results 1 – 17 of 17) sorted by relevance
| /linux/drivers/spi/ |
| H A D | spi-gpio.c | 108 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 D | spi-virtio.c | 19 (SPI_MODE_X_MASK | SPI_CS_HIGH | SPI_LSB_FIRST) 185 static_assert(VIRTIO_SPI_MODE_LSB_FIRST == SPI_LSB_FIRST, in virtio_spi_transfer_one() 281 ctrl->mode_bits |= SPI_LSB_FIRST; in virtio_spi_read_config()
|
| H A D | spidev.c | 62 | 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 D | spi-sc18is602.c | 139 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 D | spi-mpc52xx-psc.c | 80 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 D | spi-mpc512x-psc.c | 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()
|
| H A D | spi-cavium.c | 54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
|
| H A D | spi-uniphier.c | 175 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 D | spi-rzv2h-rspi.c | 661 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 D | spi-amlogic-spisg.c | 606 FIELD_MODIFY(CFG_B_L_ENDIAN, &spisg->cfg_bus, !!(spi->mode & SPI_LSB_FIRST)); in aml_spisg_prepare_message() 778 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | in aml_spisg_probe()
|
| H A D | spi-sh-msiof.c | 500 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 D | spi-stm32.c | 1202 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 D | spi-tegra114.c | 811 if (spi->mode & SPI_LSB_FIRST) in tegra_spi_setup_transfer_one() 1326 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in tegra_spi_probe()
|
| H A D | spi.c | 2578 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 D | spi.h | 17 #define SPI_LSB_FIRST _BITUL(3) /* per-word bits-on-wire */ macro
|
| /linux/include/trace/events/ |
| H A D | spi.h | 71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",
|
| /linux/drivers/iio/adc/ |
| H A D | max14001.c | 304 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()
|