Home
last modified time | relevance | path

Searched refs:SPI_LSB_FIRST (Results 1 – 21 of 21) 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-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-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-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-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-orion.c246 if (spi->mode & SPI_LSB_FIRST) in orion_spi_mode_set()
671 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | SPI_CS_WORD; in orion_spi_probe()
H A Dspi-rzv2h-rspi.c660 conf32 |= FIELD_PREP(RSPI_SPCMD_LSBF, !!(spi->mode & SPI_LSB_FIRST)); in rzv2h_rspi_prepare_message()
761 SPI_LSB_FIRST | SPI_LOOP; in rzv2h_rspi_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-rockchip.c546 if (spi->mode & SPI_LSB_FIRST) in rockchip_spi_config()
837 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_LSB_FIRST; in rockchip_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-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-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-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.c2379 spi->mode |= SPI_LSB_FIRST; in of_spi_parse_dt()
2854 lookup->mode |= SPI_LSB_FIRST; in acpi_spi_parse_apple_properties()
4177 (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()