Lines Matching refs:intr
93 static void wait_err(char *msg, int state, unsigned int ctrl, unsigned int intr) in wait_err() argument
96 msg, state, ctrl, intr); in wait_err()
100 unsigned int intr) in wait_warn() argument
103 "intr 0x%04x\n", msg, state, ctrl, intr); in wait_warn()
110 unsigned int intr = 0; in omap2_onenand_wait() local
134 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
135 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait()
140 wait_err("controller error", state, ctrl, intr); in omap2_onenand_wait()
143 if ((intr & intr_flags) == intr_flags) in omap2_onenand_wait()
166 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
167 wait_err("gpio error", state, ctrl, intr); in omap2_onenand_wait()
189 intr = read_reg(c, in omap2_onenand_wait()
191 wait_err("timeout", state, ctrl, intr); in omap2_onenand_wait()
194 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
195 if ((intr & ONENAND_INT_MASTER) == 0) in omap2_onenand_wait()
196 wait_warn("timeout", state, ctrl, intr); in omap2_onenand_wait()
210 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
211 if (intr & ONENAND_INT_MASTER) in omap2_onenand_wait()
233 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait()
236 if (intr & ONENAND_INT_READ) { in omap2_onenand_wait()
258 wait_err("timeout", state, ctrl, intr); in omap2_onenand_wait()
263 wait_err("controller error", state, ctrl, intr); in omap2_onenand_wait()
275 wait_warn("unexpected controller status", state, ctrl, intr); in omap2_onenand_wait()