Lines Matching refs:timeout
435 unsigned int timeout = 1000; in jz4740_mmc_clock_disable() local
440 } while (status & JZ_MMC_STATUS_CLK_EN && --timeout); in jz4740_mmc_clock_disable()
446 unsigned int timeout = 1000; in jz4740_mmc_reset() local
452 } while (status & JZ_MMC_STATUS_IS_RESETTING && --timeout); in jz4740_mmc_reset()
472 unsigned int timeout = 0x800; in jz4740_mmc_poll_irq() local
477 } while (!(status & irq) && --timeout); in jz4740_mmc_poll_irq()
479 if (timeout == 0) { in jz4740_mmc_poll_irq()
521 bool timeout; in jz4740_mmc_write_data() local
530 timeout = jz4740_mmc_poll_irq(host, JZ_MMC_IRQ_TXFIFO_WR_REQ); in jz4740_mmc_write_data()
531 if (unlikely(timeout)) in jz4740_mmc_write_data()
546 timeout = jz4740_mmc_poll_irq(host, JZ_MMC_IRQ_TXFIFO_WR_REQ); in jz4740_mmc_write_data()
547 if (unlikely(timeout)) in jz4740_mmc_write_data()
579 unsigned int timeout; in jz4740_mmc_read_data() local
587 timeout = jz4740_mmc_poll_irq(host, JZ_MMC_IRQ_RXFIFO_RD_REQ); in jz4740_mmc_read_data()
588 if (unlikely(timeout)) in jz4740_mmc_read_data()
605 timeout = jz4740_mmc_poll_irq(host, JZ_MMC_IRQ_RXFIFO_RD_REQ); in jz4740_mmc_read_data()
606 if (unlikely(timeout)) in jz4740_mmc_read_data()
624 timeout = 1000; in jz4740_mmc_read_data()
626 while (!(status & JZ_MMC_STATUS_DATA_FIFO_EMPTY) && --timeout) { in jz4740_mmc_read_data()
761 bool timeout = false; in jz_mmc_irq_worker() local
785 timeout = jz4740_mmc_start_dma_transfer(host, data); in jz_mmc_irq_worker()
793 timeout = jz4740_mmc_read_data(host, data); in jz_mmc_irq_worker()
795 timeout = jz4740_mmc_write_data(host, data); in jz_mmc_irq_worker()
797 if (unlikely(timeout)) { in jz_mmc_irq_worker()
804 timeout = jz4740_mmc_poll_irq(host, JZ_MMC_IRQ_DATA_TRAN_DONE); in jz_mmc_irq_worker()
805 if (unlikely(timeout)) { in jz_mmc_irq_worker()
819 timeout = jz4740_mmc_poll_irq(host, in jz_mmc_irq_worker()
821 if (timeout) { in jz_mmc_irq_worker()
832 if (!timeout) in jz_mmc_irq_worker()