Lines Matching full:erase
26 * - sector erase
27 * - chip erase
199 * Returns the time it takes to erase the number of sectors scheduled for
201 * block erase 2^N ms."
206 * If there are no sectors to erase (which can happen if all of the sectors in pflash_erase_time()
207 * to be erased are protected), then erase takes 100 us. Protected sectors in pflash_erase_time()
214 * Returns true if the device is currently in erase suspend mode.
228 * Sector erase. If DQ3 is 0 when the timer expires, then the 50 in pflash_timer()
229 * us erase timeout has expired so we need to start the timer for the in pflash_timer()
230 * sector erase algorithm. Otherwise, the erase completed and we should in pflash_timer()
331 case 0x80: /* Erase (unlock) */ in pflash_read()
367 case 0x10: /* Chip Erase */ in pflash_read()
368 case 0x30: /* Sector Erase */ in pflash_read()
369 /* Toggle bit 2 during erase, but not program. */ in pflash_read()
427 /* Set (or reset) the 50 us timer for additional erase commands. */ in pflash_sector_erase()
442 /* Reset does nothing during chip erase and sector erase. */ in pflash_write()
479 /* Handle erase resume in erase suspend mode, otherwise reset. */ in pflash_write()
480 if (cmd == 0x30) { /* Erase Resume */ in pflash_write()
482 /* Resume the erase. */ in pflash_write()
494 /* Ignore erase suspend. */ in pflash_write()
495 if (cmd == 0xB0) { /* Erase Suspend */ in pflash_write()
524 case 0x80: /* Erase */ in pflash_write()
537 case 0x80: /* Erase */ in pflash_write()
596 case 0x80: /* Erase */ in pflash_write()
606 /* Erasing is not supported in erase suspend mode. */ in pflash_write()
610 case 0x10: /* Chip Erase */ in pflash_write()
615 /* Chip erase */ in pflash_write()
626 case 0x30: /* Sector erase */ in pflash_write()
637 case 0x10: /* Chip Erase */ in pflash_write()
638 /* Ignore writes during chip erase */ in pflash_write()
640 case 0x30: /* Sector erase */ in pflash_write()
643 * If erase suspend happens during the erase timeout (so DQ3 is in pflash_write()
645 * remaining time to be the total time to erase. Otherwise, in pflash_write()
665 * If DQ3 is 0, additional sector erase commands can be in pflash_write()
666 * written and anything else (other than an erase suspend) resets in pflash_write()
676 /* Ignore writes during the actual erase. */ in pflash_write()
749 /* Typical timeout for block erase (512 ms) */ in pflash_cfi02_fill_cfi_table()
751 /* Typical timeout for full chip erase (4096 ms) */ in pflash_cfi02_fill_cfi_table()
757 /* Max timeout for block erase */ in pflash_cfi02_fill_cfi_table()
759 /* Max timeout for chip erase */ in pflash_cfi02_fill_cfi_table()
773 /* Number of erase block regions */ in pflash_cfi02_fill_cfi_table()
775 /* Erase block regions */ in pflash_cfi02_fill_cfi_table()
796 /* Erase suspend to read/write. */ in pflash_cfi02_fill_cfi_table()