Home
last modified time | relevance | path

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

1234

/linux-6.1.9/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-6.1.9/drivers/spi/
Dspi-gpio.c229 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()
Dspi-omap-uwire.c191 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()
Dspi-xcomm.c92 if (spi->mode & SPI_CPOL) in spi_xcomm_setup_transfer()
220 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-sc18is602.c137 if (mode & SPI_CPOL) in sc18is602_setup_transfer()
297 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
Dspi-cavium-thunderx.c69 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
Dspi-orion.c243 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()
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.c90 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
Dspi-xilinx.c202 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()
Dspi-mpc52xx-psc.c81 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()
Dspi-s3c24xx.c122 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()
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-bcm2835aux.c415 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()
Dspi-altera-dfl.c115 master->mode_bits |= SPI_CPOL; in config_spi_master()
Dspi-cavium.c46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
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-bcm63xx-hsspi.c151 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()
Dspi-cadence.c217 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()
Dspi-hisi-kunpeng.c319 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()
/linux-6.1.9/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