Searched refs:SPI_CPHA (Results 1 – 25 of 64) 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)
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()
71 if (spi->mode & SPI_CPHA) 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)253 if (spi->mode & SPI_CPHA) in kspi2_prepare_message()
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()
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()
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()
117 host->mode_bits |= SPI_CPHA; in config_spi_host()
45 cpha = mode & SPI_CPHA; in octeon_spi_do_transfer()
306 if (spi->mode & SPI_CPHA) in mcfqspi_transfer_one()403 host->mode_bits = SPI_CS_HIGH | SPI_CPOL | SPI_CPHA; in mcfqspi_probe()
362 if (mode_changed & SPI_CPHA) in setup_fifo_params()363 writel((spi_slv->mode & SPI_CPHA) ? CPHA : 0, se->base + SE_SPI_CPHA); in setup_fifo_params()431 peripheral.data_pol_high = !!(spi_slv->mode & SPI_CPHA); 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)359 if (spi->mode & SPI_CPHA) in zynq_qspi_config_op()
283 if (spi->mode & SPI_CPHA) in dw_spi_prepare_cr0()300 if (spi->mode & SPI_CPHA) in dw_spi_prepare_cr0()956 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in dw_spi_add_controller()
96 ((dev->mode & SPI_CPHA) ? BM_SSP_CTRL1_PHASE : 0), in mxs_spi_setup_transfer()574 host->mode_bits = SPI_CPOL | SPI_CPHA; in mxs_spi_probe()
189 ctrl->mode_bits = SPI_CPHA; in ch341_probe()
233 if (spi->mode & SPI_CPHA) in cdns_spi_config_clock_mode()729 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in cdns_spi_probe()
356 if (spi->mode & SPI_CPHA) 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()
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()
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()
136 if (spi->mode & SPI_CPHA) in ax_spi_config_clock_mode()836 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH; in ax_spi_probe()
161 if (spi->mode & SPI_CPHA) { in ice40_fpga_probe()
122 } else if (spi->mode & SPI_CPHA) { in ds1302_probe()
186 ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST; in netup_spi_init()