Lines Matching refs:parent
45 pbus = pbus->parent; in pci_bus_to_pdn()
62 struct pci_dn *parent, *pdn; in pci_get_pdn_by_devfn() local
82 parent = pci_bus_to_pdn(bus); in pci_get_pdn_by_devfn()
83 if (!parent) in pci_get_pdn_by_devfn()
86 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn_by_devfn()
98 struct pci_dn *parent, *pdn; in pci_get_pdn() local
114 parent = pci_bus_to_pdn(pdev->bus); in pci_get_pdn()
115 if (!parent) in pci_get_pdn()
118 list_for_each_entry(pdn, &parent->child_list, list) { in pci_get_pdn()
148 static struct pci_dn *add_one_sriov_vf_pdn(struct pci_dn *parent, in add_one_sriov_vf_pdn() argument
154 if (!parent) in add_one_sriov_vf_pdn()
161 pdn->phb = parent->phb; in add_one_sriov_vf_pdn()
162 pdn->parent = parent; in add_one_sriov_vf_pdn()
168 list_add_tail(&pdn->list, &parent->child_list); in add_one_sriov_vf_pdn()
175 struct pci_dn *parent, *pdn; in add_sriov_vf_pdns() local
188 parent = pci_bus_to_pdn(pdev->bus); in add_sriov_vf_pdns()
189 if (!parent) in add_sriov_vf_pdns()
195 pdn = add_one_sriov_vf_pdn(parent, in add_sriov_vf_pdns()
219 struct pci_dn *parent; in remove_sriov_vf_pdns() local
233 parent = pci_bus_to_pdn(pdev->bus); in remove_sriov_vf_pdns()
234 if (!parent) in remove_sriov_vf_pdns()
246 &parent->child_list, list) { in remove_sriov_vf_pdns()
287 struct device_node *parent; in pci_add_device_node_info() local
331 parent = of_get_parent(dn); in pci_add_device_node_info()
332 pdn->parent = parent ? PCI_DN(parent) : NULL; in pci_add_device_node_info()
333 of_node_put(parent); in pci_add_device_node_info()
334 if (pdn->parent) in pci_add_device_node_info()
335 list_add_tail(&pdn->list, &pdn->parent->child_list); in pci_add_device_node_info()
344 struct device_node *parent; in pci_remove_device_node_info() local
360 parent = of_get_parent(dn); in pci_remove_device_node_info()
361 if (parent) in pci_remove_device_node_info()
362 of_node_put(parent); in pci_remove_device_node_info()
436 dn = dn->parent; in pci_traverse_device_nodes()