Lines Matching refs:dn
30 struct device_node *dn;
33 dn = pci_device_to_OF_node(pdev);
34 if (!dn) {
39 pdn = PCI_DN(dn);
139 struct device_node *dn;
147 dn = pdn->node;
149 req_msi = of_get_property(dn, prop_name, NULL);
151 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name);
181 struct device_node *dn;
184 dn = of_node_get(pci_device_to_OF_node(dev));
185 while (dn) {
186 p = of_get_property(dn, "ibm,pe-total-#msi", NULL);
188 pr_debug("rtas_msi: found prop on dn %s\n",
189 dn->full_name);
191 return dn;
194 dn = of_get_next_parent(dn);
202 struct device_node *dn;
206 dn = pci_device_to_OF_node(dev);
207 if (!dn)
210 dn = find_device_pe(dn);
211 if (!dn)
215 dn = of_get_parent(dn);
216 if (!dn)
221 pr_debug("rtas_msi: using PE dn %s\n", dn->full_name);
223 return dn;
235 static void *count_non_bridge_devices(struct device_node *dn, void *data)
241 pr_debug("rtas_msi: counting %s\n", dn->full_name);
243 p = of_get_property(dn, "class-code", NULL);
252 static void *count_spare_msis(struct device_node *dn, void *data)
258 if (dn == counts->requestor)
264 p = of_get_property(dn, "ibm,req#msi", NULL);
268 p = of_get_property(dn, "ibm,req#msi-x", NULL);