Lines Matching defs:state
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);
142 static int omap2_onenand_wait(struct mtd_info *mtd, int state)
151 if (state == FL_RESETTING || state == FL_PREPARING_ERASE ||
152 state == FL_VERIFYING_ERASE) {
156 switch (state) {
176 wait_err("controller error", state, ctrl, intr);
184 if (state != FL_READING) {
201 wait_err("gpio error", state, ctrl, intr);
221 wait_err("timeout", state, ctrl, intr);
226 wait_warn("timeout", state, ctrl, intr);
287 } else if (state == FL_READING) {
288 wait_err("timeout", state, ctrl, intr);
293 wait_err("controller error", state, ctrl, intr);
305 wait_warn("unexpected controller status", state, ctrl, intr);