Lines Matching full:erase
88 /* We know the erase size so we can allocate the flash_erased bytemap */ in init_flash_dev()
93 MSG_DBG("Flash erase size: 0x%.8x\n", context->mtd_info.erasesize); in init_flash_dev()
129 * The flash bytemap only tracks the erased status at the erase block level so
130 * this will update the erased state for an (or many) erase blocks
152 * erase_flash() - Erase the flash
154 * @offset: The flash offset to erase (bytes)
155 * @size: The number of bytes to erase
165 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", offset, count); in erase_flash()
170 * which aren't erased and erase the entire run at once to avoid how in erase_flash()
171 * often we have to call the erase ioctl. If the block is already in erase_flash()
175 if (!flash_is_erased(context, offset)) { /* Need to erase */ in erase_flash()
181 /* Erase the previous run which just ended */ in erase_flash()
182 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", in erase_flash()
187 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in erase_flash()
203 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", in erase_flash()
207 MSG_ERR("Couldn't erase flash at 0x%.8x\n", in erase_flash()