Lines Matching refs:params
159 const struct dump_params *params) { in dump_image_from_fp() argument
194 if (params->out_dtb_filename != NULL) { in dump_image_from_fp()
197 params->out_dtb_filename, i); in dump_image_from_fp()
210 static int process_command_dump(const struct dump_params *params) { in process_command_dump() argument
215 img_fp = fopen(params->img_filename, "rb"); in process_command_dump()
217 fprintf(stderr, "Can not open image file: %s\n", params->img_filename); in process_command_dump()
221 if (params->out_filename != NULL) { in process_command_dump()
222 out_fp = fopen(params->out_filename, "w"); in process_command_dump()
224 fprintf(stderr, "Can not create file: %s\n", params->out_filename); in process_command_dump()
229 ret = dump_image_from_fp(out_fp ? out_fp : stdout, img_fp, params); in process_command_dump()
254 struct dump_params params; in handle_command_dump() local
255 memset(¶ms, 0, sizeof(params)); in handle_command_dump()
256 params.img_filename = argv[arg_start]; in handle_command_dump()
266 params.out_filename = optarg; in handle_command_dump()
269 params.out_dtb_filename = optarg; in handle_command_dump()
277 return process_command_dump(¶ms); in handle_command_dump()