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

/linux-4.4.14/drivers/spi/
H A Dspi-bitbang-txrx.h47 unsigned nsecs, unsigned cpol, unsigned flags, bitbang_txrx_be_cpha0()
50 /* if (cpol == 0) this is SPI_MODE_0; else this is SPI_MODE_2 */ bitbang_txrx_be_cpha0()
65 setsck(spi, !cpol); bitbang_txrx_be_cpha0()
72 setsck(spi, cpol); bitbang_txrx_be_cpha0()
79 unsigned nsecs, unsigned cpol, unsigned flags, bitbang_txrx_be_cpha1()
82 /* if (cpol == 0) this is SPI_MODE_1; else this is SPI_MODE_3 */ bitbang_txrx_be_cpha1()
89 setsck(spi, !cpol); bitbang_txrx_be_cpha1()
98 setsck(spi, cpol); bitbang_txrx_be_cpha1()
46 bitbang_txrx_be_cpha0(struct spi_device *spi, unsigned nsecs, unsigned cpol, unsigned flags, u32 word, u8 bits) bitbang_txrx_be_cpha0() argument
78 bitbang_txrx_be_cpha1(struct spi_device *spi, unsigned nsecs, unsigned cpol, unsigned flags, u32 word, u8 bits) bitbang_txrx_be_cpha1() argument
H A Dspi-octeon.c58 bool cpha, cpol; octeon_spi_do_transfer() local
66 cpol = mode & SPI_CPOL; octeon_spi_do_transfer()
78 mpi_cfg.s.idlelo = cpha != cpol; octeon_spi_do_transfer()
H A Dspi-nuc900.c75 unsigned int cpol = spi->mode & SPI_CPOL ? 1 : 0; nuc900_slave_select() local
96 if (!cpol) nuc900_slave_select()
H A Dspi-mt65xx.c139 u16 cpha, cpol; mtk_spi_prepare_message() local
146 cpol = spi->mode & SPI_CPOL ? 1 : 0; mtk_spi_prepare_message()
153 if (cpol) mtk_spi_prepare_message()
H A Dspi-sh-msiof.c321 u32 cpol, u32 cpha, sh_msiof_spi_set_pin_regs()
346 tmp |= CTR_TSCKIZ_SCK | cpol << CTR_TSCKIZ_POL_SHIFT; sh_msiof_spi_set_pin_regs()
347 tmp |= CTR_RSCKIZ_SCK | cpol << CTR_RSCKIZ_POL_SHIFT; sh_msiof_spi_set_pin_regs()
349 edge = cpol ^ !cpha; sh_msiof_spi_set_pin_regs()
320 sh_msiof_spi_set_pin_regs(struct sh_msiof_spi_priv *p, u32 cpol, u32 cpha, u32 tx_hi_z, u32 lsb_first, u32 cs_high) sh_msiof_spi_set_pin_regs() argument
H A Dspi-atmel.c394 u32 cpol = (spi->mode & SPI_CPOL) ? SPI_BIT(CPOL) : 0; cs_activate() local
401 if ((csr ^ cpol) & SPI_BIT(CPOL)) cs_activate()
H A Dspi.c1461 if (of_find_property(nc, "spi-cpol", NULL)) of_register_spi_device()
/linux-4.4.14/Documentation/spi/
H A Dspidev_test.c149 " -O --cpol clock polarity\n" print_usage()
172 { "cpol", 0, 0, 'O' }, parse_opts()
/linux-4.4.14/drivers/mtd/spi-nor/
H A Dnxp-spifi.c299 if (of_find_property(np, "spi-cpol", NULL)) nxp_spifi_setup_flash()

Completed in 251 milliseconds