Lines Matching refs:fname
832 static bool load_buf(Transport* transport, const char* fname, struct fastboot_buffer* buf) { in load_buf() argument
833 int fd = open(fname, O_RDONLY | O_BINARY); in load_buf()
1031 static void do_flash(Transport* transport, const char* pname, const char* fname) { in do_flash() argument
1034 if (!load_buf(transport, fname, &buf)) { in do_flash()
1035 die("cannot load '%s': %s", fname, strerror(errno)); in do_flash()
1164 std::string fname; in do_flashall() local
1169 fname = find_item("info", product); in do_flashall()
1170 if (fname.empty()) die("cannot find android-info.txt"); in do_flashall()
1173 void* data = load_file(fname.c_str(), &sz); in do_flashall()
1201 fname = find_item_given_name(images[i].img_name, product); in do_flashall()
1203 if (!load_buf(transport, fname.c_str(), &buf)) { in do_flashall()
1209 do_send_signature(fname.c_str()); in do_flashall()
1715 std::string fname; in main() local
1718 fname = argv[2]; in main()
1721 fname = find_item(pname, product); in main()
1724 if (fname.empty()) die("cannot determine image filename for '%s'", pname); in main()
1730 do_flash(transport, partition.c_str(), fname.c_str()); in main()