/bootable/recovery/ |
D | bootloader.cpp | 81 MtdReadContext *read = mtd_read_partition(part); in get_bootloader_message_mtd() local 82 if (read == NULL) { in get_bootloader_message_mtd() 89 ssize_t r = mtd_read_data(read, data, size); in get_bootloader_message_mtd() 91 mtd_read_close(read); in get_bootloader_message_mtd() 107 MtdReadContext *read = mtd_read_partition(part); in set_bootloader_message_mtd() local 108 if (read == NULL) { in set_bootloader_message_mtd() 115 ssize_t r = mtd_read_data(read, data, size); in set_bootloader_message_mtd() 117 mtd_read_close(read); in set_bootloader_message_mtd()
|
D | ui.cpp | 217 int connected = (read(fd, &buf, 1) == 1) && (buf == 'C'); in usb_connected()
|
D | recovery.cpp | 400 size_t read; in copy_sideloaded_package() local 412 while ((read = fread(buffer, 1, BUFSIZ, fin)) > 0) { in copy_sideloaded_package() 413 if (fwrite(buffer, 1, read, fout) != read) { in copy_sideloaded_package()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.c | 111 nbytes = read(fd, buf, sizeof(buf) - 1); in mtd_scan_partitions() 302 if (lseek64(fd, pos, SEEK_SET) != pos || read(fd, data, size) != size) { in read_block() 331 size_t read = 0; in mtd_read_data() local 332 while (read < len) { in mtd_read_data() 335 size_t copy = len - read < avail ? len - read : avail; in mtd_read_data() 336 memcpy(data + read, ctx->buffer + ctx->consumed, copy); in mtd_read_data() 338 read += copy; in mtd_read_data() 343 len - read >= ctx->partition->erase_size) { in mtd_read_data() 344 if (read_block(ctx->partition, ctx->fd, data + read)) return -1; in mtd_read_data() 345 read += ctx->partition->erase_size; in mtd_read_data() [all …]
|
D | flash_image.c | 72 int headerlen = read(fd, header, sizeof(header)); in main() 104 while ((len = read(fd, buf, sizeof(buf))) > 0) { in main() 131 len = read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left); in main()
|
D | mounts.c | 93 nbytes = read(fd, buf, sizeof(buf) - 1); in scan_mounted_volumes()
|
/bootable/recovery/minadbd/ |
D | sysdeps.h | 129 return read(fd, buf, len); in unix_read() 131 #undef read 132 #define read ___xxx_read macro 368 return read(fd, buf, len); in adb_read() 371 #undef read 372 #define read ___xxx_read macro
|
D | services.c | 93 r = read(fd, buf, 4096);
|
/bootable/recovery/applypatch/ |
D | applypatch.c | 238 size_t read = 0; in LoadPartitionContents() local 242 read = mtd_read_data(ctx, p, next); in LoadPartitionContents() 246 read = fread(p, 1, next, dev); in LoadPartitionContents() 249 if (next != read) { in LoadPartitionContents() 251 read, next, partition); in LoadPartitionContents() 256 SHA_update(&sha_ctx, p, read); in LoadPartitionContents() 257 file->size += read; in LoadPartitionContents() 282 p += read; in LoadPartitionContents() 480 ssize_t read_count = read(fd, buffer+so_far, to_read-so_far); in WriteToPartition()
|
/bootable/recovery/minui/ |
D | events.c | 140 r = read(fd, ev, sizeof(*ev)); in ev_get_input()
|
/bootable/recovery/minzip/ |
D | SysUtil.c | 101 actual = TEMP_FAILURE_RETRY(read(fd, memPtr, length)); in sysLoadFileInShmem()
|
D | Zip.c | 542 n = read(pArchive->fd, buf, count); in processStoredEntry() 608 int cc = read(pArchive->fd, readBuf, getSize); in processDeflatedEntry()
|
/bootable/recovery/updater/ |
D | install.c | 783 int read; in WriteRawImageFn() local 784 while (success && (read = fread(buffer, 1, BUFSIZ, f)) > 0) { in WriteRawImageFn() 785 int wrote = mtd_write_data(ctx, buffer, read); in WriteRawImageFn() 786 success = success && (wrote == read); in WriteRawImageFn()
|