Searched refs:read (Results 1 – 13 of 13) sorted by relevance
/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/ |
D | recovery-persist.cpp | 164 ssize_t read; in main() local 165 while ((read = getline(&line, &len, fp)) != -1) { in main()
|
D | fuse_sdcard_provider.cpp | 45 ssize_t r = TEMP_FAILURE_RETRY(read(fd->fd, buffer, fetch_size)); in read_block_file()
|
D | wear_touch.cpp | 113 while (read(fd, &event, sizeof(event)) == sizeof(event)) { in run()
|
D | ui.cpp | 256 int connected = (TEMP_FAILURE_RETRY(read(fd, &buf, 1)) == 1) && (buf == 'C'); in IsUsbConnected()
|
D | fuse_sideload.cpp | 443 ssize_t len = TEMP_FAILURE_RETRY(read(fd.ffd, request_buffer, sizeof(request_buffer))); in run_fuse_sideload()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 195 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/ |
D | fuse_adb_provider_test.cpp | 67 ASSERT_EQ(-1, read(host_socket, &tmp, 1)); in TEST()
|
/bootable/recovery/tests/unit/ |
D | recovery_test.cpp | 83 ret = read(fd, buf, sizeof(buf)); in TEST()
|
/bootable/recovery/otafault/ |
D | ota_io.cpp | 113 ssize_t status = read(fd, buf, nbyte); in ota_read()
|
/bootable/recovery/minui/ |
D | events.cpp | 169 ssize_t r = TEMP_FAILURE_RETRY(read(fd, ev, sizeof(*ev))); in ev_get_input()
|
/bootable/recovery/updater/ |
D | install.cpp | 1127 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()
|