Lines Matching refs:dn

134 	struct device_node *dn;  in check_req()  local
143 dn = pdn->node; in check_req()
145 p = of_get_property(dn, prop_name, NULL); in check_req()
147 pr_debug("rtas_msi: No %s on %s\n", prop_name, dn->full_name); in check_req()
178 struct device_node *dn; in find_pe_total_msi() local
181 dn = of_node_get(pci_device_to_OF_node(dev)); in find_pe_total_msi()
182 while (dn) { in find_pe_total_msi()
183 p = of_get_property(dn, "ibm,pe-total-#msi", NULL); in find_pe_total_msi()
186 dn->full_name); in find_pe_total_msi()
188 return dn; in find_pe_total_msi()
191 dn = of_get_next_parent(dn); in find_pe_total_msi()
199 struct device_node *dn; in find_pe_dn() local
205 dn = pci_device_to_OF_node(dev); in find_pe_dn()
206 if (!dn) in find_pe_dn()
210 edev = pdn_to_eeh_dev(PCI_DN(dn)); in find_pe_dn()
214 dn = pdn ? pdn->node : NULL; in find_pe_dn()
215 if (!dn) in find_pe_dn()
219 dn = of_get_parent(dn); in find_pe_dn()
220 if (!dn) in find_pe_dn()
225 pr_debug("rtas_msi: using PE dn %s\n", dn->full_name); in find_pe_dn()
227 return dn; in find_pe_dn()
239 static void *count_non_bridge_devices(struct device_node *dn, void *data) in count_non_bridge_devices() argument
245 pr_debug("rtas_msi: counting %s\n", dn->full_name); in count_non_bridge_devices()
247 p = of_get_property(dn, "class-code", NULL); in count_non_bridge_devices()
256 static void *count_spare_msis(struct device_node *dn, void *data) in count_spare_msis() argument
262 if (dn == counts->requestor) in count_spare_msis()
268 p = of_get_property(dn, "ibm,req#msi", NULL); in count_spare_msis()
272 p = of_get_property(dn, "ibm,req#msi-x", NULL); in count_spare_msis()