Searched refs:SPI_CPOL (Results 1 – 25 of 63) sorted by relevance
123
8 #define SPI_CPOL _BITUL(1) /* clock polarity */ macro12 #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)
191 if (spi->mode & SPI_CPOL) in uwire_chipselect()327 if (spi->mode & SPI_CPOL) in uwire_setup_transfer()487 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in uwire_probe()
204 cs->txrx_word = bitbang->txrx_word[spi->mode & (SPI_CPOL|SPI_CPHA)]; in spi_bitbang_setup()370 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | bitbang->flags; in spi_bitbang_init()
75 if (spi->mode & SPI_CPOL) in mpc52xx_psc_spi_activate_cs()310 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc52xx_psc_spi_of_probe()
39 #define KSPI2_MODE_BITS (SPI_CPHA | SPI_CPOL)255 if (spi->mode & SPI_CPOL) in kspi2_prepare_message()
102 if (spi->mode & SPI_CPOL) in mpc512x_psc_spi_activate_cs()475 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in mpc512x_psc_spi_of_probe()
315 cr |= FIELD_PREP(CR_CPOL_MASK, (spi->mode & SPI_CPOL) ? 1 : 0); in hisi_spi_prepare_cr()491 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
172 if (spi->mode & SPI_CPOL) in mpc52xx_spi_fsmstate_idle()431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
115 host->mode_bits |= SPI_CPOL; in config_spi_host()
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
308 if (spi->mode & SPI_CPOL) in mcfqspi_transfer_one()403 host->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
364 if (mode_changed & SPI_CPOL) in setup_fifo_params()365 writel((spi_slv->mode & SPI_CPOL) ? CPOL : 0, se->base + SE_SPI_CPOL); in setup_fifo_params()430 peripheral.clock_pol_high = !!(spi_slv->mode & SPI_CPOL); in setup_gsi_xfer()1071 spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in spi_geni_probe()
157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
115 #define ZYNQ_QSPI_MODEBITS (SPI_CPOL | SPI_CPHA)361 if (spi->mode & SPI_CPOL) in zynq_qspi_config_op()
281 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()298 if (spi->mode & SPI_CPOL) in dw_spi_prepare_cr0()956 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in dw_spi_add_controller()
117 setsck(spi, spi->mode & SPI_CPOL); in butterfly_chipselect()
95 ((dev->mode & SPI_CPOL) ? BM_SSP_CTRL1_POLARITY : 0) | in mxs_spi_setup_transfer()574 host->mode_bits = SPI_CPOL | SPI_CPHA; in mxs_spi_probe()
235 if (spi->mode & SPI_CPOL) in cdns_spi_config_clock_mode()729 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
351 if (spi->mode & SPI_CPOL) in at91_usart_spi_setup()508 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH; in at91_usart_spi_probe()
170 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_TX_QUAD | SPI_RX_QUAD; in rpcif_spi_probe()
669 if (spi->mode & SPI_CPOL) in meson_spicc_prepare_message()675 if (spi->mode & SPI_CPOL) { in meson_spicc_prepare_message()1057 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP; in meson_spicc_probe()
341 if (spi->mode & SPI_CPOL) in sun6i_spi_transfer_one()673 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in sun6i_spi_probe()
373 if ((spi->mode & SPI_CPOL) && (spi->mode & SPI_CPHA)) in mchp_coreqspi_setup_clock()725 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD | in mchp_coreqspi_probe()
170 if (!(adc->spi->mode & SPI_CPOL)) in mcp320x_adc_conversion()423 if (!(spi->mode & SPI_CPOL)) in mcp320x_probe()
186 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in netup_spi_init()