Lines Matching refs:dn
116 struct device_node *dn; in check_req() local
120 dn = pci_device_to_OF_node(pdev); in check_req()
122 p = of_get_property(dn, prop_name, NULL); in check_req()
124 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
155 struct device_node *dn; in __find_pe_total_msi() local
158 dn = of_node_get(node); in __find_pe_total_msi()
159 while (dn) { in __find_pe_total_msi()
160 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in __find_pe_total_msi()
163 dn); in __find_pe_total_msi()
165 return dn; in __find_pe_total_msi()
168 dn = of_get_next_parent(dn); in __find_pe_total_msi()
181 struct device_node *dn; in find_pe_dn() local
186 dn = pci_device_to_OF_node(dev); in find_pe_dn()
187 if (!dn) in find_pe_dn()
191 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
195 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
196 if (!dn) in find_pe_dn()
200 dn = of_get_parent(dn); in find_pe_dn()
201 if (!dn) in find_pe_dn()
206 pr_debug("rtas_msi: using PE dn %pOF\n", dn); in find_pe_dn()
208 return dn; in find_pe_dn()
220 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
226 pr_debug("rtas_msi: counting %pOF\n", dn); in count_non_bridge_devices()
228 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
237 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
243 if (dn == counts->requestor) in count_spare_msis()
249 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
253 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()
590 phb->dn, virq, hwirq, nr_irqs); in pseries_irq_domain_alloc()
615 pr_debug("%s bridge %pOF %d #%d\n", __func__, phb->dn, virq, nr_irqs); in pseries_irq_domain_free()
640 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
645 phb->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(phb->dn), in __pseries_msi_allocate_domains()
650 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
663 if (!__find_pe_total_msi(phb->dn, &count)) { in pseries_msi_allocate_domains()
665 phb->dn, phb->global_number); in pseries_msi_allocate_domains()