Home
last modified time | relevance | path

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

/linux/drivers/spi/
H A Dspi-virtio.c19 (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 Dspidev.c63 | 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 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()
504 if (!(spi->mode & SPI_LSB_FIRST)) in fsl_espi_setup()
677 SPI_LSB_FIRST | SPI_LOOP; in fsl_espi_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-ppc4xx.c248 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 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()
H A Dspi-fsl-spi.c169 !(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 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-mpc52xx.c174 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 Dspi-cavium.c54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
H A Dspi-sn-f-ospi.c289 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 Dspi-sun6i.c351 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 Dspi-davinci.c373 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 Dspi-amlogic-spisg.c610 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 Dspi-geni-qcom.c287 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 Dspi-mt65xx.c397 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 Dspi-fsl-dspi.c1367 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 Dspi-tegra114.c811 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 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()
2472 ctrl->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST | in stm32_spi_probe()
H A Dspi-pl022.c1757 if (spi->mode & SPI_LSB_FIRST) { in pl022_setup()
1904 host->mode_bits |= SPI_LSB_FIRST; in pl022_probe()
H A Dspi-topcliff-pch.c430 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 Dspi.c2363 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 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.c305 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()