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