Searched refs:SPI_LSB_FIRST (Results 1 – 21 of 21) sorted by relevance
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()
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()
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()
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()
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()
54 mpi_cfg.s.lsbfirst = (mode & SPI_LSB_FIRST) ? 1 : 0; in octeon_spi_do_transfer()
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()
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()
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()
660 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()
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()
546 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()
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()
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()
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()
1367 if (spi->mode & SPI_LSB_FIRST) in dspi_setup()1561 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in dspi_probe()
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()
2379 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()
17 #define SPI_LSB_FIRST _BITUL(3) /* per-word bits-on-wire */ macro
71 (__entry->mode & SPI_LSB_FIRST) ? "lsb, " : "",
305 st->spi_hw_has_lsb_first = spi->mode & SPI_LSB_FIRST; in max14001_probe()