Lines Matching full:dn
79 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic);
81 static inline void axon_msi_debug_setup(struct device_node *dn, in axon_msi_debug_setup() argument
154 struct device_node *dn, *tmp; in find_msi_translator() local
158 dn = of_node_get(pci_device_to_OF_node(dev)); in find_msi_translator()
159 if (!dn) { in find_msi_translator()
164 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator()
165 ph = of_get_property(dn, "msi-translator", NULL); in find_msi_translator()
176 tmp = dn; in find_msi_translator()
177 dn = of_find_node_by_phandle(*ph); in find_msi_translator()
179 if (!dn) { in find_msi_translator()
185 irq_domain = irq_find_host(dn); in find_msi_translator()
188 dn); in find_msi_translator()
195 of_node_put(dn); in find_msi_translator()
202 struct device_node *dn; in setup_msi_msg_address() local
206 dn = of_node_get(pci_device_to_OF_node(dev)); in setup_msi_msg_address()
207 if (!dn) { in setup_msi_msg_address()
212 for (; dn; dn = of_get_next_parent(dn)) { in setup_msi_msg_address()
214 prop = of_get_property(dn, "msi-address-64", &len); in setup_msi_msg_address()
219 prop = of_get_property(dn, "msi-address-32", &len); in setup_msi_msg_address()
227 of_node_put(dn); in setup_msi_msg_address()
243 of_node_put(dn); in setup_msi_msg_address()
247 of_node_put(dn); in setup_msi_msg_address()
331 struct device_node *dn = device->dev.of_node; in axon_msi_probe() local
336 pr_devel("axon_msi: setting up dn %pOF\n", dn); in axon_msi_probe()
341 dn); in axon_msi_probe()
345 dcr_base = dcr_resource_start(dn, 0); in axon_msi_probe()
346 dcr_len = dcr_resource_len(dn, 0); in axon_msi_probe()
351 dn); in axon_msi_probe()
355 msic->dcr_host = dcr_map(dn, dcr_base, dcr_len); in axon_msi_probe()
358 dn); in axon_msi_probe()
366 dn); in axon_msi_probe()
370 virq = irq_of_parse_and_map(dn, 0); in axon_msi_probe()
373 dn); in axon_msi_probe()
379 msic->irq_domain = irq_domain_add_nomap(dn, 65536, &msic_host_ops, msic); in axon_msi_probe()
382 dn); in axon_msi_probe()
406 axon_msi_debug_setup(dn, msic); in axon_msi_probe()
408 printk(KERN_DEBUG "axon_msi: setup MSIC on %pOF\n", dn); in axon_msi_probe()
461 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic) in axon_msi_debug_setup() argument
466 if (of_address_to_resource(dn, 0, &res)) { in axon_msi_debug_setup()
477 snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); in axon_msi_debug_setup()