Lines Matching defs:timeout
37 * timeout value in 10ms
39 int bist(const struct ccsr_ddr *ddr, int timeout)
99 timeout <<= 2U;
100 debug("Increase wait time to %d ms\n", timeout * 10);
112 } while (timeout-- > 0 && ((mtcr & BIST_CR_EN) != 0));
113 if (timeout <= 0) {
116 debug("Timer remains %d\n", timeout);
167 int timeout = 1000;
172 } while (timeout-- > 0 && ((ddr_in32(ptr) & bits) != 0));
174 if (timeout <= 0) {
175 ERROR("wait for clear timeout.\n");
197 int timeout;
430 timeout = 40;
432 (timeout > 0)) {
434 timeout--;
436 if (timeout <= 0) {
437 printf("PHY handshake timeout, ddr_dsr2 = %x\n",
441 timeout);
478 timeout = ((total_mem_per_ctrl_adj << (6 - bus_width)) * 100 /
483 debug("Need to wait up to %d ms\n", timeout * 10);
487 } while (timeout-- > 0 &&
490 if (timeout <= 0) {
495 ERROR("Error: Waiting for D_INIT timeout.\n");
517 timeout = 400;
520 } while (timeout-- > 0 && ((ddr_in32(&ddr->debug[1]) & 0x2) == 0));
546 timeout = 400;
549 } while (timeout-- > 0 && ((ddr_in32(&ddr->debug[1]) & 0x2) == 0));
586 timeout = ((total_mem_per_ctrl << (6 - bus_width)) *
588 INFO("\tWait up to %d ms\n", timeout * 10);
589 ret = bist(ddr, timeout);