Lines Matching full:phandle

22 static phandle live_tree_max_phandle(void)  in live_tree_max_phandle()
25 phandle phandle; in live_tree_max_phandle() local
29 phandle = 0; in live_tree_max_phandle()
31 if (node->phandle != OF_PHANDLE_ILLEGAL && in live_tree_max_phandle()
32 node->phandle > phandle) in live_tree_max_phandle()
33 phandle = node->phandle; in live_tree_max_phandle()
37 return phandle; in live_tree_max_phandle()
45 phandle phandle; in adjust_overlay_phandles() local
47 /* adjust node's phandle in node */ in adjust_overlay_phandles()
48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
49 overlay->phandle += phandle_delta; in adjust_overlay_phandles()
51 /* copy adjusted phandle into *phandle properties */ in adjust_overlay_phandles()
54 if (of_prop_cmp(prop->name, "phandle") && in adjust_overlay_phandles()
55 of_prop_cmp(prop->name, "linux,phandle")) in adjust_overlay_phandles()
61 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
62 if (phandle == OF_PHANDLE_ILLEGAL) in adjust_overlay_phandles()
65 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
73 struct property *prop_fixup, phandle phandle) in update_usages_of_a_phandle_reference() argument
130 *(__be32 *)(prop->value + offset) = cpu_to_be32(phandle); in update_usages_of_a_phandle_reference()
149 * Adjust the local phandle references by the given phandle delta.
154 * For each property in the fragments that contains a phandle reference,
156 * of offsets of the phandle reference(s) within the respective property
174 !of_prop_cmp(prop_fix->name, "phandle") || in adjust_local_phandle_references()
175 !of_prop_cmp(prop_fix->name, "linux,phandle")) in adjust_local_phandle_references()
237 * to the local phandles in @overlay. Update (resolve) phandle references
240 * Phandle values in the live tree are in the range of
241 * 1 .. live_tree_max_phandle(). The range of phandle values in the overlay
242 * also begin with at 1. Adjust the phandle values in the overlay to begin
244 * the adjusted phandle values.
249 * overlay that need to be updated to contain the phandle reference
251 * the overlay with the phandle values in the live tree.
269 phandle phandle, phandle_delta; in of_resolve_phandles() local
336 phandle = refnode->phandle; in of_resolve_phandles()
339 err = update_usages_of_a_phandle_reference(overlay, prop, phandle); in of_resolve_phandles()
346 pr_err("overlay phandle fixup failed: %d\n", err); in of_resolve_phandles()