Home
last modified time | relevance | path

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

1234

/linux-6.15/drivers/spi/
H A Dspi-lp8841-rtc.c154 if ((spi->mode & SPI_CS_HIGH) == 0) { in spi_lp8841_rtc_setup()
194 host->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST; in spi_lp8841_rtc_probe()
H A Dspi-gpio.c207 gpiod_set_value_cansleep(cs, (spi->mode & SPI_CS_HIGH) ? is_active : !is_active); in spi_gpio_chipselect()
232 ret = gpiod_direction_output(cs, !(spi->mode & SPI_CS_HIGH)); in spi_gpio_setup()
370 SPI_CS_HIGH | SPI_LSB_FIRST | SPI_MOSI_IDLE_LOW | in spi_gpio_probe()
H A 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()
H A Dspi-ath79.c73 int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active; in ath79_spi_chipselect()
195 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe()
H A Dspi-bcmbca-hsspi.c347 if (spi->mode & SPI_CS_HIGH) in bcmbca_hsspi_setup()
353 if (spi->mode & SPI_CS_HIGH) in bcmbca_hsspi_setup()
360 if (spi->mode & SPI_CS_HIGH) in bcmbca_hsspi_setup()
516 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcmbca_hsspi_probe()
H A Dspi-cavium-octeon.c49 SPI_CS_HIGH | in octeon_spi_probe()
H A Dspi-rockchip.c243 bool cs_asserted = spi->mode & SPI_CS_HIGH ? enable : !enable; in rockchip_spi_set_cs()
550 if ((spi->mode & SPI_CS_HIGH) && !(spi_get_csgpiod(spi, 0))) in rockchip_spi_config()
734 if (!spi_get_csgpiod(spi, 0) && (spi->mode & SPI_CS_HIGH) && !rs->cs_high_supported) { in rockchip_spi_setup()
745 if (spi->mode & SPI_CS_HIGH && spi_get_chipselect(spi, 0) <= 1) in rockchip_spi_setup()
901 ctlr->mode_bits |= SPI_CS_HIGH; in rockchip_spi_probe()
H A Dspi-coldfire-qspi.c290 bool cs_high = spi->mode & SPI_CS_HIGH; in mcfqspi_set_cs()
327 spi_get_chipselect(spi, 0), spi->mode & SPI_CS_HIGH); in mcfqspi_setup()
403 host->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
H A Dspi-microchip-core.c283 if (((spi->mode & SPI_CS_HIGH) == 0) == disable) in mchp_corespi_set_cs()
300 if (spi->mode & SPI_CS_HIGH) { in mchp_corespi_setup()
546 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in mchp_corespi_probe()
H A Dspi-cavium-thunderx.c65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
H A Dspi-omap-uwire.c324 if (spi->mode & SPI_CS_HIGH) in uwire_setup_transfer()
487 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
H A Dspi-xlp.c163 if (!(spi->mode & SPI_CS_HIGH)) in xlp_spi_setup()
409 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
H A Dspi-fsl-lib.c91 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
H A Dspi-altera-platform.c67 host->mode_bits = SPI_CS_HIGH; in altera_spi_probe()
H A Dspi-xilinx.c230 if (spi->mode & SPI_CS_HIGH) in xilinx_spi_setup_transfer()
433 SPI_CS_HIGH; in xilinx_spi_probe()
H A Dspi-sun4i.c191 if (spi->mode & SPI_CS_HIGH) in sun4i_spi_set_cs()
472 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
H A Dspi-altera-dfl.c113 host->mode_bits = SPI_CS_HIGH; in config_spi_host()
H A Dspi-clps711x.c108 host->mode_bits = SPI_CPHA | SPI_CS_HIGH; in spi_clps711x_probe()
H A Dspi-cavium.c53 mpi_cfg.s.cshi = (mode & SPI_CS_HIGH) ? 1 : 0; in octeon_spi_do_transfer()
H A Dspidev.c62 #define SPI_MODE_MASK (SPI_MODE_X_MASK | SPI_CS_HIGH \
397 tmp &= ~SPI_CS_HIGH; in spidev_ioctl()
431 tmp |= SPI_CS_HIGH; in spidev_ioctl()
H A Dspi-omap2-mcspi.c250 if (spi->mode & SPI_CS_HIGH) in omap2_mcspi_set_cs()
963 if (!(spi->mode & SPI_CS_HIGH)) in omap2_mcspi_setup_transfer()
1178 omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH); in omap2_mcspi_transfer_one()
1250 omap2_mcspi_set_cs(spi, !(spi->mode & SPI_CS_HIGH)); in omap2_mcspi_transfer_one()
1483 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in omap2_mcspi_probe()
/linux-6.15/include/uapi/linux/spi/
H A Dspi.h16 #define SPI_CS_HIGH _BITUL(2) /* chipselect active high? */ macro
/linux-6.15/include/trace/events/
H A Dspi.h70 (__entry->mode & SPI_CS_HIGH) ? "cs_high, " : "",
99 (__entry->mode & SPI_CS_HIGH) ? ", cs_high" : "")
/linux-6.15/drivers/mfd/
H A Dmc13xxx-spi.c135 spi->mode = SPI_MODE_0 | SPI_CS_HIGH; in mc13xxx_spi_probe()
/linux-6.15/drivers/net/wireless/ti/wlcore/
H A Dspi.c172 spi->mode ^= SPI_CS_HIGH; in wl12xx_spi_init()
189 spi->mode ^= SPI_CS_HIGH; in wl12xx_spi_init()

1234