Lines Matching refs:timeout
259 int timeout; in esdhc_setup_data() local
342 timeout = fls(mmc->clock/2); in esdhc_setup_data()
343 timeout -= 13; in esdhc_setup_data()
345 if (timeout > 14) in esdhc_setup_data()
346 timeout = 14; in esdhc_setup_data()
348 if (timeout < 0) in esdhc_setup_data()
349 timeout = 0; in esdhc_setup_data()
352 if ((timeout == 4) || (timeout == 8) || (timeout == 12)) in esdhc_setup_data()
353 timeout++; in esdhc_setup_data()
357 timeout = 0xE; in esdhc_setup_data()
359 esdhc_clrsetbits32(®s->sysctl, SYSCTL_TIMEOUT_MASK, timeout << 16); in esdhc_setup_data()
507 int timeout = 6000; in esdhc_send_cmd_common() local
510 while (timeout > 0 && !(esdhc_read32(®s->prsstat) & in esdhc_send_cmd_common()
513 timeout--; in esdhc_send_cmd_common()
516 if (timeout <= 0) { in esdhc_send_cmd_common()
1071 int timeout = 1000; in esdhc_getcd_common() local
1087 while (!(esdhc_read32(®s->prsstat) & PRSSTAT_CINS) && --timeout) in esdhc_getcd_common()
1090 return timeout > 0; in esdhc_getcd_common()