Lines Matching refs:chipstatus
1599 unsigned long chipstatus = MERGESTATUS(status); in do_write_oneword() local
1606 if (chipstatus & 0x02) { in do_write_oneword()
1608 } else if (chipstatus & 0x08) { in do_write_oneword()
1612 printk(KERN_ERR "%s: word write error (status 0x%lx)\n", map->name, chipstatus); in do_write_oneword()
1845 unsigned long chipstatus = MERGESTATUS(status); in do_write_buffer() local
1852 if (chipstatus & 0x02) { in do_write_buffer()
1854 } else if (chipstatus & 0x08) { in do_write_buffer()
1858 printk(KERN_ERR "%s: buffer write error (status 0x%lx)\n", map->name, chipstatus); in do_write_buffer()
1987 unsigned long chipstatus = MERGESTATUS(status); in do_erase_oneblock() local
1994 if ((chipstatus & 0x30) == 0x30) { in do_erase_oneblock()
1995 …k(KERN_ERR "%s: block erase error: (bad command sequence, status 0x%lx)\n", map->name, chipstatus); in do_erase_oneblock()
1997 } else if (chipstatus & 0x02) { in do_erase_oneblock()
2000 } else if (chipstatus & 0x8) { in do_erase_oneblock()
2004 } else if (chipstatus & 0x20 && retries--) { in do_erase_oneblock()
2005 printk(KERN_DEBUG "block erase failed at 0x%08lx: status 0x%lx. Retrying...\n", adr, chipstatus); in do_erase_oneblock()
2011 … printk(KERN_ERR "%s: block erase failed at 0x%08lx (status 0x%lx)\n", map->name, adr, chipstatus); in do_erase_oneblock()