Lines Matching refs:ret
152 int ret, node; in bl2_lossy_gen_fdt() local
162 node = ret = fdt_add_subnode(fdt, fcnlnode, nodename); in bl2_lossy_gen_fdt()
163 if (ret < 0) { in bl2_lossy_gen_fdt()
164 NOTICE("BL2: Cannot create FCNL node (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
168 ret = fdt_setprop_string(fdt, node, "compatible", in bl2_lossy_gen_fdt()
170 if (ret < 0) { in bl2_lossy_gen_fdt()
172 "renesas,lossy-decompression", ret); in bl2_lossy_gen_fdt()
176 ret = fdt_appendprop_string(fdt, node, "compatible", in bl2_lossy_gen_fdt()
178 if (ret < 0) { in bl2_lossy_gen_fdt()
180 "shared-dma-pool", ret); in bl2_lossy_gen_fdt()
184 ret = fdt_setprop_u64(fdt, node, "reg", start_addr); in bl2_lossy_gen_fdt()
185 if (ret < 0) { in bl2_lossy_gen_fdt()
186 NOTICE("BL2: Cannot add FCNL reg prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
190 ret = fdt_appendprop(fdt, node, "reg", &fcnlsize, sizeof(fcnlsize)); in bl2_lossy_gen_fdt()
191 if (ret < 0) { in bl2_lossy_gen_fdt()
192 NOTICE("BL2: Cannot append FCNL reg size prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
196 ret = fdt_setprop(fdt, node, "no-map", NULL, 0); in bl2_lossy_gen_fdt()
197 if (ret < 0) { in bl2_lossy_gen_fdt()
198 NOTICE("BL2: Cannot add FCNL no-map prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
202 ret = fdt_setprop_u32(fdt, node, "renesas,formats", format); in bl2_lossy_gen_fdt()
203 if (ret < 0) { in bl2_lossy_gen_fdt()
204 NOTICE("BL2: Cannot add FCNL formats prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
384 uint64_t ret; in bl2_plat_handle_post_image_load() local
395 ret = rzg_get_dest_addr_from_cert(SOC_FW_CONTENT_CERT_ID, in bl2_plat_handle_post_image_load()
397 if (ret == 0U) { in bl2_plat_handle_post_image_load()
402 ret = rzg_get_dest_addr_from_cert(TRUSTED_OS_FW_CONTENT_CERT_ID, in bl2_plat_handle_post_image_load()
404 if (ret == 0U) { in bl2_plat_handle_post_image_load()
432 int ret; in bl2_populate_compatible_string() local
441 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
445 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
449 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
453 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
462 if (ret < 0) { in bl2_populate_compatible_string()
463 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret); in bl2_populate_compatible_string()
470 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
474 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
478 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
482 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
491 if (ret < 0) { in bl2_populate_compatible_string()
492 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret); in bl2_populate_compatible_string()
501 int ret, node; in bl2_add_memory_node() local
507 node = ret = fdt_add_subnode(fdt, 0, nodename); in bl2_add_memory_node()
508 if (ret < 0) { in bl2_add_memory_node()
509 return ret; in bl2_add_memory_node()
512 ret = fdt_setprop_string(fdt, node, "device_type", "memory"); in bl2_add_memory_node()
513 if (ret < 0) { in bl2_add_memory_node()
514 return ret; in bl2_add_memory_node()
517 ret = fdt_setprop_u64(fdt, node, "reg", start); in bl2_add_memory_node()
518 if (ret < 0) { in bl2_add_memory_node()
519 return ret; in bl2_add_memory_node()
528 int ret, chan; in bl2_advertise_dram_entries() local
568 ret = bl2_add_memory_node(start, size); in bl2_advertise_dram_entries()
569 if (ret < 0) { in bl2_advertise_dram_entries()
577 ret = bl2_add_memory_node(start, size); in bl2_advertise_dram_entries()
578 if (ret < 0) { in bl2_advertise_dram_entries()
585 NOTICE("BL2: Cannot add memory node to FDT (ret=%i)\n", ret); in bl2_advertise_dram_entries()
653 int32_t ret; in bl2_early_platform_setup2() local
873 ret = rcar_dram_init(); in bl2_early_platform_setup2()
874 if (ret != 0) { in bl2_early_platform_setup2()
875 NOTICE("BL2: Failed to DRAM initialize (%d).\n", ret); in bl2_early_platform_setup2()
882 ret = fdt_create_empty_tree(fdt, sizeof(fdt_blob)); in bl2_early_platform_setup2()
883 if (ret != 0) { in bl2_early_platform_setup2()
884 NOTICE("BL2: Cannot allocate FDT for U-Boot (ret=%i)\n", ret); in bl2_early_platform_setup2()