/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 | fuse_sdcard_provider.c | 46 ssize_t r = TEMP_FAILURE_RETRY(read(fd->fd, buffer, fetch_size)); in read_block_file()
|
D | ui.cpp | 254 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
|
D | fuse_sideload.c | 445 ssize_t len = TEMP_FAILURE_RETRY(read(fd.ffd, request_buffer, sizeof(request_buffer))); in run_fuse_sideload()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.c | 111 nbytes = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf) - 1)); in mtd_scan_partitions() 301 TEMP_FAILURE_RETRY(read(fd, data, size)) != size) { in read_block() 330 size_t read = 0; in mtd_read_data() local 331 while (read < len) { in mtd_read_data() 334 size_t copy = len - read < avail ? len - read : avail; in mtd_read_data() 335 memcpy(data + read, ctx->buffer + ctx->consumed, copy); in mtd_read_data() 337 read += copy; in mtd_read_data() 342 len - read >= ctx->partition->erase_size) { in mtd_read_data() 343 if (read_block(ctx->partition, ctx->fd, data + read)) return -1; in mtd_read_data() 344 read += ctx->partition->erase_size; in mtd_read_data() [all …]
|
D | flash_image.c | 75 int headerlen = TEMP_FAILURE_RETRY(read(fd, header, sizeof(header))); in main() 107 while ((len = TEMP_FAILURE_RETRY(read(fd, buf, sizeof(buf)))) > 0) { in main() 134 len = TEMP_FAILURE_RETRY(read(fd, buf, left > (int)sizeof(buf) ? (int)sizeof(buf) : left)); in main()
|
/bootable/recovery/applypatch/ |
D | applypatch.c | 222 size_t read = 0; in LoadPartitionContents() local 226 read = mtd_read_data(ctx, p, next); in LoadPartitionContents() 230 read = fread(p, 1, next, dev); in LoadPartitionContents() 233 if (next != read) { in LoadPartitionContents() 235 read, next, partition); in LoadPartitionContents() 240 SHA_update(&sha_ctx, p, read); in LoadPartitionContents() 241 file->size += read; in LoadPartitionContents() 266 p += read; in LoadPartitionContents() 486 TEMP_FAILURE_RETRY(read(fd, buffer+so_far, to_read-so_far)); in WriteToPartition()
|
/bootable/recovery/minadbd/ |
D | fuse_adb_provider_test.cpp | 67 ASSERT_EQ(-1, read(host_socket, &tmp, 1)); in TEST()
|
/bootable/recovery/minui/ |
D | events.cpp | 169 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 269 … TEMP_FAILURE_RETRY(read(fd, buffers[tail] + so_far, sb.st_blksize - so_far)); in produce_block_map()
|
/bootable/recovery/updater/ |
D | install.c | 1096 int read; in WriteRawImageFn() local 1097 while (success && (read = fread(buffer, 1, BUFSIZ, f)) > 0) { in WriteRawImageFn() 1098 int wrote = mtd_write_data(ctx, buffer, read); in WriteRawImageFn() 1099 success = success && (wrote == read); in WriteRawImageFn()
|
D | blockimg.c | 117 ssize_t r = TEMP_FAILURE_RETRY(read(fd, data+so_far, size-so_far)); in read_all()
|