Home
last modified time | relevance | path

Searched refs:SPI_CPHA (Results 1 – 25 of 101) sorted by relevance

12345

/linux-6.15/include/uapi/linux/spi/
H A Dspi.h7 #define SPI_CPHA _BITUL(0) /* clock phase */ macro
11 #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)
/linux-6.15/drivers/spi/
H A Dspi-clps711x.c44 (spi->mode & SPI_CPHA) ? in spi_clps711x_prepare_message()
108 host->mode_bits = SPI_CPHA | SPI_CS_HIGH; in spi_clps711x_probe()
H A Dspi-sh-hspi.c131 if (spi->mode & SPI_CPHA) in hspi_hw_setup()
255 ctlr->mode_bits = SPI_CPOL | SPI_CPHA; in hspi_probe()
H A Dspi-xcomm.c138 if (spi->mode & SPI_CPHA) in spi_xcomm_setup_transfer()
259 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE; in spi_xcomm_probe()
H A Dspi-ljca.c131 (mode & SPI_CPHA) ? LJCA_SPI_CLOCK_SECOND_PHASE : in ljca_spi_init()
236 controller->mode_bits = SPI_CPHA | SPI_CPOL; in ljca_spi_probe()
H A Dspi-cavium-octeon.c47 host->mode_bits = SPI_CPHA | in octeon_spi_probe()
H A Dspi-sc18is602.c136 if (mode & SPI_CPHA) in sc18is602_setup_transfer()
287 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in sc18is602_probe()
H A Dspi-mpc52xx-psc.c71 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()
H A Dspi-bitbang.c204 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()
H A Dspi-cavium-thunderx.c65 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | in thunderx_spi_probe()
H A Dspi-kspi2.c39 #define KSPI2_MODE_BITS (SPI_CPHA | SPI_CPOL)
253 if (spi->mode & SPI_CPHA) in kspi2_prepare_message()
H A Dspi-orion.c244 if (spi->mode & SPI_CPHA) in orion_spi_mode_set()
281 spi->mode & SPI_CPHA) in orion_spi_50mhz_ac_timing_erratum()
671 host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST | SPI_CS_WORD; in orion_spi_probe()
H A Dspi-st-ssc4.c174 #define MODEBITS (SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | SPI_CS_HIGH)
220 if (spi->mode & SPI_CPHA) in spi_st_setup()
H A Dspi-xlp.c155 if (spi->mode & SPI_CPHA) 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-mpc512x-psc.c97 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()
H A Dspi-xilinx.c200 if (spi->mode & SPI_CPHA) in xilinx_spi_chipselect()
432 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST | SPI_LOOP | in xilinx_spi_probe()
H A Dspi-sun4i.c247 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()
H A Dspi-altera-dfl.c117 host->mode_bits |= SPI_CPHA; in config_spi_host()
H A Dspi-cavium.c45 cpha = mode & SPI_CPHA; in octeon_spi_do_transfer()
H A Dspi-mpc52xx.c170 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()
H A Dspi-hisi-kunpeng.c316 cr |= FIELD_PREP(CR_CPHA_MASK, (spi->mode & SPI_CPHA) ? 1 : 0); in hisi_spi_prepare_cr()
493 host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LOOP; in hisi_spi_probe()
H A Dspi-apple.c178 u32 cfg = ((device->mode & SPI_CPHA ? APPLE_SPI_CFG_CPHA : 0) | in apple_spi_prepare_message()
491 ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST; in apple_spi_probe()
/linux-6.15/drivers/fpga/
H A Dice40-spi.c161 if (spi->mode & SPI_CPHA) { in ice40_fpga_probe()
/linux-6.15/drivers/rtc/
H A Drtc-ds1302.c122 } else if (spi->mode & SPI_CPHA) { in ds1302_probe()

12345