Lines Matching refs:pdn
598 static void pnv_pci_config_check_eeh(struct pci_dn *pdn)
600 struct pnv_phb *phb = pdn->phb->private_data;
611 pe_no = pdn->pe_number;
636 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate);
653 int pnv_pci_cfg_read(struct pci_dn *pdn,
656 struct pnv_phb *phb = pdn->phb->private_data;
657 u32 bdfn = (pdn->busno << 8) | pdn->devfn;
685 __func__, pdn->busno, pdn->devfn, where, size, *val);
689 int pnv_pci_cfg_write(struct pci_dn *pdn,
692 struct pnv_phb *phb = pdn->phb->private_data;
693 u32 bdfn = (pdn->busno << 8) | pdn->devfn;
696 __func__, pdn->busno, pdn->devfn, where, size, val);
715 static bool pnv_pci_cfg_check(struct pci_dn *pdn)
718 struct pnv_phb *phb = pdn->phb->private_data;
725 edev = pdn->edev;
738 static inline pnv_pci_cfg_check(struct pci_dn *pdn)
748 struct pci_dn *pdn;
753 pdn = pci_get_pdn_by_devfn(bus, devfn);
754 if (!pdn)
757 if (!pnv_pci_cfg_check(pdn))
760 ret = pnv_pci_cfg_read(pdn, where, size, val);
761 phb = pdn->phb->private_data;
762 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) {
764 eeh_dev_check_failure(pdn->edev))
767 pnv_pci_config_check_eeh(pdn);
777 struct pci_dn *pdn;
781 pdn = pci_get_pdn_by_devfn(bus, devfn);
782 if (!pdn)
785 if (!pnv_pci_cfg_check(pdn))
788 ret = pnv_pci_cfg_write(pdn, where, size, val);
789 phb = pdn->phb->private_data;
791 pnv_pci_config_check_eeh(pdn);