Lines Matching refs:prop
45 const struct property *prop; in adjust_overlay_phandles() local
53 for_each_property_of_node(overlay, prop) { 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()
59 if (prop->length < 4) in adjust_overlay_phandles()
62 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
66 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
77 const struct property *prop; in update_usages_of_a_phandle_reference() local
111 for_each_property_of_node(refnode, prop) { in update_usages_of_a_phandle_reference()
112 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference()
117 if (!prop) in update_usages_of_a_phandle_reference()
120 if (offset < 0 || offset + sizeof(__be32) > prop->length) in update_usages_of_a_phandle_reference()
123 *(__be32 *)(prop->value + offset) = cpu_to_be32(phandle); in update_usages_of_a_phandle_reference()
154 const struct property *prop_fix, *prop; in adjust_local_phandle_references() local
173 for_each_property_of_node(overlay, prop) { in adjust_local_phandle_references()
174 if (!of_prop_cmp(prop->name, prop_fix->name)) in adjust_local_phandle_references()
178 if (!prop) in adjust_local_phandle_references()
183 if ((off + 4) > prop->length) in adjust_local_phandle_references()
186 be32_add_cpu(prop->value + off, phandle_delta); in adjust_local_phandle_references()
254 struct property *prop; in of_resolve_phandles() local
303 for_each_property_of_node(overlay_fixups, prop) { in of_resolve_phandles()
306 if (!of_prop_cmp(prop->name, "name")) in of_resolve_phandles()
310 prop->name, &refpath); in of_resolve_phandles()
313 prop->name); in of_resolve_phandles()
326 err = update_usages_of_a_phandle_reference(overlay, prop, phandle); in of_resolve_phandles()