Lines Matching refs:prop
44 struct property *prop; in adjust_overlay_phandles() local
52 for_each_property_of_node(overlay, prop) { 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()
58 if (prop->length < 4) in adjust_overlay_phandles()
61 phandle = be32_to_cpup(prop->value); in adjust_overlay_phandles()
65 *(__be32 *)prop->value = cpu_to_be32(overlay->phandle); in adjust_overlay_phandles()
76 struct property *prop; in update_usages_of_a_phandle_reference() local
114 for_each_property_of_node(refnode, prop) { in update_usages_of_a_phandle_reference()
115 if (!of_prop_cmp(prop->name, prop_name)) in update_usages_of_a_phandle_reference()
120 if (!prop) { in update_usages_of_a_phandle_reference()
125 if (offset < 0 || offset + sizeof(__be32) > prop->length) { in update_usages_of_a_phandle_reference()
130 *(__be32 *)(prop->value + offset) = cpu_to_be32(phandle); in update_usages_of_a_phandle_reference()
163 struct property *prop_fix, *prop; in adjust_local_phandle_references() local
182 for_each_property_of_node(overlay, prop) { in adjust_local_phandle_references()
183 if (!of_prop_cmp(prop->name, prop_fix->name)) in adjust_local_phandle_references()
187 if (!prop) in adjust_local_phandle_references()
192 if ((off + 4) > prop->length) in adjust_local_phandle_references()
195 be32_add_cpu(prop->value + off, phandle_delta); in adjust_local_phandle_references()
267 struct property *prop; in of_resolve_phandles() local
316 for_each_property_of_node(overlay_fixups, prop) { in of_resolve_phandles()
319 if (!of_prop_cmp(prop->name, "name")) in of_resolve_phandles()
323 prop->name, &refpath); in of_resolve_phandles()
326 prop->name); in of_resolve_phandles()
339 err = update_usages_of_a_phandle_reference(overlay, prop, phandle); in of_resolve_phandles()