Lines Matching refs:dn
129 struct device_node *dn; in check_req() local
133 dn = pci_device_to_OF_node(pdev); in check_req()
135 p = of_get_property(dn, prop_name, NULL); in check_req()
137 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
168 struct device_node *dn; in find_pe_total_msi() local
171 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
172 while (dn) { in find_pe_total_msi()
173 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi()
176 dn); in find_pe_total_msi()
178 return dn; in find_pe_total_msi()
181 dn = of_get_next_parent(dn); in find_pe_total_msi()
189 struct device_node *dn; in find_pe_dn() local
194 dn = pci_device_to_OF_node(dev); in find_pe_dn()
195 if (!dn) in find_pe_dn()
199 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
203 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
204 if (!dn) in find_pe_dn()
208 dn = of_get_parent(dn); in find_pe_dn()
209 if (!dn) in find_pe_dn()
214 pr_debug("rtas_msi: using PE dn %pOF\n", dn); in find_pe_dn()
216 return dn; in find_pe_dn()
228 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
234 pr_debug("rtas_msi: counting %pOF\n", dn); in count_non_bridge_devices()
236 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
245 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
251 if (dn == counts->requestor) in count_spare_msis()
257 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
261 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()