Lines Matching refs:tmpfile
27 const char *tmpfile) in fit_add_file_data() argument
36 tfd = mmap_fdt(params->cmdname, tmpfile, size_inc, &ptr, &sbuf, true); in fit_add_file_data()
633 char tmpfile[MKIMAGE_MAX_TMPFILE_LEN]; in fit_handle_file() local
643 strlen (MKIMAGE_TMPFILE_SUFFIX) + 1 > sizeof (tmpfile)) { in fit_handle_file()
649 sprintf (tmpfile, "%s%s", params->imagefile, MKIMAGE_TMPFILE_SUFFIX); in fit_handle_file()
653 if (fit_build(params, tmpfile)) { in fit_handle_file()
662 MKIMAGE_DTC, params->dtc, tmpfile, params->datafile); in fit_handle_file()
666 params->imagefile, tmpfile); in fit_handle_file()
675 ret = fit_import_data(params, tmpfile); in fit_handle_file()
690 ret = fit_add_file_data(params, size_inc, tmpfile); in fit_handle_file()
703 ret = fit_extract_data(params, tmpfile); in fit_handle_file()
708 if (rename (tmpfile, params->imagefile) == -1) { in fit_handle_file()
710 params->cmdname, tmpfile, params->imagefile, in fit_handle_file()
712 unlink (tmpfile); in fit_handle_file()
719 unlink(tmpfile); in fit_handle_file()