Lines Matching refs:dn
132 struct device_node *dn; in check_req() local
141 dn = pdn->node; in check_req()
143 p = of_get_property(dn, prop_name, NULL); in check_req()
145 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); in check_req()
176 struct device_node *dn; in find_pe_total_msi() local
179 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
180 while (dn) { in find_pe_total_msi()
181 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi()
184 dn->full_name); in find_pe_total_msi()
186 return dn; in find_pe_total_msi()
189 dn = of_get_next_parent(dn); in find_pe_total_msi()
197 struct device_node *dn; in find_pe_dn() local
203 dn = pci_device_to_OF_node(dev); in find_pe_dn()
204 if (!dn) in find_pe_dn()
208 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
212 dn = pdn ? pdn->node : NULL; in find_pe_dn()
213 if (!dn) in find_pe_dn()
217 dn = of_get_parent(dn); in find_pe_dn()
218 if (!dn) in find_pe_dn()
223 pr_debug("rtas_msi: using PE dn %s\n", dn->full_name); in find_pe_dn()
225 return dn; in find_pe_dn()
237 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
243 pr_debug("rtas_msi: counting %s\n", dn->full_name); in count_non_bridge_devices()
245 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
254 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
260 if (dn == counts->requestor) in count_spare_msis()
266 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
270 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()