Home
last modified time | relevance | path

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

1234

/Linux-v6.6/include/uapi/linux/spi/
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-v6.6/drivers/spi/
Dspi-gpio.c228 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()
Dspi-omap-uwire.c191 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()
Dspi-xcomm.c92 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()
219 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
Dspi-sh-hspi.c133 if (spi->mode & SPI_CPOL) in hspi_hw_setup()
255 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in hspi_probe()
Dspi-cavium-octeon.c48 SPI_CPOL | in octeon_spi_probe()
Dspi-bitbang.c201 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()
Dspi-mpc52xx-psc.c75 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()
Dspi-sc18is602.c136 if (mode & SPI_CPOL) in sc18is602_setup_transfer()
296 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
Dspi-cavium-thunderx.c69 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
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()
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()
Dspi-xlp.c159 if (spi->mode & SPI_CPOL) in xlp_spi_setup()
409 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
Dspi-fsl-lib.c91 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
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()
Dspi-mpc512x-psc.c102 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()
Dspi-sun4i.c241 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()
Dspi-xilinx.c202 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()
Dspi-altera-dfl.c115 host->mode_bits |= SPI_CPOL; in config_spi_host()
Dspi-cavium.c46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
Dspi-hisi-kunpeng.c319 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()
Dspi-mpc52xx.c171 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()
Dspi-jcore.c157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
Dspi-coldfire-qspi.c308 if (spi->mode & SPI_CPOL) in mcfqspi_transfer_one()
403 host->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
/Linux-v6.6/drivers/iio/adc/
Dmcp320x.c170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()
419 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()

1234