Lines Matching refs:esdhc_read32

243 			irqstat = esdhc_read32(&regs->irqstat);  in esdhc_pio_read_write()
244 while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BREN)) { in esdhc_pio_read_write()
252 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
266 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
267 while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_BWEN)) { in esdhc_pio_read_write()
278 irqstat = esdhc_read32(&regs->irqstat); in esdhc_pio_read_write()
324 if ((esdhc_read32(&regs->prsstat) & in esdhc_setup_data()
465 while ((esdhc_read32(&regs->prsstat) & PRSSTAT_CICHB) || in esdhc_send_cmd_common()
466 (esdhc_read32(&regs->prsstat) & PRSSTAT_CIDHB)) in esdhc_send_cmd_common()
469 while (esdhc_read32(&regs->prsstat) & PRSSTAT_DLA) in esdhc_send_cmd_common()
492 (esdhc_read32(&regs->mixctrl) & 0xFFFFFF80) | (xfertyp & 0x7F) in esdhc_send_cmd_common()
505 while (!(esdhc_read32(&regs->irqstat) & flags)) { in esdhc_send_cmd_common()
512 irqstat = esdhc_read32(&regs->irqstat); in esdhc_send_cmd_common()
538 while (timeout > 0 && !(esdhc_read32(&regs->prsstat) & in esdhc_send_cmd_common()
555 cmdrsp3 = esdhc_read32(&regs->cmdrsp3); in esdhc_send_cmd_common()
556 cmdrsp2 = esdhc_read32(&regs->cmdrsp2); in esdhc_send_cmd_common()
557 cmdrsp1 = esdhc_read32(&regs->cmdrsp1); in esdhc_send_cmd_common()
558 cmdrsp0 = esdhc_read32(&regs->cmdrsp0); in esdhc_send_cmd_common()
564 cmd->response[0] = esdhc_read32(&regs->cmdrsp0); in esdhc_send_cmd_common()
578 irqstat = esdhc_read32(&regs->irqstat); in esdhc_send_cmd_common()
608 esdhc_write32(&regs->sysctl, esdhc_read32(&regs->sysctl) | in esdhc_send_cmd_common()
610 while (esdhc_read32(&regs->sysctl) & SYSCTL_RSTC) in esdhc_send_cmd_common()
615 esdhc_read32(&regs->sysctl) | in esdhc_send_cmd_common()
617 while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTD)) in esdhc_send_cmd_common()
670 ret = readx_poll_timeout(esdhc_read32, &regs->prsstat, tmp, tmp & PRSSTAT_SDSTB, 100); in set_sysctl()
744 val = esdhc_read32(&regs->strobe_dllstat); in esdhc_set_strobe_dll()
758 mixctrl = esdhc_read32(&regs->mixctrl); in esdhc_set_timing()
822 if (!(esdhc_read32(&regs->vendorspec) & in esdhc_set_voltage()
838 if (esdhc_read32(&regs->vendorspec) & ESDHC_VENDORSPEC_VSELECT) in esdhc_set_voltage()
866 u32 irqstaten = esdhc_read32(&regs->irqstaten); in fsl_esdhc_execute_tuning()
867 u32 irqsigen = esdhc_read32(&regs->irqsigen); in fsl_esdhc_execute_tuning()
877 val = esdhc_read32(&regs->autoc12err); in fsl_esdhc_execute_tuning()
878 mixctrl = esdhc_read32(&regs->mixctrl); in fsl_esdhc_execute_tuning()
890 mixctrl = esdhc_read32(&regs->mixctrl); in fsl_esdhc_execute_tuning()
914 val = esdhc_read32(&regs->mixctrl); in fsl_esdhc_execute_tuning()
921 ctrl = esdhc_read32(&regs->autoc12err); in fsl_esdhc_execute_tuning()
1024 while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTA)) { in esdhc_init_common()
1099 while (!(esdhc_read32(&regs->prsstat) & PRSSTAT_CINS) && --timeout) in esdhc_getcd_common()
1114 while ((esdhc_read32(&regs->sysctl) & SYSCTL_RSTA)) { in esdhc_reset()
1207 caps = esdhc_read32(&regs->hostcapblt); in fsl_esdhc_init()
1284 u32 val = esdhc_read32(&regs->tuning_ctrl); in fsl_esdhc_init()
1666 m = esdhc_read32(&regs->mixctrl); in fsl_esdhc_set_enhanced_strobe()
1682 ret = readx_poll_timeout(esdhc_read32, &regs->prsstat, tmp, in fsl_esdhc_wait_dat0()