| /linux/drivers/spi/ |
| 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 | 63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \ 392 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl() 435 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl() 437 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
|
| H A D | spi-fsl-espi.c | 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()
|
| 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-ppc4xx.c | 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()
|
| H A D | spi-pic32-sqi.c | 290 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()
|
| H A D | spi-fsl-spi.c | 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()
|
| 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-mpc52xx.c | 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()
|
| 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-sn-f-ospi.c | 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()
|
| H A D | spi-sun6i.c | 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()
|
| H A D | spi-davinci.c | 373 if (spi->mode & SPI_LSB_FIRST) in davinci_spi_setup_transfer() 1004 dspi->bitbang.flags = SPI_NO_CS | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_WORD; in davinci_spi_probe()
|
| H A D | spi-amlogic-spisg.c | 610 FIELD_PREP(CFG_B_L_ENDIAN, !!(spi->mode & SPI_LSB_FIRST)) | in aml_spisg_prepare_message() 782 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | in aml_spisg_probe()
|
| H A D | spi-geni-qcom.c | 287 bool msb_first = (mode & SPI_LSB_FIRST) ? false : true; in spi_setup_word_len() 356 if (mode_changed & SPI_LSB_FIRST) in setup_fifo_params()
|
| H A D | spi-mt65xx.c | 397 if (spi->mode & SPI_LSB_FIRST) { in mtk_spi_hw_init() 1187 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mtk_spi_probe()
|
| H A D | spi-fsl-dspi.c | 1367 if (spi->mode & SPI_LSB_FIRST) in dspi_setup() 1561 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in dspi_probe()
|
| H A D | spi-tegra114.c | 811 if (spi->mode & SPI_LSB_FIRST) in tegra_spi_setup_transfer_one() 1319 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in tegra_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() 2472 ctrl->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST | in stm32_spi_probe()
|
| H A D | spi-pl022.c | 1757 if (spi->mode & SPI_LSB_FIRST) { in pl022_setup() 1904 host->mode_bits |= SPI_LSB_FIRST; in pl022_probe()
|
| H A D | spi-topcliff-pch.c | 430 if (!(spi->mode & SPI_LSB_FIRST)) in pch_spi_setup_transfer() 1336 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in pch_spi_pd_probe()
|
| H A D | spi.c | 2363 spi->mode |= SPI_LSB_FIRST; in of_spi_parse_dt() 2798 lookup->mode |= SPI_LSB_FIRST; in acpi_spi_parse_apple_properties() 4139 (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 | 305 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()
|