Lines Matching refs:parent
45 pbus = pbus->parent;
62 struct pci_dn *parent, *pdn;
82 parent = pci_bus_to_pdn(bus);
83 if (!parent)
86 list_for_each_entry(pdn, &parent->child_list, list) {
98 struct pci_dn *parent, *pdn;
114 parent = pci_bus_to_pdn(pdev->bus);
115 if (!parent)
118 list_for_each_entry(pdn, &parent->child_list, list) {
148 static struct pci_dn *add_one_sriov_vf_pdn(struct pci_dn *parent,
153 /* Except PHB, we always have the parent */
154 if (!parent)
161 pdn->phb = parent->phb;
162 pdn->parent = parent;
168 list_add_tail(&pdn->list, &parent->child_list);
175 struct pci_dn *parent, *pdn;
188 parent = pci_bus_to_pdn(pdev->bus);
189 if (!parent)
195 pdn = add_one_sriov_vf_pdn(parent,
219 struct pci_dn *parent;
233 parent = pci_bus_to_pdn(pdev->bus);
234 if (!parent)
246 &parent->child_list, list) {
287 struct device_node *parent;
328 /* Attach to parent node */
331 parent = of_get_parent(dn);
332 pdn->parent = parent ? PCI_DN(parent) : NULL;
333 of_node_put(parent);
334 if (pdn->parent)
335 list_add_tail(&pdn->list, &pdn->parent->child_list);
344 struct device_node *parent;
359 /* Drop the parent pci_dn's ref to our backing dt node */
360 parent = of_get_parent(dn);
361 if (parent)
362 of_node_put(parent);
436 dn = dn->parent;