Lines Matching defs:mode
4 * (master mode only)
153 * @dma_rx_bytes: Remaining bytes to receive by DMA mode
156 * @mode: Defines the mode in which QSPI is operating
175 enum mode_type mode;
256 * - Master mode
259 * - Flash memory interface mode enabled
265 * - Set the little endian mode of TX FIFO and
272 /* Select the GQSPI mode */
399 * zynqmp_qspi_selectspimode - Selects SPI mode - x1 or x2 or x4.
402 * Return: Mask to set desired SPI mode in GENFIFO entry.
420 dev_warn(xqspi->dev, "Invalid SPI mode\n");
432 * Sets the operational mode of QSPI controller for the next QSPI transfer and
467 if (qspi->mode & SPI_CPHA)
469 if (qspi->mode & SPI_CPOL)
482 * Sets the operational mode of QSPI controller for the next QSPI transfer,
574 if (xqspi->mode == GQSPI_MODE_DMA)
622 if (xqspi->mode == GQSPI_MODE_IO && xqspi->rxbuf) {
650 /* Switch to IO mode,for remaining bytes to receive */
669 /* Enable the RX interrupts for IO mode */
700 if (xqspi->mode == GQSPI_MODE_DMA) {
742 /* Setting to IO mode */
746 xqspi->mode = GQSPI_MODE_IO;
769 /* Enabling the DMA mode */
775 /* Switch to DMA mode */
776 xqspi->mode = GQSPI_MODE_DMA;
800 if (xqspi->mode == GQSPI_MODE_DMA) {
806 xqspi->mode = GQSPI_MODE_IO;
943 dev_dbg(xqspi->dev, "cmd:%#x mode:%d.%d.%d.%d\n",
1011 * we need to use it to configure the correct SPI mode.
1051 if (xqspi->mode == GQSPI_MODE_DMA) {