Home
last modified time | relevance | path

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

/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/
Drecovery-persist.cpp164 ssize_t read; in main() local
165 while ((read = getline(&line, &len, fp)) != -1) { in main()
Dfuse_sdcard_provider.cpp45 ssize_t r = TEMP_FAILURE_RETRY(read(fd->fd, buffer, fetch_size)); in read_block_file()
Dwear_touch.cpp113 while (read(fd, &event, sizeof(event)) == sizeof(event)) { in run()
Dui.cpp256 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
Dfuse_sideload.cpp443 ssize_t len = TEMP_FAILURE_RETRY(read(fd.ffd, request_buffer, sizeof(request_buffer))); in run_fuse_sideload()
/bootable/recovery/applypatch/
Dapplypatch.cpp195 size_t read = 0; in LoadPartitionContents() local
198 read = mtd_read_data(ctx, p, next); in LoadPartitionContents()
202 read = ota_fread(p, 1, next, dev); in LoadPartitionContents()
205 if (next != read) { in LoadPartitionContents()
207 read, next, partition); in LoadPartitionContents()
210 SHA1_Update(&sha_ctx, p, read); in LoadPartitionContents()
211 data_size += read; in LoadPartitionContents()
212 p += read; in LoadPartitionContents()
/bootable/recovery/minadbd/
Dfuse_adb_provider_test.cpp67 ASSERT_EQ(-1, read(host_socket, &tmp, 1)); in TEST()
/bootable/recovery/tests/unit/
Drecovery_test.cpp83 ret = read(fd, buf, sizeof(buf)); in TEST()
/bootable/recovery/otafault/
Dota_io.cpp113 ssize_t status = read(fd, buf, nbyte); in ota_read()
/bootable/recovery/minui/
Devents.cpp169 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
/bootable/recovery/updater/
Dinstall.cpp1127 int read; in WriteRawImageFn() local
1128 while (success && (read = ota_fread(buffer, 1, BUFSIZ, f)) > 0) { in WriteRawImageFn()
1129 int wrote = mtd_write_data(ctx, buffer, read); in WriteRawImageFn()
1130 success = success && (wrote == read); in WriteRawImageFn()