Lines Matching defs:pdn
530 static void pnv_pci_config_check_eeh(struct pci_dn *pdn)
532 struct pnv_phb *phb = pdn->phb->private_data;
543 pe_no = pdn->pe_number;
568 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate);
585 int pnv_pci_cfg_read(struct pci_dn *pdn,
588 struct pnv_phb *phb = pdn->phb->private_data;
589 u32 bdfn = (pdn->busno << 8) | pdn->devfn;
617 __func__, pdn->busno, pdn->devfn, where, size, *val);
621 int pnv_pci_cfg_write(struct pci_dn *pdn,
624 struct pnv_phb *phb = pdn->phb->private_data;
625 u32 bdfn = (pdn->busno << 8) | pdn->devfn;
628 __func__, pdn->busno, pdn->devfn, where, size, val);
647 static bool pnv_pci_cfg_check(struct pci_dn *pdn)
650 struct pnv_phb *phb = pdn->phb->private_data;
657 edev = pdn->edev;
670 static inline pnv_pci_cfg_check(struct pci_dn *pdn)
680 struct pci_dn *pdn;
685 pdn = pci_get_pdn_by_devfn(bus, devfn);
686 if (!pdn)
689 if (!pnv_pci_cfg_check(pdn))
692 ret = pnv_pci_cfg_read(pdn, where, size, val);
693 phb = pdn->phb->private_data;
694 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) {
696 eeh_dev_check_failure(pdn->edev))
699 pnv_pci_config_check_eeh(pdn);
709 struct pci_dn *pdn;
713 pdn = pci_get_pdn_by_devfn(bus, devfn);
714 if (!pdn)
717 if (!pnv_pci_cfg_check(pdn))
720 ret = pnv_pci_cfg_write(pdn, where, size, val);
721 phb = pdn->phb->private_data;
723 pnv_pci_config_check_eeh(pdn);