Lines Matching refs:esdhc_read32

170 			irqstat = esdhc_read32(&regs->irqstat);  in esdhc_pio_read_write()
171 while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BREN)) { in esdhc_pio_read_write()
179 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
193 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
194 while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BWEN)) { in esdhc_pio_read_write()
205 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
280 if (is_write && !(esdhc_read32(&regs->prsstat) & PRSSTAT_WPSPL)) { in esdhc_setup_data()
356 while ((esdhc_read32(&regs->prsstat) & PRSSTAT_CICHB) || in esdhc_send_cmd_common()
357 (esdhc_read32(&regs->prsstat) & PRSSTAT_CIDHB)) in esdhc_send_cmd_common()
360 while (esdhc_read32(&regs->prsstat) & PRSSTAT_DLA) in esdhc_send_cmd_common()
393 while (!(esdhc_read32(&regs->irqstat) & flags)) { in esdhc_send_cmd_common()
400 irqstat = esdhc_read32(&regs->irqstat); in esdhc_send_cmd_common()
417 while (timeout > 0 && !(esdhc_read32(&regs->prsstat) & in esdhc_send_cmd_common()
434 cmdrsp3 = esdhc_read32(&regs->cmdrsp3); in esdhc_send_cmd_common()
435 cmdrsp2 = esdhc_read32(&regs->cmdrsp2); in esdhc_send_cmd_common()
436 cmdrsp1 = esdhc_read32(&regs->cmdrsp1); in esdhc_send_cmd_common()
437 cmdrsp0 = esdhc_read32(&regs->cmdrsp0); in esdhc_send_cmd_common()
443 cmd->response[0] = esdhc_read32(&regs->cmdrsp0); in esdhc_send_cmd_common()
456 irqstat = esdhc_read32(&regs->irqstat); in esdhc_send_cmd_common()
483 esdhc_write32(&regs->sysctl, esdhc_read32(&regs->sysctl) | in esdhc_send_cmd_common()
485 while (esdhc_read32(&regs->sysctl) & SYSCTL_RSTC) in esdhc_send_cmd_common()
490 esdhc_read32(&regs->sysctl) | in esdhc_send_cmd_common()
492 while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTD)) in esdhc_send_cmd_common()
535 while (!(esdhc_read32(&regs->prsstat) & value)) { in set_sysctl()
553 value = esdhc_read32(&regs->sysctl); in esdhc_clock_control()
564 while (!(esdhc_read32(&regs->prsstat) & value)) { in esdhc_clock_control()
582 while (esdhc_read32(&regs->esdhcctl) & ESDHCCTL_FAF) { in esdhc_flush_async_fifo()
630 if (esdhc_read32(&regs->tbctl) & HS400_MODE && in esdhc_set_timing()
655 while (!(esdhc_read32(&regs->dllstat0) & val)) { in esdhc_set_timing()
728 while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTA)) { in esdhc_init_common()
763 if (esdhc_read32(&regs->prsstat) & PRSSTAT_CINS) in esdhc_getcd_common()
775 caps = esdhc_read32(&regs->hostcapblt); in fsl_esdhc_get_cfg_common()
981 caps = esdhc_read32(&priv->esdhc_regs->hostcapblt); in fsl_esdhc_probe()
982 hostver = esdhc_read32(&priv->esdhc_regs->hostver); in fsl_esdhc_probe()
1072 irqstaten = esdhc_read32(&regs->irqstaten); in fsl_esdhc_execute_tuning()
1079 val = esdhc_read32(&regs->autoc12err); in fsl_esdhc_execute_tuning()