Searched refs:SPI_CS_HIGH (Results 1 – 25 of 80) sorted by relevance
1234
212 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()381 SPI_CS_HIGH; in spi_gpio_probe()
155 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()
132 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()385 spi->mode & SPI_CS_HIGH ? 0 : 1); in mpc512x_psc_spi_setup()511 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_do_probe()
137 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()
73 int cs_high = (spi->mode & SPI_CS_HIGH) ? is_active : !is_active; in ath79_spi_chipselect()168 sp->bitbang.flags = SPI_CS_HIGH; in ath79_spi_probe()
741 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()
244 if (spi->mode & SPI_CS_HIGH) in bcm63xx_hsspi_setup()251 if (spi->mode & SPI_CS_HIGH) in bcm63xx_hsspi_setup()417 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcm63xx_hsspi_probe()
111 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()376 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_do_probe()
49 SPI_CS_HIGH | in octeon_spi_probe()
290 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()
69 master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
327 if (spi->mode & SPI_CS_HIGH) in uwire_setup_transfer()495 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
237 if (spi->mode & SPI_CS_HIGH) in mtk_spi_prepare_message()272 if (spi->mode & SPI_CS_HIGH) in mtk_spi_set_cs()525 gpio_direction_output(spi->cs_gpio, !(spi->mode & SPI_CS_HIGH)); in mtk_spi_setup()660 master->mode_bits |= SPI_CS_HIGH; in mtk_spi_probe()
180 #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()
164 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()
90 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
459 (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()
230 if (spi->mode & SPI_CS_HIGH) in xilinx_spi_setup_transfer()430 SPI_CS_HIGH; in xilinx_spi_probe()
191 if (spi->mode & SPI_CS_HIGH) in sun4i_spi_set_cs()467 master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
106 master->mode_bits = SPI_CPHA | SPI_CS_HIGH; in spi_clps711x_probe()
53 mpi_cfg.s.cshi = (mode & SPI_CS_HIGH) ? 1 : 0; in octeon_spi_do_transfer()
16 #define SPI_CS_HIGH 0x04 macro
29 #define SPI_CS_HIGH 0x04 macro
41 #define SPI_CS_HIGH 0x04 macro
137 spi->mode = SPI_MODE_0 | SPI_CS_HIGH; in mc13xxx_spi_probe()