Lines Matching refs:dn
130 struct device_node *dn; in check_req() local
134 dn = pci_device_to_OF_node(pdev); in check_req()
136 p = of_get_property(dn, prop_name, NULL); in check_req()
138 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
169 struct device_node *dn; in find_pe_total_msi() local
172 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
173 while (dn) { in find_pe_total_msi()
174 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi()
177 dn); in find_pe_total_msi()
179 return dn; in find_pe_total_msi()
182 dn = of_get_next_parent(dn); in find_pe_total_msi()
190 struct device_node *dn; in find_pe_dn() local
195 dn = pci_device_to_OF_node(dev); in find_pe_dn()
196 if (!dn) in find_pe_dn()
200 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
204 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
205 if (!dn) in find_pe_dn()
209 dn = of_get_parent(dn); in find_pe_dn()
210 if (!dn) in find_pe_dn()
215 pr_debug("rtas_msi: using PE dn %pOF\n", dn); in find_pe_dn()
217 return dn; in find_pe_dn()
229 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
235 pr_debug("rtas_msi: counting %pOF\n", dn); in count_non_bridge_devices()
237 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
246 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
252 if (dn == counts->requestor) in count_spare_msis()
258 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
262 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()