Home
last modified time | relevance | path

Searched refs:SPI_CPOL (Results 1 – 25 of 83) sorted by relevance

1234

/linux/include/uapi/linux/spi/
H A Dspi.h8 #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 Dspi-gpio.c200 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()
H A Dspi-omap-uwire.c191 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 Dspi-xcomm.c133 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()
259 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
H A Dspi-sh-hspi.c133 if (spi->mode & SPI_CPOL) in hspi_hw_setup()
255 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in hspi_probe()
H A Dspi-ljca.c128 (mode & SPI_CPOL) ? LJCA_SPI_CLOCK_HIGH_POLARITY : in ljca_spi_init()
236 controller->mode_bits = SPI_CPHA | SPI_CPOL; in ljca_spi_probe()
H A Dspi-cavium-octeon.c48 SPI_CPOL | in octeon_spi_probe()
H A Dspi-sc18is602.c138 if (mode & SPI_CPOL) in sc18is602_setup_transfer()
287 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
H A Dspi-cavium-thunderx.c65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
H A Dspi-bitbang.c204 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 Dspi-mpc52xx-psc.c75 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 Dspi-kspi2.c39 #define KSPI2_MODE_BITS (SPI_CPHA | SPI_CPOL)
255 if (spi->mode & SPI_CPOL) in kspi2_prepare_message()
H A Dspi-orion.c242 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()
H A Dspi-st-ssc4.c174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
215 if (spi->mode & SPI_CPOL) in spi_st_setup()
H A Dspi-rzv2h-rspi.c296 conf32 = FIELD_PREP(RSPI_SPCMD_CPOL, !!(spi->mode & SPI_CPOL)); in rzv2h_rspi_prepare_message()
409 controller->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in rzv2h_rspi_probe()
H A Dspi-fsl-lib.c91 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
H A Dspi-sun4i.c242 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()
H A Dspi-bcm2835aux.c413 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()
H A Dspi-mpc512x-psc.c102 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 Dspi-altera-dfl.c115 host->mode_bits |= SPI_CPOL; in config_spi_host()
H A Dspi-hisi-kunpeng.c317 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr()
493 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
H A Dspi-mpc52xx.c172 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 Dspi-apple.c179 (device->mode & SPI_CPOL ? APPLE_SPI_CFG_CPOL : 0) | in apple_spi_prepare_message()
491 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in apple_spi_probe()
H A Dspi-jcore.c157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
/linux/drivers/iio/adc/
H A Dmcp320x.c170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()
423 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()

1234