Lines Matching full:pdn

46 int rtas_pci_dn_read_config(struct pci_dn *pdn, int where, int size, u32 *val)  in rtas_pci_dn_read_config()  argument
52 if (!pdn) in rtas_pci_dn_read_config()
54 if (!config_access_valid(pdn, where)) in rtas_pci_dn_read_config()
57 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_read_config()
58 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_pci_dn_read_config()
62 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_pci_dn_read_config()
63 buid = pdn->phb->buid; in rtas_pci_dn_read_config()
82 struct pci_dn *pdn; in rtas_pci_read_config() local
87 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_read_config()
89 /* Validity of pdn is checked in here */ in rtas_pci_read_config()
90 ret = rtas_pci_dn_read_config(pdn, where, size, val); in rtas_pci_read_config()
92 eeh_dev_check_failure(pdn_to_eeh_dev(pdn))) in rtas_pci_read_config()
98 int rtas_pci_dn_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_pci_dn_write_config() argument
103 if (!pdn) in rtas_pci_dn_write_config()
105 if (!config_access_valid(pdn, where)) in rtas_pci_dn_write_config()
108 if (pdn->edev && pdn->edev->pe && in rtas_pci_dn_write_config()
109 (pdn->edev->pe->state & EEH_PE_CFG_BLOCKED)) in rtas_pci_dn_write_config()
113 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_pci_dn_write_config()
114 buid = pdn->phb->buid; in rtas_pci_dn_write_config()
132 struct pci_dn *pdn; in rtas_pci_write_config() local
134 pdn = pci_get_pdn_by_devfn(bus, devfn); in rtas_pci_write_config()
136 /* Validity of pdn is checked in here. */ in rtas_pci_write_config()
137 return rtas_pci_dn_write_config(pdn, where, size, val); in rtas_pci_write_config()