Lines Matching refs:params

36 static int image_check_params(struct image_tool_params *params)  in image_check_params()  argument
38 return ((params->dflag && (params->fflag || params->lflag)) || in image_check_params()
39 (params->fflag && (params->dflag || params->lflag)) || in image_check_params()
40 (params->lflag && (params->dflag || params->fflag))); in image_check_params()
44 struct image_tool_params *params) in image_verify_header() argument
61 params->cmdname, params->imagefile); in image_verify_header()
73 params->cmdname, params->imagefile); in image_verify_header()
83 params->cmdname, params->imagefile); in image_verify_header()
90 struct image_tool_params *params) in image_set_header() argument
105 time = imagetool_get_source_date(params->cmdname, sbuf->st_mtime); in image_set_header()
106 ep = params->ep; in image_set_header()
107 addr = params->addr; in image_set_header()
109 if (params->type == IH_TYPE_FIRMWARE_IVT) in image_set_header()
117 if (params->os == IH_OS_TEE) { in image_set_header()
129 image_set_os(hdr, params->os); in image_set_header()
130 image_set_arch(hdr, params->arch); in image_set_header()
131 image_set_type(hdr, params->type); in image_set_header()
132 image_set_comp(hdr, params->comp); in image_set_header()
134 image_set_name(hdr, params->imagename); in image_set_header()
142 static int image_extract_subimage(void *ptr, struct image_tool_params *params) in image_extract_subimage() argument
149 ulong idx = params->pflag; in image_extract_subimage()
160 params->cmdname, idx, params->imagefile); in image_extract_subimage()
169 return imagetool_save_subimage(params->outfile, file_data, file_len); in image_extract_subimage()