Lines Matching refs:sup_np
1061 struct device_node *sup_np) in of_link_to_phandle() argument
1064 struct device_node *tmp_np = sup_np; in of_link_to_phandle()
1066 of_node_get(sup_np); in of_link_to_phandle()
1071 while (sup_np) { in of_link_to_phandle()
1074 if (!of_device_is_available(sup_np)) { in of_link_to_phandle()
1075 of_node_put(sup_np); in of_link_to_phandle()
1076 sup_np = NULL; in of_link_to_phandle()
1079 if (of_find_property(sup_np, "compatible", NULL)) in of_link_to_phandle()
1082 sup_np = of_get_next_parent(sup_np); in of_link_to_phandle()
1085 if (!sup_np) { in of_link_to_phandle()
1096 if (of_is_ancestor_of(con_np, sup_np)) { in of_link_to_phandle()
1098 con_np, sup_np); in of_link_to_phandle()
1099 of_node_put(sup_np); in of_link_to_phandle()
1107 sup_dev = get_dev_from_fwnode(&sup_np->fwnode); in of_link_to_phandle()
1109 (of_node_check_flag(sup_np, OF_POPULATED) || in of_link_to_phandle()
1110 sup_np->fwnode.flags & FWNODE_FLAG_NOT_DEVICE)) { in of_link_to_phandle()
1112 con_np, sup_np); in of_link_to_phandle()
1113 of_node_put(sup_np); in of_link_to_phandle()
1118 fwnode_link_add(of_fwnode_handle(con_np), of_fwnode_handle(sup_np)); in of_link_to_phandle()
1119 of_node_put(sup_np); in of_link_to_phandle()