Lines Matching full:erase
98 /* We know the erase size so we can allocate the flash_erased bytemap */ in mtd_dev_init()
104 MSG_DBG("Flash erase size: 0x%.8x\n", priv->mtd_info.erasesize); in mtd_dev_init()
158 * The flash bytemap only tracks the erased status at the erase block level so
159 * this will update the erased state for an (or many) erase blocks
183 * mtd_erase() - Erase the flash
185 * @offset: The flash offset to erase (bytes)
186 * @size: The number of bytes to erase
197 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", offset, count); in mtd_erase()
202 * which aren't erased and erase the entire run at once to avoid how in mtd_erase()
203 * often we have to call the erase ioctl. If the block is already in mtd_erase()
207 if (!mtd_is_erased(backend, offset)) { /* Need to erase */ in mtd_erase()
213 /* Erase the previous run which just ended */ in mtd_erase()
214 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", in mtd_erase()
218 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in mtd_erase()
234 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", erase_info.start, in mtd_erase()
238 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in mtd_erase()
353 .erase = mtd_erase,