Lines Matching refs:dn
117 struct device_node *dn; in check_req() local
121 dn = pci_device_to_OF_node(pdev); in check_req()
123 p = of_get_property(dn, prop_name, NULL); in check_req()
125 pr_debug("rtas_msi: No %s on %pOF\n", prop_name, dn); in check_req()
156 struct device_node *dn; in __find_pe_total_msi() local
159 dn = of_node_get(node); in __find_pe_total_msi()
160 while (dn) { in __find_pe_total_msi()
161 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in __find_pe_total_msi()
164 dn); in __find_pe_total_msi()
166 return dn; in __find_pe_total_msi()
169 dn = of_get_next_parent(dn); in __find_pe_total_msi()
182 struct device_node *dn; in find_pe_dn() local
187 dn = pci_device_to_OF_node(dev); in find_pe_dn()
188 if (!dn) in find_pe_dn()
192 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
196 dn = pci_device_to_OF_node(edev->pdev); in find_pe_dn()
197 if (!dn) in find_pe_dn()
201 dn = of_get_parent(dn); in find_pe_dn()
202 if (!dn) in find_pe_dn()
207 pr_debug("rtas_msi: using PE dn %pOF\n", dn); in find_pe_dn()
209 return dn; in find_pe_dn()
221 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
227 pr_debug("rtas_msi: counting %pOF\n", dn); in count_non_bridge_devices()
229 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
238 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
244 if (dn == counts->requestor) in count_spare_msis()
250 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
254 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()
570 phb->dn, virq, hwirq, nr_irqs); in pseries_irq_domain_alloc()
595 pr_debug("%s bridge %pOF %d #%d\n", __func__, phb->dn, virq, nr_irqs); in pseries_irq_domain_free()
620 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
625 phb->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(phb->dn), in __pseries_msi_allocate_domains()
630 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
643 if (!__find_pe_total_msi(phb->dn, &count)) { in pseries_msi_allocate_domains()
645 phb->dn, phb->global_number); in pseries_msi_allocate_domains()