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()
625 char tmpfile[MKIMAGE_MAX_TMPFILE_LEN]; in fit_handle_file() local
635 strlen (MKIMAGE_TMPFILE_SUFFIX) + 1 > sizeof (tmpfile)) { in fit_handle_file()
641 sprintf (tmpfile, "%s%s", params->imagefile, MKIMAGE_TMPFILE_SUFFIX); in fit_handle_file()
645 if (fit_build(params, tmpfile)) { in fit_handle_file()
654 MKIMAGE_DTC, params->dtc, tmpfile, params->datafile); in fit_handle_file()
658 params->imagefile, tmpfile); in fit_handle_file()
667 ret = fit_import_data(params, tmpfile); in fit_handle_file()
682 ret = fit_add_file_data(params, size_inc, tmpfile); in fit_handle_file()
695 ret = fit_extract_data(params, tmpfile); in fit_handle_file()
700 if (rename (tmpfile, params->imagefile) == -1) { in fit_handle_file()
702 params->cmdname, tmpfile, params->imagefile, in fit_handle_file()
704 unlink (tmpfile); in fit_handle_file()
711 unlink(tmpfile); in fit_handle_file()