• Home
  • Raw
  • Download

Lines Matching refs:sz

99     int64_t sz;  member
167 static void* load_fd(int fd, int64_t* sz) { in load_fd() argument
171 *sz = get_file_size(fd); in load_fd()
172 if (*sz < 0) { in load_fd()
176 data = (char*) malloc(*sz); in load_fd()
179 if(read(fd, data, *sz) != *sz) goto oops; in load_fd()
192 static void* load_file(const char* fn, int64_t* sz) { in load_file() argument
195 return load_fd(fd, sz); in load_file()
421 const char* secondstage, int64_t* sz, in load_bootable_image() argument
444 *sz = ksize; in load_bootable_image()
480 *sz = bsize; in load_bootable_image()
485 static void* unzip_file(ZipArchiveHandle zip, const char* entry_name, int64_t* sz) in unzip_file() argument
494 *sz = zip_entry.uncompressed_length; in unzip_file()
498 fprintf(stderr, "failed to allocate %" PRId64 " bytes for '%s'\n", *sz, entry_name); in unzip_file()
696 static void setup_requirements(char* data, int64_t sz) { in setup_requirements() argument
698 while (sz-- > 0) { in setup_requirements()
803 int64_t sz = get_file_size(fd); in load_buf_fd() local
804 if (sz == -1) { in load_buf_fd()
809 int64_t limit = get_sparse_limit(transport, sz); in load_buf_fd()
818 void* data = load_fd(fd, &sz); in load_buf_fd()
822 buf->sz = sz; in load_buf_fd()
849 int64_t sz = sparse_file_len(*s, true, false); in flash_buf() local
850 sparse_files.emplace_back(*s, sz); in flash_buf()
862 fb_queue_flash(pname, buf->data, buf->sz); in flash_buf()
1041 int64_t sz; in do_update_signature() local
1042 void* data = unzip_file(zip, fn, &sz); in do_update_signature()
1044 fb_queue_download("signature", data, sz); in do_update_signature()
1081 int64_t sz; in do_update() local
1082 void* data = unzip_file(zip, "android-info.txt", &sz); in do_update()
1088 setup_requirements(reinterpret_cast<char*>(data), sz); in do_update()
1154 int64_t sz; in do_send_signature() local
1155 void* data = load_file(fs_sig.c_str(), &sz); in do_send_signature()
1157 fb_queue_download("signature", data, sz); in do_send_signature()
1170 int64_t sz; in do_flashall() local
1171 void* data = load_file(fname.c_str(), &sz); in do_flashall()
1174 setup_requirements(reinterpret_cast<char*>(data), sz); in do_flashall()
1237 int64_t sz; in do_bypass_unlock_command() local
1238 void* data = load_file(*argv, &sz); in do_bypass_unlock_command()
1240 fb_queue_download("unlock_message", data, sz); in do_bypass_unlock_command()
1403 int64_t sz; in main() local
1630 data = load_file(argv[1], &sz); in main()
1632 if (sz != 256) die("signature must be 256 bytes"); in main()
1633 fb_queue_download("signature", data, sz); in main()
1670 data = load_bootable_image(kname, rname, sname, &sz, cmdline); in main()
1672 fb_queue_download("boot.img", data, sz); in main()
1708 data = load_bootable_image(kname, rname, sname, &sz, cmdline); in main()
1711 fb_queue_flash(partition.c_str(), data, sz); in main()