Home
last modified time | relevance | path

Searched refs:read (Results 1 – 12 of 12) sorted by relevance

/bootable/recovery/
Dbootloader.cpp81 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()
Dfuse_sdcard_provider.c46 ssize_t r = TEMP_FAILURE_RETRY(read(fd->fd, buffer, fetch_size)); in read_block_file()
Dui.cpp254 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
Dfuse_sideload.c445 ssize_t len = TEMP_FAILURE_RETRY(read(fd.ffd, request_buffer, sizeof(request_buffer))); in run_fuse_sideload()
/bootable/recovery/mtdutils/
Dmtdutils.c111 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 …]
Dflash_image.c75 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/
Dapplypatch.c222 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/
Dfuse_adb_provider_test.cpp67 ASSERT_EQ(-1, read(host_socket, &tmp, 1)); in TEST()
/bootable/recovery/minui/
Devents.cpp169 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
/bootable/recovery/uncrypt/
Duncrypt.cpp269 … TEMP_FAILURE_RETRY(read(fd, buffers[tail] + so_far, sb.st_blksize - so_far)); in produce_block_map()
/bootable/recovery/updater/
Dinstall.c1096 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()
Dblockimg.c117 ssize_t r = TEMP_FAILURE_RETRY(read(fd, data+so_far, size-so_far)); in read_all()