Lines Matching refs:ctrl
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);
135 static void wait_warn(char *msg, int state, unsigned int ctrl,
138 printk(KERN_WARNING "onenand_wait: %s! state %d ctrl 0x%04x "
139 "intr 0x%04x\n", msg, state, ctrl, intr);
147 unsigned int ctrl, ctrl_mask;
174 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS);
175 if (ctrl & ONENAND_CTRL_ERROR) {
176 wait_err("controller error", state, ctrl, intr);
199 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS);
201 wait_err("gpio error", state, ctrl, intr);
209 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS);
210 if (ctrl & ONENAND_CTRL_ONGO &&
221 wait_err("timeout", state, ctrl, intr);
226 wait_warn("timeout", state, ctrl, intr);
245 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS);
246 if (ctrl & ONENAND_CTRL_ONGO) {
264 ctrl = read_reg(c, ONENAND_REG_CTRL_STATUS);
288 wait_err("timeout", state, ctrl, intr);
292 if (ctrl & ONENAND_CTRL_ERROR) {
293 wait_err("controller error", state, ctrl, intr);
294 if (ctrl & ONENAND_CTRL_LOCK)
304 if (ctrl & ctrl_mask)
305 wait_warn("unexpected controller status", state, ctrl, intr);