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