Home
last modified time | relevance | path

Searched refs:wrote (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/mtdutils/
Dflash_image.c103 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()
Dmtdutils.c480 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/applypatch/
Dapplypatch.cpp568 ssize_t wrote; in FileSink() local
570 wrote = TEMP_FAILURE_RETRY(ota_write(fd, data+done, len-done)); in FileSink()
571 if (wrote == -1) { in FileSink()
575 done += wrote; in FileSink()
/bootable/recovery/updater/
Dinstall.cpp1129 int wrote = mtd_write_data(ctx, buffer, read); in WriteRawImageFn() local
1130 success = success && (wrote == read); in WriteRawImageFn()
1136 ssize_t wrote = mtd_write_data(ctx, contents->data, contents->size); in WriteRawImageFn() local
1137 success = (wrote == contents->size); in WriteRawImageFn()