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