Lines Matching full:phandle
23 static phandle live_tree_max_phandle(void) in live_tree_max_phandle()
26 phandle phandle; in live_tree_max_phandle() local
30 phandle = 0; in live_tree_max_phandle()
32 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle()
33 node->phandle > phandle) in live_tree_max_phandle()
34 phandle = node->phandle; in live_tree_max_phandle()
38 return phandle; in live_tree_max_phandle()
46 phandle phandle; in adjust_overlay_phandles() local
48 /* adjust node's phandle in node */ in adjust_overlay_phandles()
49 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
50 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
52 /* copy adjusted phandle into *phandle properties */ in adjust_overlay_phandles()
55 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles()
56 of_prop_cmp(prop->name, "linux,phandle")) in adjust_overlay_phandles()
62 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
63 if (phandle == OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
66 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
74 const struct property *prop_fixup, phandle phandle) in update_usages_of_a_phandle_reference() argument
123 *(__be32 *)(prop->value + offset) = cpu_to_be32(phandle); in update_usages_of_a_phandle_reference()
140 * Adjust the local phandle references by the given phandle delta.
145 * For each property in the fragments that contains a phandle reference,
147 * of offsets of the phandle reference(s) within the respective property
165 !of_prop_cmp(prop_fix->name, "phandle") || in adjust_local_phandle_references()
166 !of_prop_cmp(prop_fix->name, "linux,phandle")) in adjust_local_phandle_references()
224 * to the local phandles in @overlay. Update (resolve) phandle references
227 * Phandle values in the live tree are in the range of
228 * 1 .. live_tree_max_phandle(). The range of phandle values in the overlay
229 * also begin with at 1. Adjust the phandle values in the overlay to begin
231 * the adjusted phandle values.
236 * overlay that need to be updated to contain the phandle reference
238 * the overlay with the phandle values in the live tree.
256 phandle phandle, phandle_delta; in of_resolve_phandles() local
323 phandle = refnode->phandle; in of_resolve_phandles()
326 err = update_usages_of_a_phandle_reference(overlay, prop, phandle); in of_resolve_phandles()
333 pr_err("overlay phandle fixup failed: %d\n", err); in of_resolve_phandles()