Lines Matching refs:fname
810 static int load_buf(Transport* transport, const char *fname, struct fastboot_buffer *buf) in load_buf() argument
814 fd = open(fname, O_RDONLY | O_BINARY); in load_buf()
959 static void do_flash(Transport* transport, const char* pname, const char* fname) { in do_flash() argument
962 if (load_buf(transport, fname, &buf)) { in do_flash()
963 die("cannot load '%s'", fname); in do_flash()
1048 char* fname = find_item("info", product); in do_flashall() local
1049 if (fname == nullptr) die("cannot find android-info.txt"); in do_flashall()
1052 void* data = load_file(fname, &sz); in do_flashall()
1058 fname = find_item(images[i].part_name, product); in do_flashall()
1060 if (load_buf(transport, fname, &buf)) { in do_flashall()
1067 do_send_signature(fname); in do_flashall()
1520 char *fname = 0; in main() local
1523 fname = argv[2]; in main()
1526 fname = find_item(pname, product); in main()
1529 if (fname == 0) die("cannot determine image filename for '%s'", pname); in main()
1535 do_flash(transport, partition.c_str(), fname); in main()