Lines Matching refs:params
134 struct image_tool_params *params) in sfp_build_header() argument
136 uint32_t entry_offset = params->eflag ? params->ep : ENTRY_POINT_OFFSET; in sfp_build_header()
215 struct image_tool_params *params) in sfp_sign_buffer() argument
224 sfp_build_header(buf + HEADER_OFFSET, ver, flags, len, params); in sfp_sign_buffer()
278 struct image_tool_params *params) in socfpgaimage_verify_header() argument
333 static int socfpgaimage_check_params_v0(struct image_tool_params *params) in socfpgaimage_check_params_v0() argument
336 return (params->dflag && (params->fflag || params->lflag)) || in socfpgaimage_check_params_v0()
337 (params->fflag && (params->dflag || params->lflag)) || in socfpgaimage_check_params_v0()
338 (params->lflag && (params->dflag || params->fflag)); in socfpgaimage_check_params_v0()
341 static int socfpgaimage_check_params_v1(struct image_tool_params *params) in socfpgaimage_check_params_v1() argument
347 if (params->eflag && (params->ep < ENTRY_POINT_OFFSET || in socfpgaimage_check_params_v1()
348 params->ep % 4 != 0)) { in socfpgaimage_check_params_v1()
356 return (params->dflag && (params->fflag || params->lflag)) || in socfpgaimage_check_params_v1()
357 (params->fflag && (params->dflag || params->lflag)) || in socfpgaimage_check_params_v1()
358 (params->lflag && (params->dflag || params->fflag)); in socfpgaimage_check_params_v1()
400 static int sfp_vrec_header(struct image_tool_params *params, in sfp_vrec_header() argument
405 if (params->datafile && in sfp_vrec_header()
406 stat(params->datafile, &sbuf) == 0 && in sfp_vrec_header()
415 static int socfpgaimage_vrec_header_v0(struct image_tool_params *params, in socfpgaimage_vrec_header_v0() argument
418 return sfp_vrec_header(params, tparams, 0); in socfpgaimage_vrec_header_v0()
421 static int socfpgaimage_vrec_header_v1(struct image_tool_params *params, in socfpgaimage_vrec_header_v1() argument
424 return sfp_vrec_header(params, tparams, 1); in socfpgaimage_vrec_header_v1()
428 struct image_tool_params *params) in sfp_set_header() argument
442 sfp_sign_buffer(buf, ver, 0, data_size, 0, params); in sfp_set_header()
446 struct image_tool_params *params) in socfpgaimage_set_header_v0() argument
448 sfp_set_header(ptr, 0, params); in socfpgaimage_set_header_v0()
452 struct image_tool_params *params) in socfpgaimage_set_header_v1() argument
454 sfp_set_header(ptr, 1, params); in socfpgaimage_set_header_v1()