Searched refs:SPI_CPOL (Results 1 – 25 of 54) sorted by relevance
123
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)
200 gpiod_set_value_cansleep(spi_gpio->sck, spi->mode & SPI_CPOL); in spi_gpio_chipselect()272 !(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()274 !!(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()369 host->mode_bits = SPI_3WIRE | SPI_3WIRE_HIZ | SPI_CPHA | SPI_CPOL | in spi_gpio_probe()
133 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()259 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
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()
159 if (spi->mode & SPI_CPOL) in xlp_spi_setup()409 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)215 if (spi->mode & SPI_CPOL) in spi_st_setup()
91 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_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()
242 if (spi->mode & SPI_CPOL) in sun4i_spi_transfer_one()472 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
202 if (spi->mode & SPI_CPOL) in xilinx_spi_chipselect()433 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
115 host->mode_bits |= SPI_CPOL; in config_spi_host()
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
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()
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()
157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
138 cpol = spi->mode & SPI_CPOL ? 1 : 0; in mtk_spi_slave_prepare_message()399 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in mtk_spi_slave_probe()
617 if (spi->mode & SPI_CPOL) { in mx51_ecspi_prepare_message()881 if (spi->mode & SPI_CPOL) in mx31_prepare_transfer()981 if (spi->mode & SPI_CPOL) in mx21_prepare_transfer()1055 if (spi->mode & SPI_CPOL) in mx1_prepare_transfer()1865 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
159 if (spi->mode & SPI_CPOL) in ep93xx_spi_chip_setup()642 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ep93xx_spi_probe()
214 if (spi->mode & SPI_CPOL) in bcmbca_hsspi_set_clk()516 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcmbca_hsspi_probe()
235 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode()730 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
669 if (spi->mode & SPI_CPOL) in meson_spicc_prepare_message()675 if (spi->mode & SPI_CPOL) { in meson_spicc_prepare_message()1058 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP; in meson_spicc_probe()
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()
170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()423 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()