/linux/drivers/spi/ |
H A D | spi-gpio.c | 109 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode0() 118 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode1() 127 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode2() 136 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_txrx_word_mode3() 156 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode0() 166 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode1() 176 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode2() 186 if (unlikely(spi->mode & SPI_LSB_FIRST)) in spi_gpio_spec_txrx_word_mode3() 370 SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW | in spi_gpio_probe()
|
H A D | spi-lp8841-rtc.c | 29 * REVISIT If there is support for SPI_3WIRE and SPI_LSB_FIRST in SPI 159 if ((spi->mode & SPI_LSB_FIRST) == 0) { in spi_lp8841_rtc_setup() 194 host->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
|
H A D | spi-cavium-octeon.c | 50 SPI_LSB_FIRST | in octeon_spi_probe()
|
H A D | spi-sc18is602.c | 140 if (mode & SPI_LSB_FIRST) in sc18is602_setup_transfer() 287 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
|
H A D | spi-cavium-thunderx.c | 66 SPI_LSB_FIRST | SPI_3WIRE; in thunderx_spi_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-mt7621.c | 128 if (spi->mode & SPI_LSB_FIRST) in mt7621_spi_prepare() 344 host->mode_bits = SPI_LSB_FIRST; in mt7621_spi_probe()
|
H A D | spidev.c | 63 | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \ 405 retval = put_user((spi->mode & SPI_LSB_FIRST) ? 1 : 0, in spidev_ioctl() 448 spi->mode |= SPI_LSB_FIRST; in spidev_ioctl() 450 spi->mode &= ~SPI_LSB_FIRST; in spidev_ioctl()
|
H A D | spi-ppc4xx.c | 56 * Note: This is identical to SPI_LSB_FIRST. 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-st-ssc4.c | 174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH) 225 if ((spi->mode & SPI_LSB_FIRST) == 0) in spi_st_setup()
|
H A D | spi-rzv2h-rspi.c | 298 conf32 |= FIELD_PREP(RSPI_SPCMD_LSBF, !!(spi->mode & SPI_LSB_FIRST)); in rzv2h_rspi_prepare_message() 410 SPI_LSB_FIRST; in rzv2h_rspi_probe()
|
H A D | spi-sifive.c | 193 if (device->mode & SPI_LSB_FIRST) in sifive_spi_prep_transfer() 375 | SPI_CS_HIGH | SPI_LSB_FIRST in sifive_spi_probe() 379 * we need to "left-align" the bits (unless SPI_LSB_FIRST) in sifive_spi_probe()
|
H A D | spi-fsl-lib.c | 92 | SPI_LSB_FIRST | SPI_LOOP; in mpc8xxx_spi_probe()
|
H A D | spi-sun4i.c | 252 if (spi->mode & SPI_LSB_FIRST) in sun4i_spi_transfer_one() 472 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_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-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-apple.c | 180 (device->mode & SPI_LSB_FIRST ? APPLE_SPI_CFG_LSB_FIRST : 0)); in apple_spi_prepare_message() 491 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in apple_spi_probe()
|
H A D | spi-slave-mt27xx.c | 150 if (spi->mode & SPI_LSB_FIRST) in mtk_spi_slave_prepare_message() 400 ctlr->mode_bits |= SPI_LSB_FIRST; in mtk_spi_slave_probe()
|
H A D | spi-ar934x.c | 193 ctlr->mode_bits = SPI_LSB_FIRST; in ar934x_spi_probe()
|
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-sunplus-sp7021.c | 265 if (s->mode & SPI_LSB_FIRST) in sp7021_spi_controller_prepare_message() 424 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sp7021_spi_controller_probe()
|
H A D | spi-orion.c | 246 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()
|
/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/media/pci/netup_unidvb/ |
H A D | netup_unidvb_spi.c | 186 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in netup_spi_init()
|