Home
last modified time | relevance | path

Searched refs:cpol (Results 1 – 9 of 9) sorted by relevance

/drivers/spi/
A Dspi-bitbang-txrx.h50 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0() argument
68 setsck(spi, !cpol); in bitbang_txrx_be_cpha0()
75 setsck(spi, cpol); in bitbang_txrx_be_cpha0()
82 unsigned nsecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha1() argument
92 setsck(spi, !cpol); in bitbang_txrx_be_cpha1()
101 setsck(spi, cpol); in bitbang_txrx_be_cpha1()
114 unsigned int nsecs, unsigned int cpol, unsigned int flags, in bitbang_txrx_le_cpha0() argument
133 setsck(spi, !cpol); in bitbang_txrx_le_cpha0()
140 setsck(spi, cpol); in bitbang_txrx_le_cpha0()
158 setsck(spi, !cpol); in bitbang_txrx_le_cpha1()
[all …]
A Dspi-cavium.c38 bool cpha, cpol; in octeon_spi_do_transfer() local
46 cpol = mode & SPI_CPOL; in octeon_spi_do_transfer()
56 mpi_cfg.s.idlelo = cpha != cpol; in octeon_spi_do_transfer()
A Dspi-lp8841-rtc.c67 unsigned usecs, unsigned cpol, unsigned flags, in bitbang_txrx_be_cpha0_lsb() argument
87 setsck(data, !cpol); in bitbang_txrx_be_cpha0_lsb()
90 setsck(data, cpol); in bitbang_txrx_be_cpha0_lsb()
A Dspi-slave-mt27xx.c134 bool cpha, cpol; in mtk_spi_slave_prepare_message() local
138 cpol = spi->mode & SPI_CPOL ? 1 : 0; in mtk_spi_slave_prepare_message()
145 if (cpol) in mtk_spi_slave_prepare_message()
A Dspi-stm32.c236 const struct stm32_spi_reg cpol; member
386 .cpol = { STM32FX_SPI_CR1, STM32FX_SPI_CR1_CPOL },
405 .cpol = { STM32H7_SPI_CFG2, STM32H7_SPI_CFG2_CPOL },
425 .cpol = { STM32H7_SPI_CFG2, STM32H7_SPI_CFG2_CPOL },
1187 setb |= spi->cfg->regs->cpol.mask; in stm32_spi_prepare_msg()
1189 clrb |= spi->cfg->regs->cpol.mask; in stm32_spi_prepare_msg()
1223 (readl_relaxed(spi->base + spi->cfg->regs->cpol.reg) & in stm32_spi_prepare_msg()
1225 spi->base + spi->cfg->regs->cpol.reg); in stm32_spi_prepare_msg()
A Dspi-sh-msiof.c220 bool cpol, bool cpha, bool tx_hi_z, in sh_msiof_spi_set_pin_regs() argument
253 tmp |= SICTR_TSCKIZ_SCK | FIELD_PREP(SICTR_TSCKIZ_POL, cpol); in sh_msiof_spi_set_pin_regs()
254 tmp |= SICTR_RSCKIZ_SCK | FIELD_PREP(SICTR_RSCKIZ_POL, cpol); in sh_msiof_spi_set_pin_regs()
256 edge = cpol ^ !cpha; in sh_msiof_spi_set_pin_regs()
A Dspi-geni-qcom.c402 u32 loopback_cfg = 0, cpol = 0, cpha = 0, demux_output_inv = 0; in setup_fifo_params() local
410 cpol = CPOL; in setup_fifo_params()
425 writel(cpol, se->base + SE_SPI_CPOL); in setup_fifo_params()
A Dspi-mt65xx.c368 u16 cpha, cpol; in mtk_spi_hw_init() local
375 cpol = spi->mode & SPI_CPOL ? 1 : 0; in mtk_spi_hw_init()
391 if (cpol) in mtk_spi_hw_init()
A Dspi-atmel.c434 u32 cpol = (spi->mode & SPI_CPOL) ? SPI_BIT(CPOL) : 0; in cs_activate() local
441 if ((csr ^ cpol) & SPI_BIT(CPOL)) in cs_activate()

Completed in 28 milliseconds