Lines Matching full:dn
118 struct device_node *dn; in check_req() local
122 dn = pci_device_to_OF_node(pdev); in check_req()
124 p = of_get_property(dn, prop_name, NULL); in check_req()
126 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
157 struct device_node *dn; in __find_pe_total_msi() local
160 dn = of_node_get(node); in __find_pe_total_msi()
161 while (dn) { in __find_pe_total_msi()
162 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in __find_pe_total_msi()
164 pr_debug("rtas_msi: found prop on dn %pOF\n", in __find_pe_total_msi()
165 dn); in __find_pe_total_msi()
167 return dn; in __find_pe_total_msi()
170 dn = of_get_next_parent(dn); in __find_pe_total_msi()
183 struct device_node *dn; in find_pe_dn() local
188 dn = pci_device_to_OF_node(dev); in find_pe_dn()
189 if (!dn) in find_pe_dn()
193 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
197 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
198 if (!dn) in find_pe_dn()
202 dn = of_get_parent(dn); in find_pe_dn()
203 if (!dn) in find_pe_dn()
208 pr_debug("rtas_msi: using PE dn %pOF\n", dn); in find_pe_dn()
210 return dn; in find_pe_dn()
222 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
228 pr_debug("rtas_msi: counting %pOF\n", dn); in count_non_bridge_devices()
230 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
239 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
245 if (dn == counts->requestor) in count_spare_msis()
251 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
255 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()
575 phb->dn, virq, hwirq, nr_irqs); in pseries_irq_domain_alloc()
600 pr_debug("%s bridge %pOF %d #%d\n", __func__, phb->dn, virq, nr_irqs); in pseries_irq_domain_free()
625 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
630 phb->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(phb->dn), in __pseries_msi_allocate_domains()
635 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
648 if (!__find_pe_total_msi(phb->dn, &count)) { in pseries_msi_allocate_domains()
650 phb->dn, phb->global_number); in pseries_msi_allocate_domains()