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