• Home
  • Raw
  • Download

Lines Matching refs:pdn

531 static void pnv_pci_config_check_eeh(struct pci_dn *pdn)  in pnv_pci_config_check_eeh()  argument
533 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh()
544 pe_no = pdn->pe_number; in pnv_pci_config_check_eeh()
569 (pdn->busno << 8) | (pdn->devfn), pe_no, fstate); in pnv_pci_config_check_eeh()
586 int pnv_pci_cfg_read(struct pci_dn *pdn, in pnv_pci_cfg_read() argument
589 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read()
590 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_read()
618 __func__, pdn->busno, pdn->devfn, where, size, *val); in pnv_pci_cfg_read()
622 int pnv_pci_cfg_write(struct pci_dn *pdn, in pnv_pci_cfg_write() argument
625 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write()
626 u32 bdfn = (pdn->busno << 8) | pdn->devfn; in pnv_pci_cfg_write()
629 __func__, pdn->busno, pdn->devfn, where, size, val); in pnv_pci_cfg_write()
648 static bool pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() argument
651 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_check()
658 edev = pdn->edev; in pnv_pci_cfg_check()
671 static inline pnv_pci_cfg_check(struct pci_dn *pdn) in pnv_pci_cfg_check() argument
681 struct pci_dn *pdn; in pnv_pci_read_config() local
686 pdn = pci_get_pdn_by_devfn(bus, devfn); in pnv_pci_read_config()
687 if (!pdn) in pnv_pci_read_config()
690 if (!pnv_pci_cfg_check(pdn)) in pnv_pci_read_config()
693 ret = pnv_pci_cfg_read(pdn, where, size, val); in pnv_pci_read_config()
694 phb = pdn->phb->private_data; in pnv_pci_read_config()
695 if (phb->flags & PNV_PHB_FLAG_EEH && pdn->edev) { in pnv_pci_read_config()
697 eeh_dev_check_failure(pdn->edev)) in pnv_pci_read_config()
700 pnv_pci_config_check_eeh(pdn); in pnv_pci_read_config()
710 struct pci_dn *pdn; in pnv_pci_write_config() local
714 pdn = pci_get_pdn_by_devfn(bus, devfn); in pnv_pci_write_config()
715 if (!pdn) in pnv_pci_write_config()
718 if (!pnv_pci_cfg_check(pdn)) in pnv_pci_write_config()
721 ret = pnv_pci_cfg_write(pdn, where, size, val); in pnv_pci_write_config()
722 phb = pdn->phb->private_data; in pnv_pci_write_config()
724 pnv_pci_config_check_eeh(pdn); in pnv_pci_write_config()