Searched refs:wrote (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/mtdutils/ |
D | flash_image.c | 103 int wrote = mtd_write_data(out, buf, headerlen); in main() local 104 if (wrote != headerlen) die("error writing %s", argv[1]); in main() 108 wrote = mtd_write_data(out, buf, len); in main() 109 if (wrote != len) die("error writing %s", argv[1]); in main() 120 wrote = mtd_write_data(out, header, headerlen); in main() 121 if (wrote != headerlen) die("error re-writing %s", argv[1]); in main()
|
D | mtdutils.c | 480 size_t wrote = 0; in mtd_write_data() local 481 while (wrote < len) { in mtd_write_data() 483 if (ctx->stored > 0 || len - wrote < ctx->partition->erase_size) { in mtd_write_data() 485 size_t copy = len - wrote < avail ? len - wrote : avail; in mtd_write_data() 486 memcpy(ctx->buffer + ctx->stored, data + wrote, copy); in mtd_write_data() 488 wrote += copy; in mtd_write_data() 498 while (ctx->stored == 0 && len - wrote >= ctx->partition->erase_size) { in mtd_write_data() 499 if (write_block(ctx, data + wrote)) return -1; in mtd_write_data() 500 wrote += ctx->partition->erase_size; in mtd_write_data() 504 return wrote; in mtd_write_data()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 76 ssize_t wrote = TEMP_FAILURE_RETRY(write(wfd, buffer + written, size - written)); in write_at_offset() local 77 if (wrote == -1) { in write_at_offset() 81 written += wrote; in write_at_offset()
|
/bootable/recovery/applypatch/ |
D | applypatch.c | 629 ssize_t wrote; in FileSink() local 631 wrote = TEMP_FAILURE_RETRY(write(fd, data+done, len-done)); in FileSink() 632 if (wrote == -1) { in FileSink() 636 done += wrote; in FileSink()
|
/bootable/recovery/updater/ |
D | install.c | 1098 int wrote = mtd_write_data(ctx, buffer, read); in WriteRawImageFn() local 1099 success = success && (wrote == read); in WriteRawImageFn() 1105 ssize_t wrote = mtd_write_data(ctx, contents->data, contents->size); in WriteRawImageFn() local 1106 success = (wrote == contents->size); in WriteRawImageFn()
|