• Home
  • Raw
  • Download

Lines Matching refs:data

94     void *data;  member
174 char *data; in load_fd() local
178 data = 0; in load_fd()
185 data = (char*) malloc(sz); in load_fd()
186 if(data == 0) goto oops; in load_fd()
188 if(read(fd, data, sz) != sz) goto oops; in load_fd()
192 return data; in load_fd()
197 if(data != 0) free(data); in load_fd()
388 void *data; in unzip_file() local
401 data = malloc(datasz); in unzip_file()
403 if(data == 0) { in unzip_file()
408 if (decompress_zipentry(entry, data, datasz)) { in unzip_file()
410 free(data); in unzip_file()
414 return data; in unzip_file()
420 char *data; in unzip_to_file() local
428 data = unzip_file(zip, name, &sz); in unzip_to_file()
429 if (data == 0) { in unzip_to_file()
433 if (write(fd, data, sz) != sz) { in unzip_to_file()
437 free(data); in unzip_to_file()
513 static void setup_requirements(char *data, unsigned sz) in setup_requirements() argument
517 s = data; in setup_requirements()
521 if (setup_requirement_line(data)) { in setup_requirements()
524 data = s; in setup_requirements()
628 void *data; in load_buf_fd() local
642 buf->data = s; in load_buf_fd()
645 data = load_fd(fd, &sz); in load_buf_fd()
646 if (data == 0) return -1; in load_buf_fd()
648 buf->data = data; in load_buf_fd()
674 s = buf->data; in flash_buf()
681 fb_queue_flash(pname, buf->data, buf->sz); in flash_buf()
700 void *data; in do_update_signature() local
702 data = unzip_file(zip, fn, &sz); in do_update_signature()
703 if (data == 0) return; in do_update_signature()
704 fb_queue_download("signature", data, sz); in do_update_signature()
712 void *data; in do_update() local
730 data = unzip_file(zip, "android-info.txt", &sz); in do_update()
731 if (data == 0) { in do_update()
734 data = unzip_file(zip, "android-product.txt", &sz); in do_update()
735 if ((data == 0) || (sz < 1)) { in do_update()
740 sprintf(tmp,"board=%sversion-baseband=0.66.04.19\n",(char*)data); in do_update()
741 data = tmp; in do_update()
745 setup_requirements(data, sz); in do_update()
770 void *data; in do_send_signature() local
779 data = load_file(fn, &sz); in do_send_signature()
781 if (data == 0) return; in do_send_signature()
782 fb_queue_download("signature", data, sz); in do_send_signature()
789 void *data; in do_flashall() local
800 data = load_file(fname, &sz); in do_flashall()
801 if (data == 0) die("could not load android-info.txt: %s", strerror(errno)); in do_flashall()
802 setup_requirements(data, sz); in do_flashall()
887 void *data; in main() local
1013 data = load_file(argv[1], &sz); in main()
1014 if (data == 0) die("could not load '%s': %s", argv[1], strerror(errno)); in main()
1016 fb_queue_download("signature", data, sz); in main()
1040 data = load_bootable_image(kname, rname, &sz, cmdline); in main()
1041 if (data == 0) return 1; in main()
1042 fb_queue_download("boot.img", data, sz); in main()
1071 data = load_bootable_image(kname, rname, &sz, cmdline); in main()
1072 if (data == 0) die("cannot load bootable image"); in main()
1073 fb_queue_flash(pname, data, sz); in main()