Lines Matching refs:phandle
22 /* illegal phandle value (set when unresolved) */
51 * Find live tree's maximum phandle value.
53 static phandle of_get_tree_max_phandle(void)
56 phandle phandle;
61 phandle = 0;
63 if (node->phandle != OF_PHANDLE_ILLEGAL &&
64 node->phandle > phandle)
65 phandle = node->phandle;
69 return phandle;
73 * Adjust a subtree's phandle values by a given delta.
74 * Makes sure not to just adjust the device node's phandle value,
75 * but modify the phandle properties values as well.
82 phandle phandle;
84 /* first adjust the node's phandle direct value */
85 if (node->phandle != 0 && node->phandle != OF_PHANDLE_ILLEGAL)
86 node->phandle += phandle_delta;
88 /* now adjust phandle & linux,phandle values */
92 if (of_prop_cmp(prop->name, "phandle") != 0 &&
93 of_prop_cmp(prop->name, "linux,phandle") != 0)
100 /* read phandle value */
101 phandle = be32_to_cpup(prop->value);
102 if (phandle == OF_PHANDLE_ILLEGAL) /* unresolved */
106 *(uint32_t *)prop->value = cpu_to_be32(node->phandle);
116 phandle phandle;
184 phandle = is_delta ? be32_to_cpup(sprop->value + offset) + value : value;
185 *(__be32 *)(sprop->value + offset) = cpu_to_be32(phandle);
194 * Adjust the local phandle references by the given phandle delta.
248 phandle phandle, phandle_delta;
319 phandle = refnode->phandle;
322 pr_debug("%s: %s phandle is 0x%08x\n",
323 __func__, rprop->name, phandle);
325 err = __of_adjust_phandle_ref(resolve, rprop, phandle, false);