Lines Matching refs:ret
176 int ret; in fit_print_contents() local
184 ret = fit_get_desc(fit, 0, &desc); in fit_print_contents()
186 if (ret) in fit_print_contents()
192 ret = fit_get_timestamp(fit, 0, ×tamp); in fit_print_contents()
194 if (ret) in fit_print_contents()
279 int ret, i; in fit_image_print_data() local
297 ret = fit_image_hash_get_value(fit, noffset, &value, in fit_image_print_data()
300 if (ret) { in fit_image_print_data()
376 int ret; in fit_image_print() local
379 ret = fit_get_desc(fit, image_noffset, &desc); in fit_image_print()
381 if (ret) in fit_image_print()
389 ret = fit_get_timestamp(fit, 0, ×tamp); in fit_image_print()
391 if (ret) in fit_image_print()
403 ret = fit_image_get_data(fit, image_noffset, &data, &size); in fit_image_print()
407 if (ret) { in fit_image_print()
417 if (ret) in fit_image_print()
438 ret = fit_image_get_load(fit, image_noffset, &load); in fit_image_print()
440 if (ret) in fit_image_print()
452 ret = fit_image_get_entry(fit, image_noffset, &entry); in fit_image_print()
454 if (ret) in fit_image_print()
1188 int ret; in fit_set_timestamp() local
1191 ret = fdt_setprop(fit, noffset, FIT_TIMESTAMP_PROP, &t, in fit_set_timestamp()
1193 if (ret) { in fit_set_timestamp()
1196 fdt_strerror(ret)); in fit_set_timestamp()
1197 return ret == -FDT_ERR_NOSPACE ? -ENOSPC : -1; in fit_set_timestamp()
1206 int ret; in fit_set_totalsize() local
1209 ret = fdt_setprop(fit, noffset, FIT_TOTALSIZE_PROP, &t, in fit_set_totalsize()
1211 if (ret) in fit_set_totalsize()
1212 return ret == -FDT_ERR_NOSPACE ? -ENOSPC : -1; in fit_set_totalsize()
1220 int ret; in fit_set_version() local
1223 ret = fdt_setprop(fit, noffset, FIT_VERSION_PROP, &v, sizeof(uint32_t)); in fit_set_version()
1224 if (ret) in fit_set_version()
1225 return ret == -FDT_ERR_NOSPACE ? -ENOSPC : -1; in fit_set_version()
1286 int ret = 0; in hw_fit_calculate_hash() local
1294 ret = crypto_csum(CRYPTO_SHA1, data, data_len, value); in hw_fit_calculate_hash()
1297 ret = crypto_csum(CRYPTO_SHA256, data, data_len, value); in hw_fit_calculate_hash()
1300 ret = crypto_csum(CRYPTO_MD5, data, data_len, value); in hw_fit_calculate_hash()
1307 if (ret) in hw_fit_calculate_hash()
1308 printf("%s: algo %s failed, ret=%d\n", __func__, algo, ret); in hw_fit_calculate_hash()
1310 return ret; in hw_fit_calculate_hash()
1414 int ret; in fit_image_verify_with_data() local
1442 ret = fit_image_check_sig(fit, noffset, data, in fit_image_verify_with_data()
1451 if (ret) in fit_image_verify_with_data()
1590 int ret; in fit_image_uncipher() local
1626 ret = trusty_fw_key_cipher(RK_FW_KEY0, &config, in fit_image_uncipher()
1629 if (ret) { in fit_image_uncipher()
1631 node_name, ret); in fit_image_uncipher()
1632 return ret; in fit_image_uncipher()
1638 ret = fit_image_check_hash(fit, noffset, in fit_image_uncipher()
1641 if (ret) { in fit_image_uncipher()
1643 err_msgp, node_name, ret); in fit_image_uncipher()
1644 return ret; in fit_image_uncipher()
2028 int ret; in fit_conf_print() local
2032 ret = fit_get_desc(fit, noffset, &desc); in fit_conf_print()
2034 if (ret) in fit_conf_print()
2199 int ret; in fit_image_load_index() local
2269 return ret; in fit_image_load_index()
2294 ret = fit_image_select(fit, noffset, images->verify); in fit_image_load_index()
2295 if (ret) { in fit_image_load_index()
2297 return ret; in fit_image_load_index()
2360 ret = fit_image_get_load(fit, noffset, &load); in fit_image_load_index()
2361 if (ret < 0) in fit_image_load_index()
2362 return ret; in fit_image_load_index()
2370 ret = fit_image_uncipher(fit, noffset, (ulong)buf, size, load); in fit_image_load_index()
2371 if (ret) { in fit_image_load_index()
2372 printf(" Error: %d\n", ret); in fit_image_load_index()
2473 int ret; in boot_get_setup_fit() local
2480 ret = fit_image_load(images, addr, NULL, NULL, arch, in boot_get_setup_fit()
2484 return ret; in boot_get_setup_fit()