Searched refs:SPI_CPOL (Results 1 – 25 of 96) sorted by relevance
1234
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)
228 gpiod_set_value_cansleep(spi_gpio->sck, spi->mode & SPI_CPOL); in spi_gpio_chipselect()293 !(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()295 !!(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()413 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 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
92 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()219 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
133 if (spi->mode & SPI_CPOL) in hspi_hw_setup()255 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in hspi_probe()
48 SPI_CPOL | in octeon_spi_probe()
201 cs->txrx_word = bitbang->txrx_word[spi->mode & (SPI_CPOL|SPI_CPHA)]; in spi_bitbang_setup()364 master->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags; in spi_bitbang_init()
75 if (spi->mode & SPI_CPOL) in mpc52xx_psc_spi_activate_cs()310 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_of_probe()
136 if (mode & SPI_CPOL) in sc18is602_setup_transfer()296 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
69 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
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()
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()
159 if (spi->mode & SPI_CPOL) in xlp_spi_setup()409 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
91 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
413 if (spi->mode & SPI_CPOL) { in bcm2835aux_spi_prepare_message()486 host->mode_bits = (SPI_CPOL | SPI_CS_HIGH | SPI_NO_CS); in bcm2835aux_spi_probe()
102 if (spi->mode & SPI_CPOL) in mpc512x_psc_spi_activate_cs()475 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_of_probe()
241 if (spi->mode & SPI_CPOL) in sun4i_spi_transfer_one()467 master->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()432 master->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()
319 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr()492 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
171 if (spi->mode & SPI_CPOL) in mpc52xx_spi_fsmstate_idle()430 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
308 if (spi->mode & SPI_CPOL) in mcfqspi_transfer_one()403 host->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()419 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()