Lines Matching defs:phandle

22 static phandle live_tree_max_phandle(void)
25 phandle phandle;
29 phandle = 0;
31 if (node->phandle != OF_PHANDLE_ILLEGAL &&
32 node->phandle > phandle)
33 phandle = node->phandle;
37 return phandle;
45 phandle phandle;
47 /* adjust node's phandle in node */
48 if (overlay->phandle != 0 && overlay->phandle != OF_PHANDLE_ILLEGAL)
49 overlay->phandle += phandle_delta;
51 /* copy adjusted phandle into *phandle properties */
54 if (of_prop_cmp(prop->name, "phandle") &&
55 of_prop_cmp(prop->name, "linux,phandle"))
61 phandle = be32_to_cpup(prop->value);
62 if (phandle == OF_PHANDLE_ILLEGAL)
65 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle);
73 struct property *prop_fixup, phandle phandle)
130 *(__be32 *)(prop->value + offset) = cpu_to_be32(phandle);
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") ||
175 !of_prop_cmp(prop_fix->name, "linux,phandle"))
237 * to the local phandles in @overlay. Update (resolve) phandle references
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;
336 phandle = refnode->phandle;
339 err = update_usages_of_a_phandle_reference(overlay, prop, phandle);
346 pr_err("overlay phandle fixup failed: %d\n", err);