Searched refs:SPI_CPOL (Results 1 – 25 of 94) 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)
229 gpiod_set_value_cansleep(spi_gpio->sck, spi->mode & SPI_CPOL); in spi_gpio_chipselect()294 !(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()296 !!(spi->mode & SPI_CPOL)); in spi_gpio_set_direction()414 master->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()492 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
92 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()220 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()
137 if (mode & SPI_CPOL) in sc18is602_setup_transfer()297 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
69 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
243 if (spi->mode & SPI_CPOL) in orion_spi_mode_set()281 speed == 50000000 && spi->mode & SPI_CPOL && in orion_spi_50mhz_ac_timing_erratum()672 master->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()
90 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
202 if (spi->mode & SPI_CPOL) in xilinx_spi_chipselect()429 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
81 if (spi->mode & SPI_CPOL) in mpc52xx_psc_spi_activate_cs()333 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
122 if (spi->mode & SPI_CPOL) in s3c24xx_spi_update_state()479 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in s3c24xx_spi_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()
415 if (spi->mode & SPI_CPOL) { in bcm2835aux_spi_prepare_message()488 master->mode_bits = (SPI_CPOL | SPI_CS_HIGH | SPI_NO_CS); in bcm2835aux_spi_probe()
115 master->mode_bits |= SPI_CPOL; in config_spi_master()
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
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()
151 if (spi->mode & SPI_CPOL) in bcm63xx_hsspi_set_clk()418 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcm63xx_hsspi_probe()
217 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode()587 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in cdns_spi_probe()
319 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr()492 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()419 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()