Lines Matching defs:mode
138 u16 mode;
245 if (spi->mode & SPI_CS_HIGH)
277 * Choose master or slave mode
456 * normal mode.
476 * configured in turbo mode.
626 /* Enable EOW IRQ to know end of tx in slave mode */
664 /* for TX_ONLY mode, be sure all words have shifted out */
858 /* for TX_ONLY mode, be sure all words have shifted out */
924 /* standard 4-wire master mode: SCK, MOSI/out, MISO/in, nCS
925 * REVISIT: this controller could support SPI_3WIRE mode.
942 if (!(spi->mode & SPI_CS_HIGH))
960 /* set SPI mode 0..3 */
961 if (spi->mode & SPI_CPOL)
965 if (spi->mode & SPI_CPHA)
972 cs->mode = spi->mode;
976 (spi->mode & SPI_CPHA) ? "trailing" : "leading",
977 (spi->mode & SPI_CPOL) ? "inverted" : "normal");
1062 cs->mode = 0;
1128 * channel" master mode. As a side effect, we need to manage the
1146 * The slave driver could have changed spi->mode in which case
1147 * it will be different from cs->mode (the current hardware setup).
1150 * with the correct mode on the first iteration of the loop below.
1152 if (spi->mode != cs->mode)
1158 omap2_mcspi_set_cs(spi, spi->mode & SPI_CS_HIGH);
1189 /* Turbo mode is for more than one word */
1206 /* RX_ONLY mode needs dummy data in TX reg */
1247 omap2_mcspi_set_cs(spi, !(spi->mode & SPI_CS_HIGH));
1338 * When SPI wake up from off-mode, CS is in activate state. If it was in
1422 /* the spi->mode bits understood by this driver: */