Lines Matching defs:state
114 unsigned int state, flags = INTSTATEN_CC | INTSTATEN_CTOE;
124 state = mmio_read_32(reg_base + PSTATE);
125 } while (state & (PSTATE_CDIHB | PSTATE_CIHB));
189 state = mmio_read_32(reg_base + INTSTAT);
192 } while ((!(state & flags)) && ++cmd_retries < FSL_CMD_RETRIES);
194 if ((state & (INTSTATEN_CTOE | CMD_ERR)) || cmd_retries == FSL_CMD_RETRIES) {
199 ERROR("imx_usdhc mmc cmd %d state 0x%x errno=%d\n",
200 cmd->cmd_idx, state, err);
224 state = mmio_read_32(reg_base + INTSTAT);
226 if (state & (INTSTATEN_DTOE | DATA_ERR)) {
228 ERROR("imx_usdhc mmc data state 0x%x\n", state);
231 } while ((state & flags) != flags);