Lines Matching defs:mode
294 if (!(slv->mode & SPI_CS_HIGH))
336 static void spi_setup_word_len(struct spi_geni_master *mas, u16 mode,
340 bool msb_first = (mode & SPI_LSB_FIRST) ? false : true;
388 /* Set BW quota for CPU as driver supports FIFO mode only. */
405 if (mas->last_mode != spi_slv->mode) {
406 if (spi_slv->mode & SPI_LOOP)
409 if (spi_slv->mode & SPI_CPOL)
412 if (spi_slv->mode & SPI_CPHA)
415 if (spi_slv->mode & SPI_CS_HIGH)
421 spi_setup_word_len(mas, spi_slv->mode, spi_slv->bits_per_word);
428 mas->last_mode = spi_slv->mode;
491 peripheral.loopback_en = !!(spi_slv->mode & SPI_LOOP);
492 peripheral.clock_pol_high = !!(spi_slv->mode & SPI_CPOL);
493 peripheral.data_pol_high = !!(spi_slv->mode & SPI_CPHA);
569 /* Set SE DMA mode for SPI slave. */
595 dev_err(mas->dev, "Couldn't select mode %d\n", ret);
698 dev_dbg(mas->dev, "Using GPI DMA mode for SPI\n");
705 * FIFO mode, so fallthrough
707 dev_warn(mas->dev, "FIFO mode disabled, but couldn't get DMA, fall back to FIFO mode\n");
827 u16 mode, struct spi_master *spi)
850 spi_setup_word_len(mas, mode, xfer->bits_per_word);
878 * Select DMA mode if sgt are present; and with only 1 entry
881 * doesn't for any reason we fall back to FIFO mode anyway
931 ret = setup_se_xfer(xfer, mas, slv->mode, spi);
1134 * check the mode supported and set_cs for fifo mode only
1135 * for dma (gsi) mode, the gsi will set cs based on params passed in