Lines Matching refs:ret
157 int ret, node; in bl2_lossy_gen_fdt() local
166 node = ret = fdt_add_subnode(fdt, fcnlnode, nodename); in bl2_lossy_gen_fdt()
167 if (ret < 0) { in bl2_lossy_gen_fdt()
168 NOTICE("BL2: Cannot create FCNL node (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
172 ret = fdt_setprop_string(fdt, node, "compatible", in bl2_lossy_gen_fdt()
174 if (ret < 0) { in bl2_lossy_gen_fdt()
175 NOTICE("BL2: Cannot add FCNL compat string (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
179 ret = fdt_appendprop_string(fdt, node, "compatible", in bl2_lossy_gen_fdt()
181 if (ret < 0) { in bl2_lossy_gen_fdt()
182 NOTICE("BL2: Cannot append FCNL compat string (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
186 ret = fdt_setprop_u64(fdt, node, "reg", start_addr); in bl2_lossy_gen_fdt()
187 if (ret < 0) { in bl2_lossy_gen_fdt()
188 NOTICE("BL2: Cannot add FCNL reg prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
192 ret = fdt_appendprop(fdt, node, "reg", &fcnlsize, sizeof(fcnlsize)); in bl2_lossy_gen_fdt()
193 if (ret < 0) { in bl2_lossy_gen_fdt()
194 NOTICE("BL2: Cannot append FCNL reg size prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
198 ret = fdt_setprop(fdt, node, "no-map", NULL, 0); in bl2_lossy_gen_fdt()
199 if (ret < 0) { in bl2_lossy_gen_fdt()
200 NOTICE("BL2: Cannot add FCNL no-map prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
204 ret = fdt_setprop_u32(fdt, node, "renesas,formats", format); in bl2_lossy_gen_fdt()
205 if (ret < 0) { in bl2_lossy_gen_fdt()
206 NOTICE("BL2: Cannot add FCNL formats prop (ret=%i)\n", ret); in bl2_lossy_gen_fdt()
240 int ret; in bl2_create_reserved_memory() local
249 ret = fdt_setprop(fdt, fcnlnode, "ranges", NULL, 0); in bl2_create_reserved_memory()
250 if (ret < 0) { in bl2_create_reserved_memory()
251 NOTICE("BL2: Cannot add FCNL ranges prop (ret=%i)\n", ret); in bl2_create_reserved_memory()
255 ret = fdt_setprop_u32(fdt, fcnlnode, "#address-cells", 2); in bl2_create_reserved_memory()
256 if (ret < 0) { in bl2_create_reserved_memory()
257 NOTICE("BL2: Cannot add FCNL #address-cells prop (ret=%i)\n", ret); in bl2_create_reserved_memory()
261 ret = fdt_setprop_u32(fdt, fcnlnode, "#size-cells", 2); in bl2_create_reserved_memory()
262 if (ret < 0) { in bl2_create_reserved_memory()
263 NOTICE("BL2: Cannot add FCNL #size-cells prop (ret=%i)\n", ret); in bl2_create_reserved_memory()
479 int ret; in rcar_get_dest_addr_from_cert() local
481 ret = rcar_get_certificate(certid, &cert); in rcar_get_dest_addr_from_cert()
482 if (ret) { in rcar_get_dest_addr_from_cert()
619 int ret; in bl2_plat_handle_post_image_load() local
622 ret = image_decompress(&bl_mem_params->image_info); in bl2_plat_handle_post_image_load()
623 if (ret != 0) { in bl2_plat_handle_post_image_load()
624 return ret; in bl2_plat_handle_post_image_load()
653 int ret; in bl2_populate_compatible_string() local
662 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
666 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
670 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
674 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
678 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
683 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
687 ret = fdt_setprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
695 if (ret < 0) { in bl2_populate_compatible_string()
696 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret); in bl2_populate_compatible_string()
703 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
707 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
711 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
715 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
719 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
723 ret = fdt_appendprop_string(dt, 0, "compatible", in bl2_populate_compatible_string()
731 if (ret < 0) { in bl2_populate_compatible_string()
732 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret); in bl2_populate_compatible_string()
740 int ret, node; in bl2_add_rpc_node() local
742 node = ret = fdt_add_subnode(fdt, 0, "soc"); in bl2_add_rpc_node()
743 if (ret < 0) { in bl2_add_rpc_node()
747 node = ret = fdt_add_subnode(fdt, node, "spi@ee200000"); in bl2_add_rpc_node()
748 if (ret < 0) { in bl2_add_rpc_node()
752 ret = fdt_setprop_string(fdt, node, "status", "okay"); in bl2_add_rpc_node()
753 if (ret < 0) { in bl2_add_rpc_node()
759 NOTICE("BL2: Cannot add RPC node to FDT (ret=%i)\n", ret); in bl2_add_rpc_node()
768 int ret, node; in bl2_add_kaslr_seed() local
811 node = ret = fdt_add_subnode(fdt, 0, "chosen"); in bl2_add_kaslr_seed()
812 if (ret < 0) { in bl2_add_kaslr_seed()
816 ret = fdt_setprop_u64(fdt, node, "kaslr-seed", seed); in bl2_add_kaslr_seed()
817 if (ret < 0) { in bl2_add_kaslr_seed()
823 NOTICE("BL2: Cannot add KASLR seed to FDT (ret=%i)\n", ret); in bl2_add_kaslr_seed()
831 int ret, node; in bl2_add_dram_entry() local
837 node = ret = fdt_add_subnode(fdt, 0, nodename); in bl2_add_dram_entry()
838 if (ret < 0) { in bl2_add_dram_entry()
842 ret = fdt_setprop_string(fdt, node, "device_type", "memory"); in bl2_add_dram_entry()
843 if (ret < 0) { in bl2_add_dram_entry()
847 ret = fdt_setprop_u64(fdt, node, "reg", start); in bl2_add_dram_entry()
848 if (ret < 0) { in bl2_add_dram_entry()
852 ret = fdt_appendprop(fdt, node, "reg", &fdtsize, in bl2_add_dram_entry()
854 if (ret < 0) { in bl2_add_dram_entry()
861 start, start + size - 1, ret); in bl2_add_dram_entry()
1028 int32_t ret; in bl2_early_platform_setup2() local
1262 ret = rcar_dram_init(); in bl2_early_platform_setup2()
1263 if (ret) { in bl2_early_platform_setup2()
1264 NOTICE("BL2: Failed to DRAM initialize (%d).\n", ret); in bl2_early_platform_setup2()
1271 ret = fdt_create_empty_tree(fdt, sizeof(fdt_blob)); in bl2_early_platform_setup2()
1272 if (ret) { in bl2_early_platform_setup2()
1273 NOTICE("BL2: Cannot allocate FDT for U-Boot (ret=%i)\n", ret); in bl2_early_platform_setup2()