Lines Matching defs:mode
10 * CPM SPI and QE buffer descriptors mode support:
94 __be32 __iomem *mode = ®_base->mode;
97 if (cs->hw_mode == mpc8xxx_spi_read_reg(mode))
103 /* Turn off SPI unit prior changing mode */
104 mpc8xxx_spi_write_reg(mode, cs->hw_mode & ~SPMODE_ENABLE);
106 /* When in CPM mode, we need to reinit tx and rx. */
110 mpc8xxx_spi_write_reg(mode, cs->hw_mode);
196 !(spi->mode & SPI_LSB_FIRST));
347 * In CPU mode, optimize large byte transfers to use larger
367 if (m->spi->mode & SPI_LSB_FIRST && t->bits_per_word > 8)
458 cs->hw_mode = mpc8xxx_spi_read_reg(®_base->mode);
463 if (spi->mode & SPI_CPHA)
465 if (spi->mode & SPI_CPOL)
467 if (!(spi->mode & SPI_LSB_FIRST))
469 if (spi->mode & SPI_LOOP)
480 /* Initialize chipselect - might be active for SPI_CS_HIGH mode */
659 mpc8xxx_spi_write_reg(®_base->mode, 0);
673 mpc8xxx_spi_write_reg(®_base->mode, regval);
679 dev_info(dev, "at 0x%p (irq = %d), %s mode\n", reg_base,