Lines Matching refs:pdn

165 	struct pci_dn *pdn = eeh_dev_to_pdn(edev);  in eeh_dump_dev_log()  local
172 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
173 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
175 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
176 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
178 eeh_ops->read_config(pdn, PCI_VENDOR_ID, 4, &cfg); in eeh_dump_dev_log()
182 eeh_ops->read_config(pdn, PCI_COMMAND, 4, &cfg); in eeh_dump_dev_log()
188 eeh_ops->read_config(pdn, PCI_SEC_STATUS, 2, &cfg); in eeh_dump_dev_log()
192 eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &cfg); in eeh_dump_dev_log()
200 eeh_ops->read_config(pdn, cap, 4, &cfg); in eeh_dump_dev_log()
204 eeh_ops->read_config(pdn, cap+4, 4, &cfg); in eeh_dump_dev_log()
216 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
243 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
437 struct pci_dn *pdn; in eeh_dev_check_failure() local
495 pdn = eeh_dev_to_pdn(edev); in eeh_dev_check_failure()
496 if (pdn->node) in eeh_dev_check_failure()
497 location = of_get_property(pdn->node, "ibm,loc-code", NULL); in eeh_dev_check_failure()
723 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_dev_state() local
731 if (pdn && eeh_ops->restore_config) in eeh_restore_dev_state()
732 eeh_ops->restore_config(pdn); in eeh_restore_dev_state()
898 struct pci_dn *pdn; in eeh_save_bars() local
901 pdn = eeh_dev_to_pdn(edev); in eeh_save_bars()
902 if (!pdn) in eeh_save_bars()
906 eeh_ops->read_config(pdn, i * 4, 4, &edev->config_space[i]); in eeh_save_bars()
997 struct pci_dn *pdn; in eeh_init() local
1033 pdn = hose->pci_data; in eeh_init()
1034 traverse_pci_dn(pdn, eeh_ops->probe, NULL); in eeh_init()
1070 void eeh_add_device_early(struct pci_dn *pdn) in eeh_add_device_early() argument
1073 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in eeh_add_device_early()
1087 eeh_ops->probe(pdn, NULL); in eeh_add_device_early()
1098 void eeh_add_device_tree_early(struct pci_dn *pdn) in eeh_add_device_tree_early() argument
1102 if (!pdn) in eeh_add_device_tree_early()
1105 list_for_each_entry(n, &pdn->child_list, list) in eeh_add_device_tree_early()
1107 eeh_add_device_early(pdn); in eeh_add_device_tree_early()
1120 struct pci_dn *pdn; in eeh_add_device_late() local
1128 pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); in eeh_add_device_late()
1129 edev = pdn_to_eeh_dev(pdn); in eeh_add_device_late()
1159 eeh_ops->probe(pdn, NULL); in eeh_add_device_late()