Lines Matching defs:dn
38 void * __devinit update_dn_pci_info(struct device_node *dn, void *data)
42 of_get_property(dn, "ibm,pci-config-space-type", NULL);
50 dn->data = pdn;
51 pdn->node = dn;
53 regs = of_get_property(dn, "reg", NULL);
85 struct device_node *dn, *nextdn;
89 for (dn = start->child; dn; dn = nextdn) {
94 classp = of_get_property(dn, "class-code", NULL);
97 if (pre && ((ret = pre(dn, data)) != NULL))
101 if (dn->child && ((class >> 8) == PCI_CLASS_BRIDGE_PCI ||
104 nextdn = dn->child;
105 else if (dn->sibling)
107 nextdn = dn->sibling;
111 dn = dn->parent;
112 if (dn == start)
114 } while (dn->sibling == NULL);
115 nextdn = dn->sibling;
131 struct device_node *dn = phb->dn;
135 update_dn_pci_info(dn, phb);
136 pdn = dn->data;
142 /* Update dn->phb ptrs for new phb and children devices */
143 traverse_pci_devices(dn, update_dn_pci_info, phb);
150 static void *is_devfn_node(struct device_node *dn, void *data)
154 struct pci_dn *pci = dn->data;
157 return dn;
177 struct device_node *dn;
180 dn = traverse_pci_devices(orig_dn, is_devfn_node, (void *)searchval);
181 if (dn)
182 dev->sysdata = dn;
183 return dn;