Searched refs:SPI_CPHA (Results 1 – 25 of 55) sorted by relevance
123
7 #define SPI_CPHA _BITUL(0) /* clock phase */ macro11 #define SPI_MODE_1 (0|SPI_CPHA)13 #define SPI_MODE_3 (SPI_CPOL|SPI_CPHA)14 #define SPI_MODE_X_MASK (SPI_CPOL|SPI_CPHA)
44 (spi->mode & SPI_CPHA) ? in spi_clps711x_prepare_message()108 host->mode_bits = SPI_CPHA | SPI_CS_HIGH; in spi_clps711x_probe()
138 if (spi->mode & SPI_CPHA) in spi_xcomm_setup_transfer()259 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_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()
155 if (spi->mode & SPI_CPHA) in xlp_spi_setup()409 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in xlp_spi_probe()
174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)220 if (spi->mode & SPI_CPHA) in spi_st_setup()
91 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH in mpc8xxx_spi_probe()
97 if (spi->mode & SPI_CPHA) 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()
247 if (spi->mode & SPI_CPHA) in sun4i_spi_transfer_one()472 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST; in sun4i_spi_probe()
200 if (spi->mode & SPI_CPHA) in xilinx_spi_chipselect()433 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
117 host->mode_bits |= SPI_CPHA; in config_spi_host()
45 cpha = mode & SPI_CPHA; in octeon_spi_do_transfer()
170 if (spi->mode & SPI_CPHA) in mpc52xx_spi_fsmstate_idle()431 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in mpc52xx_spi_probe()
314 cr |= FIELD_PREP(CR_CPHA_MASK, (spi->mode & SPI_CPHA) ? 1 : 0); in hisi_spi_prepare_cr()491 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
157 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in jcore_spi_probe()
137 cpha = spi->mode & SPI_CPHA ? 1 : 0; in mtk_spi_slave_prepare_message()399 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in mtk_spi_slave_probe()
675 bool cpha = (spi->mode & SPI_CPHA); in mx51_configure_cpha()879 if (spi->mode & SPI_CPHA) in mx31_prepare_transfer()979 if (spi->mode & SPI_CPHA) in mx21_prepare_transfer()1053 if (spi->mode & SPI_CPHA) in mx1_prepare_transfer()1865 controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_NO_CS | in spi_imx_probe()
161 if (spi->mode & SPI_CPHA) in ep93xx_spi_chip_setup()642 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ep93xx_spi_probe()
337 if (spi->mode & SPI_CPHA) in bcmbca_hsspi_setup()516 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | in bcmbca_hsspi_probe()
233 if (spi->mode & SPI_CPHA) in cdns_spi_config_clock_mode()730 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_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()
346 if (spi->mode & SPI_CPHA) in sun6i_spi_transfer_one()673 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST | in sun6i_spi_probe()
71 if (spi->mode & SPI_CPHA) in loongson_spi_set_mode()
122 } else if (spi->mode & SPI_CPHA) { in ds1302_probe()