Lines Matching defs:mode
140 u16 mode;
247 if (spi->mode & SPI_CS_HIGH)
278 * Choose host or target mode
457 * normal mode.
477 * configured in turbo mode.
627 /* Enable EOW IRQ to know end of tx in target mode */
665 /* for TX_ONLY mode, be sure all words have shifted out */
865 /* for TX_ONLY mode, be sure all words have shifted out */
932 /* standard 4-wire host mode: SCK, MOSI/out, MISO/in, nCS
933 * REVISIT: this controller could support SPI_3WIRE mode.
950 if (!(spi->mode & SPI_CS_HIGH))
968 /* set SPI mode 0..3 */
969 if (spi->mode & SPI_CPOL)
973 if (spi->mode & SPI_CPHA)
980 cs->mode = spi->mode;
984 (spi->mode & SPI_CPHA) ? "trailing" : "leading",
985 (spi->mode & SPI_CPOL) ? "inverted" : "normal");
1070 cs->mode = 0;
1135 * channel" host mode. As a side effect, we need to manage the
1153 * The target driver could have changed spi->mode in which case
1154 * it will be different from cs->mode (the current hardware setup).
1157 * with the correct mode on the first iteration of the loop below.
1159 if (spi->mode != cs->mode)
1165 omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH);
1196 /* Turbo mode is for more than one word */
1213 /* RX_ONLY mode needs dummy data in TX reg */
1254 omap2_mcspi_set_cs(spi, !(spi->mode & SPI_CS_HIGH));
1353 * When SPI wake up from off-mode, CS is in activate state. If it was in
1442 /* the spi->mode bits understood by this driver: */