Lines Matching refs:status
171 * @state: Set of FLAGS to indicate status.
497 u32 status;
506 status = readl(regs + S3C64XX_SPI_STATUS);
507 } while (RX_FIFO_LVL(status, sdd) < max_fifo && --val);
510 return RX_FIFO_LVL(status, sdd);
518 u32 status;
540 status = readl(regs + S3C64XX_SPI_STATUS);
541 while ((TX_FIFO_LVL(status, sdd)
542 || !S3C64XX_SPI_ST_TX_DONE(status, sdd))
545 status = readl(regs + S3C64XX_SPI_STATUS);
550 /* If timed out while checking rx/tx status return error */
562 u32 status;
575 status = readl(regs + S3C64XX_SPI_STATUS);
576 if (RX_FIFO_LVL(status, sdd) < xfer->len)
587 status = readl(regs + S3C64XX_SPI_STATUS);
588 } while (RX_FIFO_LVL(status, sdd) < xfer->len && --val);
750 int status;
767 status = s3c64xx_spi_config(sdd);
768 if (status)
769 return status;
825 status = s3c64xx_enable_datapath(sdd, xfer, use_dma);
829 if (status) {
830 dev_err(&spi->dev, "failed to enable data path for transfer: %d\n", status);
835 status = s3c64xx_wait_for_dma(sdd, xfer);
837 status = s3c64xx_wait_for_pio(sdd, xfer, use_irq);
839 if (status) {
845 xfer->len, use_dma ? 1 : 0, status);
890 return status;