Lines Matching defs:erase_info
73 erase_info_t erase_info;
88 erase_info.length = mtd_info.erasesize;
90 for (erase_info.start = 0;
91 erase_info.start < mtd_info.size;
92 erase_info.start += mtd_info.erasesize) {
93 (void) ioctl(mtd_fd, MEMUNLOCK, &erase_info);
94 if (ioctl(mtd_fd, MEMERASE, &erase_info) != 0) {
118 erase_info_t erase_info;
157 erase_info.length = ROUNDUP(trx.len, mtd_info.erasesize);
158 if (!(buf = malloc(erase_info.length)))
159 erase_info.length = mtd_info.erasesize;
163 erase_info.length = mtd_info.erasesize;
166 if (!buf && (!(buf = malloc(erase_info.length)))) {
180 for (erase_info.start = 0; erase_info.start < trx.len; erase_info.start += count) {
181 len = MIN(erase_info.length, trx.len - erase_info.start);
182 if ((trx.flag_version & TRX_NO_HEADER) || erase_info.start)
191 count += http_get(path, &buf[off], len - off, erase_info.start + off);
207 (void) ioctl(mtd_fd, MEMUNLOCK, &erase_info);
208 if (ioctl(mtd_fd, MEMERASE, &erase_info) != 0 ||