Lines Matching refs:sup_np
1082 static int of_link_to_phandle(struct device *dev, struct device_node *sup_np, in of_link_to_phandle() argument
1087 struct device_node *tmp_np = sup_np; in of_link_to_phandle()
1089 of_node_get(sup_np); in of_link_to_phandle()
1094 while (sup_np) { in of_link_to_phandle()
1097 if (!of_device_is_available(sup_np)) { in of_link_to_phandle()
1098 of_node_put(sup_np); in of_link_to_phandle()
1099 sup_np = NULL; in of_link_to_phandle()
1102 if (of_find_property(sup_np, "compatible", NULL)) in of_link_to_phandle()
1105 sup_np = of_get_next_parent(sup_np); in of_link_to_phandle()
1108 if (!sup_np) { in of_link_to_phandle()
1118 if (of_is_ancestor_of(dev->of_node, sup_np)) { in of_link_to_phandle()
1119 dev_dbg(dev, "Not linking to %pOFP - is descendant\n", sup_np); in of_link_to_phandle()
1120 of_node_put(sup_np); in of_link_to_phandle()
1123 sup_dev = get_dev_from_fwnode(&sup_np->fwnode); in of_link_to_phandle()
1124 if (!sup_dev && of_node_check_flag(sup_np, OF_POPULATED)) { in of_link_to_phandle()
1127 sup_np); in of_link_to_phandle()
1128 of_node_put(sup_np); in of_link_to_phandle()
1137 of_node_put(sup_np); in of_link_to_phandle()
1141 sup_par_dev = of_get_next_parent_dev(sup_np); in of_link_to_phandle()
1146 sup_np); in of_link_to_phandle()
1156 of_node_put(sup_np); in of_link_to_phandle()
1160 of_node_put(sup_np); in of_link_to_phandle()