Lines Matching refs:intr

129 static void wait_err(char *msg, int state, unsigned int ctrl, unsigned int intr)  in wait_err()  argument
132 msg, state, ctrl, intr); in wait_err()
136 unsigned int intr) in wait_warn() argument
139 "intr 0x%04x\n", msg, state, ctrl, intr); in wait_warn()
146 unsigned int intr = 0; in omap2_onenand_wait() local
170 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
171 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait()
176 wait_err("controller error", state, ctrl, intr); in omap2_onenand_wait()
179 if ((intr & intr_flags) == intr_flags) in omap2_onenand_wait()
200 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
201 wait_err("gpio error", state, ctrl, intr); in omap2_onenand_wait()
219 intr = read_reg(c, in omap2_onenand_wait()
221 wait_err("timeout", state, ctrl, intr); in omap2_onenand_wait()
224 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
225 if ((intr & ONENAND_INT_MASTER) == 0) in omap2_onenand_wait()
226 wait_warn("timeout", state, ctrl, intr); in omap2_onenand_wait()
240 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
241 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait()
263 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
266 if (intr & ONENAND_INT_READ) { in omap2_onenand_wait()
288 wait_err("timeout", state, ctrl, intr); in omap2_onenand_wait()
293 wait_err("controller error", state, ctrl, intr); in omap2_onenand_wait()
305 wait_warn("unexpected controller status", state, ctrl, intr); in omap2_onenand_wait()