Lines Matching refs:mmcstatus
93 uint mmcstatus = *cur_st; in dmmc_check_status() local
96 if (mmcstatus & st_ready) { in dmmc_check_status()
97 *cur_st = mmcstatus; in dmmc_check_status()
98 mmcstatus = get_val(®s->mmcst1); in dmmc_check_status()
100 } else if (mmcstatus & st_error) { in dmmc_check_status()
101 if (mmcstatus & MMCST0_TOUTRS) in dmmc_check_status()
103 printf("[ ST0 ERROR %x]\n", mmcstatus); in dmmc_check_status()
108 if (mmcstatus & MMCST0_CRCRS) in dmmc_check_status()
114 mmcstatus = get_val(®s->mmcst0); in dmmc_check_status()
117 printf("Status %x Timeout ST0:%x ST1:%x\n", st_ready, mmcstatus, in dmmc_check_status()
131 uint mmcstatus, status_rdy, status_err; in dmmc_send_cmd() local
137 mmcstatus = get_val(®s->mmcst0); in dmmc_send_cmd()
221 mmcstatus = get_val(®s->mmcst0); in dmmc_send_cmd()
222 err = dmmc_check_status(regs, &mmcstatus, status_rdy, status_err); in dmmc_send_cmd()
231 if (mmcstatus & MMCST0_RSPDNE) { in dmmc_send_cmd()
261 err = dmmc_check_status(regs, &mmcstatus, status_rdy, in dmmc_send_cmd()
307 err = dmmc_check_status(regs, &mmcstatus, MMCST0_DATDNE, status_err); in dmmc_send_cmd()