Home
last modified time | relevance | path

Searched refs:SPI_CS_HIGH (Results 1 – 25 of 78) sorted by relevance

1234

/Linux-v5.4/drivers/spi/
Dspi-lp8841-rtc.c155 if ((spi->mode & SPI_CS_HIGH) == 0) { in spi_lp8841_rtc_setup()
195 master->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
Dspi-mpc512x-psc.c132 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); in mpc512x_psc_spi_activate_cs()
140 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); in mpc512x_psc_spi_deactivate_cs()
386 spi->mode & SPI_CS_HIGH ? 0 : 1); in mpc512x_psc_spi_setup()
512 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
Dspi-gpio.c212 gpiod_set_value_cansleep(cs, (spi->mode & SPI_CS_HIGH) ? is_active : !is_active); in spi_gpio_chipselect()
230 !(spi->mode & SPI_CS_HIGH)); in spi_gpio_setup()
393 SPI_CS_HIGH; in spi_gpio_probe()
Dspi-sifive.c137 if (device->mode & SPI_CS_HIGH) in sifive_spi_prepare_message()
158 if (device->mode & SPI_CS_HIGH) in sifive_spi_set_cs()
375 | SPI_CS_HIGH | SPI_LSB_FIRST in sifive_spi_probe()
Dspi-txx9.c98 int val = (spi->mode & SPI_CS_HIGH) ? on : !on; in txx9spi_cs_func()
123 !(spi->mode & SPI_CS_HIGH))) { in txx9spi_setup()
383 master->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in txx9spi_probe()
Dspi-ath79.c73 int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active; in ath79_spi_chipselect()
169 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe()
Dspi-sirf.c741 if (spi->mode & SPI_CS_HIGH) in spi_sirfsoc_chipselect()
747 if (spi->mode & SPI_CS_HIGH) in spi_sirfsoc_chipselect()
761 if (spi->mode & SPI_CS_HIGH) in spi_sirfsoc_chipselect()
767 if (spi->mode & SPI_CS_HIGH) in spi_sirfsoc_chipselect()
781 spi->mode & SPI_CS_HIGH ? 1 : 0); in spi_sirfsoc_chipselect()
785 spi->mode & SPI_CS_HIGH ? 0 : 1); in spi_sirfsoc_chipselect()
799 if (!(spi->mode & SPI_CS_HIGH)) { in spi_sirfsoc_config_mode()
1121 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_CS_HIGH; in spi_sirfsoc_probe()
Dspi-bcm63xx-hsspi.c243 if (spi->mode & SPI_CS_HIGH) in bcm63xx_hsspi_setup()
250 if (spi->mode & SPI_CS_HIGH) in bcm63xx_hsspi_setup()
407 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcm63xx_hsspi_probe()
Dspi-mpc52xx-psc.c111 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 1 : 0); in mpc52xx_psc_spi_activate_cs()
119 mps->cs_control(spi, (spi->mode & SPI_CS_HIGH) ? 0 : 1); in mpc52xx_psc_spi_deactivate_cs()
377 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
Dspi-cavium-octeon.c49 SPI_CS_HIGH | in octeon_spi_probe()
Dspi-coldfire-qspi.c290 bool cs_high = spi->mode & SPI_CS_HIGH; in mcfqspi_set_cs()
327 spi->chip_select, spi->mode & SPI_CS_HIGH); in mcfqspi_setup()
404 master->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
Dspi-meson-spicc.c425 if (spi->mode & SPI_CS_HIGH) in meson_spicc_prepare_message()
489 !(spi->mode & SPI_CS_HIGH)); in meson_spicc_setup()
555 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH; in meson_spicc_probe()
Dspi-cavium-thunderx.c68 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
Dspi-oc-tiny.c75 (spi->mode & SPI_CS_HIGH) ? is_active : !is_active); in tiny_spi_chipselect()
253 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in tiny_spi_probe()
Dspi-omap-uwire.c327 if (spi->mode & SPI_CS_HIGH) in uwire_setup_transfer()
488 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
Dspi-omap2-mcspi.c246 if (spi->mode & SPI_CS_HIGH) in omap2_mcspi_set_cs()
944 if (!(spi->mode & SPI_CS_HIGH)) in omap2_mcspi_setup_transfer()
1052 !(spi->mode & SPI_CS_HIGH)); in omap2_mcspi_setup()
1178 omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH); in omap2_mcspi_transfer_one()
1267 omap2_mcspi_set_cs(spi, !(spi->mode & SPI_CS_HIGH)); in omap2_mcspi_transfer_one()
1419 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in omap2_mcspi_probe()
Dspi-st-ssc4.c180 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
205 ret = gpio_direction_output(cs, spi->mode & SPI_CS_HIGH); in spi_st_setup()
Dspi-xlp.c164 if (!(spi->mode & SPI_CS_HIGH)) in xlp_spi_setup()
410 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-geni-qcom.c157 if (!(slv->mode & SPI_CS_HIGH)) in spi_geni_set_cs()
224 if (spi_slv->mode & SPI_CS_HIGH) in setup_fifo_params()
570 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
Dspi-imx.c556 if (spi->mode & SPI_CS_HIGH) in mx51_ecspi_prepare_message()
718 if (spi->mode & SPI_CS_HIGH) in mx31_prepare_transfer()
819 if (spi->mode & SPI_CS_HIGH) in mx21_prepare_transfer()
1054 int dev_is_lowactive = !(spi->mode & SPI_CS_HIGH); in spi_imx_chipselect()
1525 spi->mode & SPI_CS_HIGH ? 0 : 1); in spi_imx_setup()
1659 spi_imx->bitbang.master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH \ in spi_imx_probe()
Dspi-bcm2835aux.c459 (spi->mode & SPI_CS_HIGH) ? 0 : 1); in bcm2835aux_spi_setup()
502 master->mode_bits = (SPI_CPOL | SPI_CS_HIGH | SPI_NO_CS); in bcm2835aux_spi_probe()
Dspi-ppc4xx.c277 cspol = spi->mode & SPI_CS_HIGH ? 1 : 0; in spi_ppc4xx_chipsel()
459 SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST; in spi_ppc4xx_of_probe()
/Linux-v5.4/include/uapi/linux/spi/
Dspidev.h41 #define SPI_CS_HIGH 0x04 macro
/Linux-v5.4/drivers/mfd/
Dmc13xxx-spi.c137 spi->mode = SPI_MODE_0 | SPI_CS_HIGH; in mc13xxx_spi_probe()

1234