| /linux/include/uapi/linux/spi/ |
| H A D | spi.h | 8 #define SPI_CPOL _BITUL(1) /* clock polarity */ macro 12 #define SPI_MODE_2 (SPI_CPOL|0) 13 #define SPI_MODE_3 (SPI_CPOL|SPI_CPHA) 14 #define SPI_MODE_X_MASK (SPI_CPOL|SPI_CPHA)
|
| /linux/drivers/spi/ |
| H A D | spi-omap-uwire.c | 191 if (spi->mode & SPI_CPOL) in uwire_chipselect() 327 if (spi->mode & SPI_CPOL) in uwire_setup_transfer() 487 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
|
| H A D | spi-mpc52xx-psc.c | 75 if (spi->mode & SPI_CPOL) 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-bitbang.c | 204 cs->txrx_word = bitbang->txrx_word[spi->mode & (SPI_CPOL|SPI_CPHA)]; in spi_bitbang_setup() 370 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags; in spi_bitbang_init()
|
| H A D | spi-orion.c | 242 if (spi->mode & SPI_CPOL) in orion_spi_mode_set() 280 speed == 50000000 && spi->mode & SPI_CPOL && in orion_spi_50mhz_ac_timing_erratum() 671 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | SPI_CS_WORD; in orion_spi_probe()
|
| H A D | spi-mpc512x-psc.c | 102 if (spi->mode & SPI_CPOL) 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-altera-dfl.c | 115 host->mode_bits |= SPI_CPOL; in config_spi_host()
|
| H A D | spi-cavium.c | 46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
|
| H A D | spi-mpc52xx.c | 172 if (spi->mode & SPI_CPOL) in mpc52xx_spi_fsmstate_idle() 431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
|
| H A D | spi-jcore.c | 157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
|
| H A D | spi-geni-qcom.c | 364 if (mode_changed & SPI_CPOL) in setup_fifo_params() 365 writel((spi_slv->mode & SPI_CPOL) ? CPOL : 0, se->base + SE_SPI_CPOL); in setup_fifo_params() 430 peripheral.clock_pol_high = !!(spi_slv->mode & SPI_CPOL); in setup_gsi_xfer() 1071 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
|
| H A D | spi-zynq-qspi.c | 115 #define ZYNQ_QSPI_MODEBITS (SPI_CPOL | SPI_CPHA) 361 if (spi->mode & SPI_CPOL) in zynq_qspi_config_op()
|
| H A D | spi-butterfly.c | 117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
|
| H A D | spi-dw-core.c | 281 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0() 298 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0() 956 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in dw_spi_add_controller()
|
| H A D | spi-cadence.c | 235 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode() 729 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
|
| H A D | spi-meson-spicc.c | 669 if (spi->mode & SPI_CPOL) in meson_spicc_prepare_message() 675 if (spi->mode & SPI_CPOL) { in meson_spicc_prepare_message() 1057 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP; in meson_spicc_probe()
|
| H A D | spi-axiado.c | 138 if (spi->mode & SPI_CPOL) in ax_spi_config_clock_mode() 836 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ax_spi_probe()
|
| H A D | spi-rzv2h-rspi.c | 658 conf32 = FIELD_PREP(RSPI_SPCMD_CPOL, !!(spi->mode & SPI_CPOL)); in rzv2h_rspi_prepare_message() 760 controller->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in rzv2h_rspi_probe()
|
| H A D | spi-imx.c | 648 if (spi->mode & SPI_CPOL) { in mx51_ecspi_prepare_message() 912 if (spi->mode & SPI_CPOL) in mx31_prepare_transfer() 1012 if (spi->mode & SPI_CPOL) in mx21_prepare_transfer() 1086 if (spi->mode & SPI_CPOL) in mx1_prepare_transfer() 2275 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
|
| H A D | spi-microchip-core-qspi.c | 412 if ((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) in mchp_coreqspi_setup_clock() 772 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in mchp_coreqspi_probe()
|
| H A D | spi-ppc4xx.c | 376 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
|
| H A D | spi-virtio.c | 181 static_assert(VIRTIO_SPI_CPOL == SPI_CPOL, in virtio_spi_transfer_one()
|
| /linux/drivers/iio/adc/ |
| H A D | mcp320x.c | 170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion() 423 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()
|
| /linux/drivers/rtc/ |
| H A D | rtc-rx6110.c | 348 (spi->mode != (SPI_CS_HIGH | SPI_CPOL | SPI_CPHA))) { in rx6110_spi_probe()
|
| /linux/drivers/mmc/host/ |
| H A D | mmc_spi.c | 1078 host->spi->mode &= ~(SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios() 1099 host->spi->mode |= (SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios()
|