Lines Matching refs:overlay
40 static void adjust_overlay_phandles(struct device_node *overlay, in adjust_overlay_phandles() argument
48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
49 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
52 for_each_property_of_node(overlay, prop) { in adjust_overlay_phandles()
65 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
68 for_each_child_of_node(overlay, child) in adjust_overlay_phandles()
72 static int update_usages_of_a_phandle_reference(struct device_node *overlay, in update_usages_of_a_phandle_reference() argument
110 refnode = __of_find_node_by_full_path(of_node_get(overlay), node_path); in update_usages_of_a_phandle_reference()
160 struct device_node *overlay, int phandle_delta) in adjust_local_phandle_references() argument
182 for_each_property_of_node(overlay, prop) { in adjust_local_phandle_references()
208 for_each_child_of_node(overlay, overlay_child) in adjust_local_phandle_references()
263 int of_resolve_phandles(struct device_node *overlay) in of_resolve_phandles() argument
274 if (!overlay) { in of_resolve_phandles()
280 if (!of_node_check_flag(overlay, OF_DETACHED)) { in of_resolve_phandles()
287 adjust_overlay_phandles(overlay, phandle_delta); in of_resolve_phandles()
289 for_each_child_of_node(overlay, local_fixups) in of_resolve_phandles()
293 err = adjust_local_phandle_references(local_fixups, overlay, phandle_delta); in of_resolve_phandles()
299 for_each_child_of_node(overlay, child) { in of_resolve_phandles()
339 err = update_usages_of_a_phandle_reference(overlay, prop, phandle); in of_resolve_phandles()