Lines Matching defs:ret

159 	int ret, node;
168 node = ret = fdt_add_subnode(fdt, fcnlnode, nodename);
169 if (ret < 0) {
170 NOTICE("BL2: Cannot create FCNL node (ret=%i)\n", ret);
174 ret = fdt_setprop_string(fdt, node, "compatible",
176 if (ret < 0) {
177 NOTICE("BL2: Cannot add FCNL compat string (ret=%i)\n", ret);
181 ret = fdt_appendprop_string(fdt, node, "compatible",
183 if (ret < 0) {
184 NOTICE("BL2: Cannot append FCNL compat string (ret=%i)\n", ret);
188 ret = fdt_setprop_u64(fdt, node, "reg", start_addr);
189 if (ret < 0) {
190 NOTICE("BL2: Cannot add FCNL reg prop (ret=%i)\n", ret);
194 ret = fdt_appendprop(fdt, node, "reg", &fcnlsize, sizeof(fcnlsize));
195 if (ret < 0) {
196 NOTICE("BL2: Cannot append FCNL reg size prop (ret=%i)\n", ret);
200 ret = fdt_setprop(fdt, node, "no-map", NULL, 0);
201 if (ret < 0) {
202 NOTICE("BL2: Cannot add FCNL no-map prop (ret=%i)\n", ret);
206 ret = fdt_setprop_u32(fdt, node, "renesas,formats", format);
207 if (ret < 0) {
208 NOTICE("BL2: Cannot add FCNL formats prop (ret=%i)\n", ret);
242 int ret;
246 NOTICE("BL2: Cannot create reserved mem node (ret=%i)\n",
251 ret = fdt_setprop(fdt, fcnlnode, "ranges", NULL, 0);
252 if (ret < 0) {
253 NOTICE("BL2: Cannot add FCNL ranges prop (ret=%i)\n", ret);
257 ret = fdt_setprop_u32(fdt, fcnlnode, "#address-cells", 2);
258 if (ret < 0) {
259 NOTICE("BL2: Cannot add FCNL #address-cells prop (ret=%i)\n", ret);
263 ret = fdt_setprop_u32(fdt, fcnlnode, "#size-cells", 2);
264 if (ret < 0) {
265 NOTICE("BL2: Cannot add FCNL #size-cells prop (ret=%i)\n", ret);
458 int ret;
460 ret = rcar_get_certificate(certid, &cert);
461 if (ret) {
476 int ret;
487 ret = rcar_get_dest_addr_from_cert(SOC_FW_CONTENT_CERT_ID,
489 if (!ret)
493 ret = rcar_get_dest_addr_from_cert(TRUSTED_OS_FW_CONTENT_CERT_ID,
495 if (!ret)
505 ret = image_decompress(&bl_mem_params->image_info);
506 if (ret != 0) {
507 return ret;
533 int ret;
542 ret = fdt_setprop_string(dt, 0, "compatible",
546 ret = fdt_setprop_string(dt, 0, "compatible",
550 ret = fdt_setprop_string(dt, 0, "compatible",
554 ret = fdt_setprop_string(dt, 0, "compatible",
558 ret = fdt_setprop_string(dt, 0, "compatible",
563 ret = fdt_setprop_string(dt, 0, "compatible",
567 ret = fdt_setprop_string(dt, 0, "compatible",
575 if (ret < 0) {
576 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret);
583 ret = fdt_appendprop_string(dt, 0, "compatible",
587 ret = fdt_appendprop_string(dt, 0, "compatible",
591 ret = fdt_appendprop_string(dt, 0, "compatible",
595 ret = fdt_appendprop_string(dt, 0, "compatible",
599 ret = fdt_appendprop_string(dt, 0, "compatible",
603 ret = fdt_appendprop_string(dt, 0, "compatible",
611 if (ret < 0) {
612 NOTICE("BL2: Cannot set compatible string (ret=%i)\n", ret);
620 int ret, node;
622 node = ret = fdt_add_subnode(fdt, 0, "soc");
623 if (ret < 0) {
627 node = ret = fdt_add_subnode(fdt, node, "spi@ee200000");
628 if (ret < 0) {
632 ret = fdt_setprop_string(fdt, node, "status", "okay");
633 if (ret < 0) {
639 NOTICE("BL2: Cannot add RPC node to FDT (ret=%i)\n", ret);
648 int ret, node;
654 node = ret = fdt_add_subnode(fdt, 0, nodename);
655 if (ret < 0) {
659 ret = fdt_setprop_string(fdt, node, "device_type", "memory");
660 if (ret < 0) {
664 ret = fdt_setprop_u64(fdt, node, "reg", start);
665 if (ret < 0) {
669 ret = fdt_appendprop(fdt, node, "reg", &fdtsize,
671 if (ret < 0) {
677 NOTICE("BL2: Cannot add memory node [%" PRIx64 " - %" PRIx64 "] to FDT (ret=%i)\n",
678 start, start + size - 1, ret);
845 int32_t ret;
1079 ret = rcar_dram_init();
1080 if (ret) {
1081 NOTICE("BL2: Failed to DRAM initialize (%d).\n", ret);
1088 ret = fdt_create_empty_tree(fdt, sizeof(fdt_blob));
1089 if (ret) {
1090 NOTICE("BL2: Cannot allocate FDT for U-Boot (ret=%i)\n", ret);