Lines Matching refs:timeout
39 int bist(const struct ccsr_ddr *ddr, int timeout) in bist() argument
99 timeout <<= 2U; in bist()
100 debug("Increase wait time to %d ms\n", timeout * 10); in bist()
112 } while (timeout-- > 0 && ((mtcr & BIST_CR_EN) != 0)); in bist()
113 if (timeout <= 0) { in bist()
116 debug("Timer remains %d\n", timeout); in bist()
167 int timeout = 1000; in set_wait_for_bits_clear() local
172 } while (timeout-- > 0 && ((ddr_in32(ptr) & bits) != 0)); in set_wait_for_bits_clear()
174 if (timeout <= 0) { in set_wait_for_bits_clear()
197 int timeout; in ddrc_set_regs() local
430 timeout = 40; in ddrc_set_regs()
432 (timeout > 0)) { in ddrc_set_regs()
434 timeout--; in ddrc_set_regs()
436 if (timeout <= 0) { in ddrc_set_regs()
441 timeout); in ddrc_set_regs()
478 timeout = ((total_mem_per_ctrl_adj << (6 - bus_width)) * 100 / in ddrc_set_regs()
483 debug("Need to wait up to %d ms\n", timeout * 10); in ddrc_set_regs()
487 } while (timeout-- > 0 && in ddrc_set_regs()
490 if (timeout <= 0) { in ddrc_set_regs()
517 timeout = 400; in ddrc_set_regs()
520 } while (timeout-- > 0 && ((ddr_in32(&ddr->debug[1]) & 0x2) == 0)); in ddrc_set_regs()
546 timeout = 400; in ddrc_set_regs()
549 } while (timeout-- > 0 && ((ddr_in32(&ddr->debug[1]) & 0x2) == 0)); in ddrc_set_regs()
586 timeout = ((total_mem_per_ctrl << (6 - bus_width)) * in ddrc_set_regs()
588 INFO("\tWait up to %d ms\n", timeout * 10); in ddrc_set_regs()
589 ret = bist(ddr, timeout); in ddrc_set_regs()