Lines Matching refs:dn

78 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic);
80 static inline void axon_msi_debug_setup(struct device_node *dn, in axon_msi_debug_setup() argument
153 struct device_node *dn, *tmp; in find_msi_translator() local
157 dn = of_node_get(pci_device_to_OF_node(dev)); in find_msi_translator()
158 if (!dn) { in find_msi_translator()
163 for (; dn; dn = of_get_next_parent(dn)) { in find_msi_translator()
164 ph = of_get_property(dn, "msi-translator", NULL); in find_msi_translator()
175 tmp = dn; in find_msi_translator()
176 dn = of_find_node_by_phandle(*ph); in find_msi_translator()
178 if (!dn) { in find_msi_translator()
184 irq_domain = irq_find_host(dn); in find_msi_translator()
187 dn); in find_msi_translator()
194 of_node_put(dn); in find_msi_translator()
201 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()
214 for (; dn; dn = of_get_next_parent(dn)) { in setup_msi_msg_address()
216 prop = of_get_property(dn, "msi-address-64", &len); in setup_msi_msg_address()
221 prop = of_get_property(dn, "msi-address-32", &len); in setup_msi_msg_address()
244 of_node_put(dn); in setup_msi_msg_address()
248 of_node_put(dn); in setup_msi_msg_address()
334 struct device_node *dn = device->dev.of_node; in axon_msi_probe() local
339 pr_devel("axon_msi: setting up dn %pOF\n", dn); in axon_msi_probe()
344 dn); in axon_msi_probe()
348 dcr_base = dcr_resource_start(dn, 0); in axon_msi_probe()
349 dcr_len = dcr_resource_len(dn, 0); in axon_msi_probe()
354 dn); in axon_msi_probe()
358 msic->dcr_host = dcr_map(dn, dcr_base, dcr_len); in axon_msi_probe()
361 dn); in axon_msi_probe()
369 dn); in axon_msi_probe()
373 virq = irq_of_parse_and_map(dn, 0); in axon_msi_probe()
376 dn); in axon_msi_probe()
382 msic->irq_domain = irq_domain_add_nomap(dn, 65536, &msic_host_ops, msic); in axon_msi_probe()
385 dn); in axon_msi_probe()
409 axon_msi_debug_setup(dn, msic); in axon_msi_probe()
411 printk(KERN_DEBUG "axon_msi: setup MSIC on %pOF\n", dn); in axon_msi_probe()
464 void axon_msi_debug_setup(struct device_node *dn, struct axon_msic *msic) in axon_msi_debug_setup() argument
469 addr = of_translate_address(dn, of_get_property(dn, "reg", NULL)); in axon_msi_debug_setup()
481 snprintf(name, sizeof(name), "msic_%d", of_node_to_nid(dn)); in axon_msi_debug_setup()