Searched defs:write (Results 1 - 5 of 5) sorted by relevance

/bootable/recovery/
H A Dbootloader.cpp122 MtdWriteContext *write = mtd_write_partition(part); local
123 if (write == NULL) {
127 if (mtd_write_data(write, data, size) != size) {
128 LOGE("Can't write %s\n(%s)\n", v->blk_device, strerror(errno));
129 mtd_write_close(write);
132 if (mtd_write_close(write)) {
H A Droots.cpp200 MtdWriteContext *write = mtd_write_partition(partition); local
201 if (write == NULL) {
204 } else if (mtd_erase_blocks(write, -1) == (off_t) -1) {
206 mtd_write_close(write);
208 } else if (mtd_write_close(write)) {
296 write(fd, &oem_unlock_enabled, 1);
/bootable/recovery/mtdutils/
H A Dflash_image.c52 /* Read an image file and write it to a flash partition. */
56 MtdWriteContext *write; local
95 // Skip the header (we'll come back to it), write everything else
115 // Now come back and write the header last
123 // Need to write a complete block, so write the rest of the first block
/bootable/recovery/minadbd/
H A Dusb_linux_client.c46 int (*write)(usb_handle *h, const void *data, int len); member in struct:usb_handle
191 D("about to write (fd=%d, len=%d)\n", h->fd, len);
237 h->write = usb_adb_write;
280 D("[ %s: write descriptors failed: errno=%d ]\n", USB_FFS_ADB_EP0, errno);
371 D("about to write (fd=%d, len=%d)\n", h->bulk_in, len);
450 h->write = usb_ffs_write;
477 return h->write(h, data, len);
H A Dsysdeps.h136 return write(fd, buf, len);
138 #undef write macro
139 #define write ___xxx_write macro
376 return write(fd, buf, len);
378 #undef write macro
379 #define write ___xxx_write macro

Completed in 118 milliseconds