| /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-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-hisi-kunpeng.c | 315 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr() 491 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
|
| 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-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-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-jcore.c | 157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
|
| 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-butterfly.c | 117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
|
| H A D | spi-mxs.c | 95 ((dev->mode & SPI_CPOL) ? BM_SSP_CTRL1_POLARITY : 0) | in mxs_spi_setup_transfer() 574 host->mode_bits = SPI_CPOL | SPI_CPHA; in mxs_spi_probe()
|
| 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-at91-usart.c | 351 if (spi->mode & SPI_CPOL) in at91_usart_spi_setup() 508 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_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-microchip-core-qspi.c | 373 if ((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) in mchp_coreqspi_setup_clock() 725 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in mchp_coreqspi_probe()
|
| H A D | spi-sun6i.c | 341 if (spi->mode & SPI_CPOL) 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 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-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() 2278 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
|
| H A D | spi-tegra20-slink.c | 747 spi->mode & SPI_CPOL ? "" : "~", in tegra_slink_setup() 789 if (spi->mode & SPI_CPOL) in tegra_slink_prepare_message() 1017 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in tegra_slink_probe()
|
| H A D | spi-fsl-espi.c | 502 if (spi->mode & SPI_CPOL) in fsl_espi_setup() 676 host->mode_bits = SPI_RX_DUAL | SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in fsl_espi_probe()
|
| /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()
|