Lines Matching refs:pdn

167 	struct pci_dn *pdn = eeh_dev_to_pdn(edev);  in eeh_dump_dev_log()  local
174 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
175 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
177 edev->phb->global_number, pdn->busno, in eeh_dump_dev_log()
178 PCI_SLOT(pdn->devfn), PCI_FUNC(pdn->devfn)); in eeh_dump_dev_log()
180 eeh_ops->read_config(pdn, PCI_VENDOR_ID, 4, &cfg); in eeh_dump_dev_log()
184 eeh_ops->read_config(pdn, PCI_COMMAND, 4, &cfg); in eeh_dump_dev_log()
190 eeh_ops->read_config(pdn, PCI_SEC_STATUS, 2, &cfg); in eeh_dump_dev_log()
194 eeh_ops->read_config(pdn, PCI_BRIDGE_CONTROL, 2, &cfg); in eeh_dump_dev_log()
202 eeh_ops->read_config(pdn, cap, 4, &cfg); in eeh_dump_dev_log()
206 eeh_ops->read_config(pdn, cap+4, 4, &cfg); in eeh_dump_dev_log()
218 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
245 eeh_ops->read_config(pdn, cap+4*i, 4, &cfg); in eeh_dump_dev_log()
438 struct pci_dn *pdn; in eeh_dev_check_failure() local
496 pdn = eeh_dev_to_pdn(edev); in eeh_dev_check_failure()
497 if (pdn->node) in eeh_dev_check_failure()
498 location = of_get_property(pdn->node, "ibm,loc-code", NULL); in eeh_dev_check_failure()
724 struct pci_dn *pdn = eeh_dev_to_pdn(edev); in eeh_restore_dev_state() local
732 if (pdn && eeh_ops->restore_config) in eeh_restore_dev_state()
733 eeh_ops->restore_config(pdn); in eeh_restore_dev_state()
899 struct pci_dn *pdn; in eeh_save_bars() local
902 pdn = eeh_dev_to_pdn(edev); in eeh_save_bars()
903 if (!pdn) in eeh_save_bars()
907 eeh_ops->read_config(pdn, i * 4, 4, &edev->config_space[i]); in eeh_save_bars()
998 struct pci_dn *pdn; in eeh_init() local
1034 pdn = hose->pci_data; in eeh_init()
1035 traverse_pci_dn(pdn, eeh_ops->probe, NULL); in eeh_init()
1071 void eeh_add_device_early(struct pci_dn *pdn) in eeh_add_device_early() argument
1074 struct eeh_dev *edev = pdn_to_eeh_dev(pdn); in eeh_add_device_early()
1088 eeh_ops->probe(pdn, NULL); in eeh_add_device_early()
1099 void eeh_add_device_tree_early(struct pci_dn *pdn) in eeh_add_device_tree_early() argument
1103 if (!pdn) in eeh_add_device_tree_early()
1106 list_for_each_entry(n, &pdn->child_list, list) in eeh_add_device_tree_early()
1108 eeh_add_device_early(pdn); in eeh_add_device_tree_early()
1121 struct pci_dn *pdn; in eeh_add_device_late() local
1129 pdn = pci_get_pdn_by_devfn(dev->bus, dev->devfn); in eeh_add_device_late()
1130 edev = pdn_to_eeh_dev(pdn); in eeh_add_device_late()
1160 eeh_ops->probe(pdn, NULL); in eeh_add_device_late()