/arch/powerpc/platforms/pseries/ |
D | eeh.c | 134 static void rtas_slot_error_detail(struct pci_dn *pdn, int severity, in rtas_slot_error_detail() argument 146 config_addr = pdn->eeh_config_addr; in rtas_slot_error_detail() 147 if (pdn->eeh_pe_config_addr) in rtas_slot_error_detail() 148 config_addr = pdn->eeh_pe_config_addr; in rtas_slot_error_detail() 152 BUID_HI(pdn->phb->buid), in rtas_slot_error_detail() 153 BUID_LO(pdn->phb->buid), in rtas_slot_error_detail() 173 static size_t gather_pci_data(struct pci_dn *pdn, char * buf, size_t len) in gather_pci_data() argument 175 struct pci_dev *dev = pdn->pcidev; in gather_pci_data() 180 n += scnprintf(buf+n, len-n, "%s\n", pdn->node->full_name); in gather_pci_data() 181 printk(KERN_WARNING "EEH: of node=%s\n", pdn->node->full_name); in gather_pci_data() [all …]
|
D | msi.c | 31 struct pci_dn *pdn; in get_pdn() local 39 pdn = PCI_DN(dn); in get_pdn() 40 if (!pdn) { in get_pdn() 45 return pdn; in get_pdn() 50 static int rtas_change_msi(struct pci_dn *pdn, u32 func, u32 num_irqs) in rtas_change_msi() argument 56 addr = rtas_config_addr(pdn->busno, pdn->devfn, 0); in rtas_change_msi() 57 buid = pdn->phb->buid; in rtas_change_msi() 88 struct pci_dn *pdn; in rtas_disable_msi() local 90 pdn = get_pdn(pdev); in rtas_disable_msi() 91 if (!pdn) in rtas_disable_msi() [all …]
|
D | iommu.c | 424 struct device_node *dn, *pdn; in pci_dma_bus_setup_pSeriesLP() local 434 for (pdn = dn; pdn != NULL; pdn = pdn->parent) { in pci_dma_bus_setup_pSeriesLP() 435 dma_window = of_get_property(pdn, "ibm,dma-window", NULL); in pci_dma_bus_setup_pSeriesLP() 445 ppci = PCI_DN(pdn); in pci_dma_bus_setup_pSeriesLP() 448 pdn->full_name, ppci->iommu_table); in pci_dma_bus_setup_pSeriesLP() 453 iommu_table_setparms_lpar(ppci->phb, pdn, tbl, dma_window, in pci_dma_bus_setup_pSeriesLP() 459 if (pdn != dn) in pci_dma_bus_setup_pSeriesLP() 505 struct device_node *pdn, *dn; in pci_dma_dev_setup_pSeriesLP() local 521 for (pdn = dn; pdn && PCI_DN(pdn) && !PCI_DN(pdn)->iommu_table; in pci_dma_dev_setup_pSeriesLP() 522 pdn = pdn->parent) { in pci_dma_dev_setup_pSeriesLP() [all …]
|
D | eeh_event.c | 60 struct pci_dn *pdn; in eeh_event_handler() local 85 pdn = handle_eeh_events(event); in eeh_event_handler() 93 if (pdn && pdn->eeh_freeze_count>0) { in eeh_event_handler() 95 if (pdn->eeh_freeze_count>0) in eeh_event_handler() 96 pdn->eeh_freeze_count--; in eeh_event_handler()
|
D | pci_dlpar.c | 59 struct pci_dn *pdn = dn->data; in pcibios_find_pci_bus() local 61 if (!pdn || !pdn->phb || !pdn->phb->bus) in pcibios_find_pci_bus() 64 return find_bus_among_children(pdn->phb->bus, dn); in pcibios_find_pci_bus()
|
D | eeh_sysfs.c | 45 struct pci_dn *pdn; \ 50 pdn = PCI_DN(dn); \ 51 return sprintf(buf, _format "\n", pdn->_memb); \
|
D | eeh_driver.c | 45 static void print_device_node_tree(struct pci_dn *pdn, int dent) 50 if (!pdn) 55 pdn->node->name, pdn->eeh_mode, pdn->eeh_config_addr, 56 pdn->eeh_pe_config_addr, pdn->node->full_name); 58 pc = pdn->node->child;
|
D | eeh_cache.c | 180 struct pci_dn *pdn; in __pci_addr_cache_insert_device() local 190 pdn = PCI_DN(dn); in __pci_addr_cache_insert_device() 191 if (!(pdn->eeh_mode & EEH_MODE_SUPPORTED) || in __pci_addr_cache_insert_device() 192 pdn->eeh_mode & EEH_MODE_NOCHECK) { in __pci_addr_cache_insert_device() 195 pci_name(dev), pdn->node->full_name); in __pci_addr_cache_insert_device()
|
/arch/powerpc/kernel/ |
D | pci_dn.c | 44 struct pci_dn *pdn; in update_dn_pci_info() local 46 pdn = alloc_maybe_bootmem(sizeof(*pdn), GFP_KERNEL); in update_dn_pci_info() 47 if (pdn == NULL) in update_dn_pci_info() 49 memset(pdn, 0, sizeof(*pdn)); in update_dn_pci_info() 50 dn->data = pdn; in update_dn_pci_info() 51 pdn->node = dn; in update_dn_pci_info() 52 pdn->phb = phb; in update_dn_pci_info() 56 pdn->busno = (regs[0] >> 16) & 0xff; in update_dn_pci_info() 57 pdn->devfn = (regs[0] >> 8) & 0xff; in update_dn_pci_info() 60 pdn->pci_ext_config_space = (type && *type == 1); in update_dn_pci_info() [all …]
|
D | rtas_pci.c | 59 int rtas_read_config(struct pci_dn *pdn, int where, int size, u32 *val) in rtas_read_config() argument 65 if (!pdn) in rtas_read_config() 67 if (!config_access_valid(pdn, where)) in rtas_read_config() 70 addr = rtas_config_addr(pdn->busno, pdn->devfn, where); in rtas_read_config() 71 buid = pdn->phb->buid; in rtas_read_config() 84 eeh_dn_check_failure (pdn->node, NULL)) in rtas_read_config() 103 struct pci_dn *pdn = PCI_DN(dn); in rtas_pci_read_config() local 104 if (pdn && pdn->devfn == devfn in rtas_pci_read_config() 106 return rtas_read_config(pdn, where, size, val); in rtas_pci_read_config() 112 int rtas_write_config(struct pci_dn *pdn, int where, int size, u32 val) in rtas_write_config() argument [all …]
|
/arch/powerpc/platforms/iseries/ |
D | iommu.c | 158 struct pci_dn *pdn = PCI_DN(node); in iommu_table_find() local 161 if (pdn == NULL) in iommu_table_find() 163 it = pdn->iommu_table; in iommu_table_find() 180 struct pci_dn *pdn = PCI_DN(dn); in iommu_devnode_init_iSeries() local 187 iommu_table_getparms_iSeries(pdn->busno, *lsn, 0, tbl); in iommu_devnode_init_iSeries() 190 pdn->iommu_table = iommu_table_find(tbl); in iommu_devnode_init_iSeries() 191 if (pdn->iommu_table == NULL) in iommu_devnode_init_iSeries() 192 pdn->iommu_table = iommu_init_table(tbl, -1); in iommu_devnode_init_iSeries() 195 pdev->dev.archdata.dma_data = pdn->iommu_table; in iommu_devnode_init_iSeries()
|
D | pci.c | 84 struct pci_dn *pdn = PCI_DN(node); in iseries_ds_addr() local 87 return ((u64)pdn->busno << 48) + ((u64)(sbp ? *sbp : 0) << 40) in iseries_ds_addr() 392 struct pci_dn *pdn = PCI_DN(node); in find_device_node() local 394 if (pdn && (bus == pdn->busno) && (devfn == pdn->devfn)) in find_device_node() 549 struct pci_dn *pdn = PCI_DN(dn); in check_return_code() local 553 type, pdn->busno, pdn->devfn, in check_return_code()
|
/arch/powerpc/include/asm/ |
D | ppc-pci.h | 69 void eeh_slot_error_detail (struct pci_dn *pdn, int severity); 80 int rtas_pci_enable(struct pci_dn *pdn, int function); 94 int eeh_wait_for_slot_status(struct pci_dn *pdn, int max_wait_msecs);
|
D | pci-bridge.h | 235 struct pci_dn *pdn = dn->data; in pci_device_to_OF_node() local 237 if (pdn && pdn->devfn == dev->devfn && pdn->busno == dev->bus->number) in pci_device_to_OF_node()
|