Lines Matching defs:erase_info
214 erase_info_t erase_info;
224 fprintf(fp, "log : %d %d %s", erase_info.start, erase_info.length, log);
247 erase_info.start=0;
248 erase_info.length=mtd_info.erasesize;
252 if (!(flashblock = malloc(erase_info.length))) {
260 if ((mtd_count+(count-offset))>=erase_info.length)
262 memcpy(flashblock+mtd_count, buf+offset, erase_info.length-mtd_count);
263 offset+=(erase_info.length-mtd_count);
264 mtd_count=erase_info.length;
273 (void) ioctl(mtd_fd, MEMUNLOCK, &erase_info);
274 if (ioctl(mtd_fd, MEMERASE, &erase_info) != 0 ||
279 erase_info.start+=mtd_count;