Lines Matching refs:ret

63 	int path_len = 0, ret;  in overlay_get_target()  local
75 ret = fdt_path_offset(fdt, path); in overlay_get_target()
77 ret = path_len; in overlay_get_target()
79 ret = fdt_node_offset_by_phandle(fdt, phandle); in overlay_get_target()
88 if (ret < 0 && path_len == -FDT_ERR_NOTFOUND) in overlay_get_target()
89 ret = -FDT_ERR_BADOVERLAY; in overlay_get_target()
92 if (ret < 0) in overlay_get_target()
93 return ret; in overlay_get_target()
99 return ret; in overlay_get_target()
160 int ret; in overlay_adjust_node_phandles() local
162 ret = overlay_phandle_add_offset(fdto, node, "phandle", delta); in overlay_adjust_node_phandles()
163 if (ret && ret != -FDT_ERR_NOTFOUND) in overlay_adjust_node_phandles()
164 return ret; in overlay_adjust_node_phandles()
166 ret = overlay_phandle_add_offset(fdto, node, "linux,phandle", delta); in overlay_adjust_node_phandles()
167 if (ret && ret != -FDT_ERR_NOTFOUND) in overlay_adjust_node_phandles()
168 return ret; in overlay_adjust_node_phandles()
171 ret = overlay_adjust_node_phandles(fdto, child, delta); in overlay_adjust_node_phandles()
172 if (ret) in overlay_adjust_node_phandles()
173 return ret; in overlay_adjust_node_phandles()
227 int ret; in overlay_update_local_node_references() local
270 ret = fdt_setprop_inplace_namelen_partial(fdto, in overlay_update_local_node_references()
277 if (ret == -FDT_ERR_NOSPACE) in overlay_update_local_node_references()
280 if (ret) in overlay_update_local_node_references()
281 return ret; in overlay_update_local_node_references()
297 ret = overlay_update_local_node_references(fdto, in overlay_update_local_node_references()
301 if (ret) in overlay_update_local_node_references()
302 return ret; in overlay_update_local_node_references()
450 int poffset, ret; in overlay_fixup_phandle() local
483 ret = overlay_fixup_one_phandle(fdt, fdto, symbols_off, in overlay_fixup_phandle()
486 if (ret) in overlay_fixup_phandle()
487 return ret; in overlay_fixup_phandle()
528 int ret; in overlay_fixup_phandles() local
530 ret = overlay_fixup_phandle(fdt, fdto, symbols_off, property); in overlay_fixup_phandles()
531 if (ret) in overlay_fixup_phandles()
532 return ret; in overlay_fixup_phandles()
567 int ret; in overlay_apply_node() local
576 ret = fdt_setprop(fdt, target, name, prop, prop_len); in overlay_apply_node()
577 if (ret) in overlay_apply_node()
578 return ret; in overlay_apply_node()
584 int ret; in overlay_apply_node() local
596 ret = overlay_apply_node(fdt, nnode, fdto, subnode); in overlay_apply_node()
597 if (ret) in overlay_apply_node()
598 return ret; in overlay_apply_node()
626 int ret; in overlay_merge() local
643 ret = overlay_apply_node(fdt, target, fdto, overlay); in overlay_merge()
644 if (ret) in overlay_merge()
645 return ret; in overlay_merge()
698 int len, frag_name_len, ret, rel_path_len; in overlay_symbol_update() local
769 ret = fdt_subnode_offset_namelen(fdto, 0, frag_name, in overlay_symbol_update()
772 if (ret < 0) in overlay_symbol_update()
774 fragment = ret; in overlay_symbol_update()
777 ret = fdt_subnode_offset(fdto, fragment, "__overlay__"); in overlay_symbol_update()
778 if (ret < 0) in overlay_symbol_update()
782 ret = overlay_get_target(fdt, fdto, fragment, &target_path); in overlay_symbol_update()
783 if (ret < 0) in overlay_symbol_update()
784 return ret; in overlay_symbol_update()
785 target = ret; in overlay_symbol_update()
789 ret = get_path_len(fdt, target); in overlay_symbol_update()
790 if (ret < 0) in overlay_symbol_update()
791 return ret; in overlay_symbol_update()
792 len = ret; in overlay_symbol_update()
797 ret = fdt_setprop_placeholder(fdt, root_sym, name, in overlay_symbol_update()
799 if (ret < 0) in overlay_symbol_update()
800 return ret; in overlay_symbol_update()
804 ret = overlay_get_target(fdt, fdto, fragment, &target_path); in overlay_symbol_update()
805 if (ret < 0) in overlay_symbol_update()
806 return ret; in overlay_symbol_update()
807 target = ret; in overlay_symbol_update()
813 ret = fdt_get_path(fdt, target, buf, len + 1); in overlay_symbol_update()
814 if (ret < 0) in overlay_symbol_update()
815 return ret; in overlay_symbol_update()
833 int ret; in fdt_overlay_apply() local
838 ret = fdt_find_max_phandle(fdt, &delta); in fdt_overlay_apply()
839 if (ret) in fdt_overlay_apply()
842 ret = overlay_adjust_local_phandles(fdto, delta); in fdt_overlay_apply()
843 if (ret) in fdt_overlay_apply()
846 ret = overlay_update_local_references(fdto, delta); in fdt_overlay_apply()
847 if (ret) in fdt_overlay_apply()
850 ret = overlay_fixup_phandles(fdt, fdto); in fdt_overlay_apply()
851 if (ret) in fdt_overlay_apply()
854 ret = overlay_merge(fdt, fdto); in fdt_overlay_apply()
855 if (ret) in fdt_overlay_apply()
858 ret = overlay_symbol_update(fdt, fdto); in fdt_overlay_apply()
859 if (ret) in fdt_overlay_apply()
881 return ret; in fdt_overlay_apply()