Searched defs:read (Results 1 - 6 of 6) sorted by relevance

/bootable/recovery/
H A Dbootloader.cpp81 MtdReadContext *read = mtd_read_partition(part); local
82 if (read == NULL) {
89 ssize_t r = mtd_read_data(read, data, size);
90 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno));
91 mtd_read_close(read);
107 MtdReadContext *read = mtd_read_partition(part); local
108 if (read == NULL) {
115 ssize_t r = mtd_read_data(read, data, size);
116 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno));
117 mtd_read_close(read);
[all...]
/bootable/recovery/minadbd/
H A Dusb_linux_client.c47 int (*read)(usb_handle *h, void *data, int len); member in struct:usb_handle
206 D("about to read (fd=%d, len=%d)\n", h->fd, len);
238 h->read = usb_adb_read;
407 D("about to read (fd=%d, len=%d)\n", h->bulk_out, len);
451 h->read = usb_ffs_read;
482 return h->read(h, data, len);
H A Dsysdeps.h94 /* unlink returns EACCES when the file is read-only, so we first */
129 return read(fd, buf, len);
131 #undef read macro
132 #define read ___xxx_read macro
368 return read(fd, buf, len);
371 #undef read macro
372 #define read ___xxx_read macro
/bootable/recovery/mtdutils/
H A Dmtdutils.c105 /* Open and read the file contents.
111 nbytes = read(fd, buf, sizeof(buf) - 1);
210 printf("Mount %s on %s read-only\n", devname, mount_point);
302 if (lseek64(fd, pos, SEEK_SET) != pos || read(fd, data, size) != size) {
303 printf("mtd: read error at 0x%08llx (%s)\n",
312 // copy the comparison baseline for the next read.
331 size_t read = 0; local
332 while (read < len) {
335 size_t copy = len - read < avail ? len - read
[all...]
/bootable/recovery/applypatch/
H A Dapplypatch.c80 printf("short read of \"%s\" (%ld bytes of %ld)\n",
118 // the length in order to read from a partition (there is no
193 printf("failed to initialize read of mtd partition \"%s\"\n",
215 file->size = 0; // # bytes read so far
222 size_t read = 0; local
226 read = mtd_read_data(ctx, p, next);
230 read = fread(p, 1, next, dev);
233 if (next != read) {
234 printf("short read (%zu bytes of %zu) for partition \"%s\"\n",
235 read, nex
[all...]
/bootable/recovery/updater/
H A Dinstall.c977 ErrorAbort(state, "%s: failed to read %lld bytes from %s",
1095 int read; local
1096 while (success && (read = fread(buffer, 1, BUFSIZ, f)) > 0) {
1097 int wrote = mtd_write_data(ctx, buffer, read);
1098 success = success && (wrote == read);

Completed in 182 milliseconds