Lines Matching defs:sup_np
1087 * @sup_np: phandle to supplier device tree node
1089 * Given a phandle to a supplier device tree node (@sup_np), this function
1102 static int of_link_to_phandle(struct device *dev, struct device_node *sup_np,
1107 struct device_node *tmp_np = sup_np;
1109 of_node_get(sup_np);
1112 * @sup_np or it may be an ancestor of @sup_np.
1114 while (sup_np) {
1117 if (!of_device_is_available(sup_np)) {
1118 of_node_put(sup_np);
1119 sup_np = NULL;
1122 if (of_find_property(sup_np, "compatible", NULL))
1125 sup_np = of_get_next_parent(sup_np);
1128 if (!sup_np) {
1138 if (of_is_ancestor_of(dev->of_node, sup_np)) {
1139 dev_dbg(dev, "Not linking to %pOFP - is descendant\n", sup_np);
1140 of_node_put(sup_np);
1143 sup_dev = get_dev_from_fwnode(&sup_np->fwnode);
1144 if (!sup_dev && of_node_check_flag(sup_np, OF_POPULATED)) {
1147 sup_np);
1148 of_node_put(sup_np);
1157 of_node_put(sup_np);
1161 sup_par_dev = of_get_next_parent_dev(sup_np);
1166 sup_np);
1176 of_node_put(sup_np);
1180 of_node_put(sup_np);