Searched refs:SPI_CPOL (Results 1 – 25 of 34) sorted by relevance
12
8 #define SPI_CPOL _BITUL(1) /* clock polarity */ macro12 #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)
199 gpiod_set_value_cansleep(spi_gpio->sck, spi->mode & SPI_CPOL); in spi_gpio_chipselect()271 !(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()273 !!(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()367 host->mode_bits = SPI_3WIRE | SPI_3WIRE_HIZ | SPI_CPHA | SPI_CPOL | in spi_gpio_probe()
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()
137 if (mode & SPI_CPOL) in sc18is602_setup_transfer()284 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
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()
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()
115 host->mode_bits |= SPI_CPOL; in config_spi_host()
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
235 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode()730 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
172 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_TX_QUAD | SPI_RX_QUAD; in rpcif_spi_probe()
162 if (spi->mode & SPI_CPOL) in k1_spi_setup()753 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP; in k1_spi_probe()
69 if (spi->mode & SPI_CPOL) in loongson_spi_set_mode()
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()2279 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
311 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()328 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()1275 dws->ctlr->mode_bits |= SPI_CPOL | SPI_CPHA; in dw_spi_hw_init()
659 conf32 = FIELD_PREP(RSPI_SPCMD_CPOL, !!(spi->mode & SPI_CPOL)); in rzv2h_rspi_prepare_message()761 controller->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in rzv2h_rspi_probe()
181 static_assert(VIRTIO_SPI_CPOL == SPI_CPOL, in virtio_spi_transfer_one()
604 FIELD_MODIFY(CFG_CPOL, &spisg->cfg_bus, !!(spi->mode & SPI_CPOL)); in aml_spisg_prepare_message()778 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | in aml_spisg_probe()
311 if (fsl_lpspi->config.mode & SPI_CPOL) in fsl_lpspi_set_cmd()979 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in fsl_lpspi_probe()
396 if (xqspi->ctlr->mode_bits & SPI_CPOL) in zynqmp_qspi_init_hw()1281 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in zynqmp_qspi_probe()
169 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()422 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()
348 (spi->mode != (SPI_CS_HIGH | SPI_CPOL | SPI_CPHA))) { in rx6110_spi_probe()
1079 host->spi->mode &= ~(SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios()1100 host->spi->mode |= (SPI_CPOL|SPI_CPHA); in mmc_spi_set_ios()
311 mode |= SPI_CPOL; in nxp_spifi_setup_flash()
426 pdata.mode_bits |= SPI_CPOL; in create_altera_spi_controller()