Home
last modified time | relevance | path

Searched refs:phb (Results 1 – 25 of 51) sorted by relevance

123

/linux/arch/powerpc/platforms/powernv/
A Dpci-ioda.c122 phb->ioda.pe_array[pe_no].phb = phb; in pnv_ioda_init_pe()
191 struct pnv_phb *phb = pe->phb; in pnv_ioda_free_pe() local
1400 struct pnv_phb *phb = pe->phb; in pnv_pci_ioda2_tce_invalidate_pe() local
1417 struct pnv_phb *phb = pe->phb; in pnv_pci_ioda2_tce_invalidate() local
1641 struct pnv_phb *phb = pe->phb; in pnv_pci_ioda2_set_window() local
1819 struct pnv_phb *phb = pe->phb; in pnv_pci_ioda2_unset_window() local
2330 struct pnv_phb *phb = pe->phb; in pnv_ioda_setup_pe_res() local
2705 struct pnv_phb *phb = pe->phb; in pnv_pci_ioda1_unset_window() local
2776 struct pnv_phb *phb = pe->phb; in pnv_ioda_free_pe_seg() local
2797 struct pnv_phb *phb = pe->phb; in pnv_ioda_release_pe_seg() local
[all …]
A Deeh-powernv.c207 if (phb->has_dbgfs || !phb->dbgfs) in pnv_eeh_post_init()
484 phb->freeze_pe(phb, pe->addr); in pnv_eeh_set_option()
501 return phb->unfreeze_pe(phb, pe->addr, opt); in pnv_eeh_set_option()
516 struct pnv_phb *phb = pe->phb->private_data; in pnv_eeh_get_phb_diag() local
528 struct pnv_phb *phb = pe->phb->private_data; in pnv_eeh_get_phb_state() local
567 struct pnv_phb *phb = pe->phb->private_data; in pnv_eeh_get_pe_state() local
592 fstate = phb->get_pe_state(phb, pe->addr); in pnv_eeh_get_pe_state()
655 phb->freeze_pe(phb, pe->addr); in pnv_eeh_get_pe_state()
1368 phb->freeze_pe(phb, pe_no); in pnv_eeh_get_pe()
1387 phb->freeze_pe(phb, dev_pe->addr); in pnv_eeh_get_pe()
[all …]
A Dpci-sriov.c156 mul = phb->ioda.total_pe_num; in pnv_pci_ioda_fixup_iov_resources()
287 struct pnv_phb *phb; in pnv_pci_vf_release_m64() local
290 phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_vf_release_m64()
404 phb->ioda.m64_bar_idx + 1, 0); in pnv_pci_alloc_m64_bar()
418 struct pnv_phb *phb; in pnv_pci_vf_assign_m64() local
426 phb = pci_bus_to_pnvhb(pdev->bus); in pnv_pci_vf_assign_m64()
477 struct pnv_phb *phb; in pnv_ioda_release_vf_PE() local
616 struct pnv_phb *phb; in pnv_ioda_setup_vf_PE() local
637 pe->phb = phb; in pnv_ioda_setup_vf_PE()
678 struct pnv_phb *phb; in pnv_pci_sriov_enable() local
[all …]
A Dpci-cxl.c15 struct pnv_phb *phb = hose->private_data; in pnv_phb_to_cxl_mode() local
41 struct pnv_phb *phb = hose->private_data; in pnv_cxl_alloc_hwirqs() local
49 return phb->msi_base + hwirq; in pnv_cxl_alloc_hwirqs()
56 struct pnv_phb *phb = hose->private_data; in pnv_cxl_release_hwirqs() local
58 msi_bitmap_free_hwirqs(&phb->msi_bmp, hwirq - phb->msi_base, num); in pnv_cxl_release_hwirqs()
66 struct pnv_phb *phb = hose->private_data; in pnv_cxl_release_hwirq_ranges() local
75 hwirq = irqs->offset[i] - phb->msi_base; in pnv_cxl_release_hwirq_ranges()
86 struct pnv_phb *phb = hose->private_data; in pnv_cxl_alloc_hwirq_ranges() local
103 irqs->offset[i] = phb->msi_base + hwirq; in pnv_cxl_alloc_hwirq_ranges()
124 return phb->msi_bmp.irq_count; in pnv_cxl_get_irq_count()
[all …]
A Dpci.c497 rc = opal_pci_get_phb_diag_data2(phb->opal_id, phb->diag_data, in pnv_pci_handle_eeh_config()
503 ret = phb->unfreeze_pe(phb, in pnv_pci_handle_eeh_config()
526 pnv_pci_dump_phb_diag_data(phb->hose, phb->diag_data); in pnv_pci_handle_eeh_config()
533 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_config_check_eeh() local
554 fstate = phb->get_pe_state(phb, pe_no); in pnv_pci_config_check_eeh()
580 phb->freeze_pe(phb, pe_no); in pnv_pci_config_check_eeh()
589 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_read() local
625 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_write() local
651 struct pnv_phb *phb = pdn->phb->private_data; in pnv_pci_cfg_check() local
694 phb = pdn->phb->private_data; in pnv_pci_read_config()
[all …]
A Dpci.h58 struct pnv_phb *phb; member
127 int (*init_m64)(struct pnv_phb *phb);
128 int (*get_pe_state)(struct pnv_phb *phb, int pe_no);
129 void (*freeze_pe)(struct pnv_phb *phb, int pe_no);
130 int (*unfreeze_pe)(struct pnv_phb *phb, int pe_no, int opt);
201 return (r->start >= phb->ioda.m64_base && in pnv_pci_is_m64()
202 r->start < (phb->ioda.m64_base + phb->ioda.m64_size)); in pnv_pci_is_m64()
212 int pnv_ioda_configure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe);
213 int pnv_ioda_deconfigure_pe(struct pnv_phb *phb, struct pnv_ioda_pe *pe);
218 struct pnv_ioda_pe *pnv_ioda_alloc_pe(struct pnv_phb *phb, int count);
[all …]
A Docxl.c165 struct pnv_phb *phb = hose->private_data; in pnv_ocxl_fixup_actag() local
172 if (phb->type != PNV_PHB_NPU_OCAPI) in pnv_ocxl_fixup_actag()
356 struct pnv_phb *phb = hose->private_data; in pnv_ocxl_set_tl_conf() local
362 rc = opal_npu_tl_set(phb->opal_id, dev->devfn, cap, in pnv_ocxl_set_tl_conf()
443 struct pnv_phb *phb = hose->private_data; in pnv_ocxl_spa_setup() local
453 rc = opal_npu_spa_setup(phb->opal_id, bdfn, virt_to_phys(spa_mem), in pnv_ocxl_spa_setup()
460 data->phb_opal_id = phb->opal_id; in pnv_ocxl_spa_setup()
492 struct pnv_phb *phb = hose->private_data; in pnv_ocxl_map_lpar() local
510 rc = opal_npu_map_lpar(phb->opal_id, pci_dev_id(dev), in pnv_ocxl_map_lpar()
/linux/drivers/misc/cxl/
A Dvphb.c30 struct pci_controller *phb; in cxl_pci_enable_device_hook() local
90 return phb ? phb->private_data : NULL; in pci_bus_to_afu()
238 if (!phb) in cxl_pci_vphb_add()
242 phb->parent = parent; in cxl_pci_vphb_add()
246 phb->cfg_addr = NULL; in cxl_pci_vphb_add()
247 phb->cfg_data = NULL; in cxl_pci_vphb_add()
253 if (phb->bus == NULL) in cxl_pci_vphb_add()
259 (void *) phb); in cxl_pci_vphb_add()
270 afu->phb = phb; in cxl_pci_vphb_add()
283 phb = afu->phb; in cxl_pci_vphb_remove()
[all …]
/linux/arch/powerpc/platforms/pseries/
A Dpci_dlpar.c23 struct pci_controller *phb; in init_phb_dynamic() local
28 if (!phb) in init_phb_dynamic()
30 rtas_setup_phb(phb); in init_phb_dynamic()
34 pci_devs_phb_init_dynamic(phb); in init_phb_dynamic()
39 eeh_phb_pe_create(phb); in init_phb_dynamic()
44 pcibios_scan_phb(phb); in init_phb_dynamic()
47 return phb; in init_phb_dynamic()
54 struct pci_bus *b = phb->bus; in remove_phb_dynamic()
69 res = &phb->io_resource; in remove_phb_dynamic()
79 pseries_msi_free_domains(phb); in remove_phb_dynamic()
[all …]
A Deeh_pseries.c102 struct pci_controller *phb = pdn->phb; in pseries_eeh_get_pe_config_addr() local
112 BUID_LO(phb->buid), 1); in pseries_eeh_get_pe_config_addr()
119 BUID_LO(phb->buid), 0); in pseries_eeh_get_pe_config_addr()
132 BUID_LO(phb->buid), 0); in pseries_eeh_get_pe_config_addr()
204 BUID_LO(phb->buid)); in pseries_eeh_phb_configure_bridge()
432 pe.phb = pdn->phb; in pseries_eeh_init_edev()
561 BUID_LO(pe->phb->buid)); in pseries_eeh_get_state()
567 BUID_LO(pe->phb->buid)); in pseries_eeh_get_state()
643 BUID_HI(pe->phb->buid), BUID_LO(pe->phb->buid), in pseries_eeh_get_log()
704 buid = pdn->phb->buid; in pseries_send_allow_unfreeze()
[all …]
A Dmsi.c38 buid = pdn->phb->buid; in rtas_change_msi()
99 buid = pdn->phb->buid; in rtas_query_irq_number()
632 if (!phb->fwnode) in __pseries_msi_allocate_domains()
636 phb->fwnode, in __pseries_msi_allocate_domains()
640 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
645 phb->msi_domain = pci_msi_create_irq_domain(of_node_to_fwnode(phb->dn), in __pseries_msi_allocate_domains()
650 phb->dn, phb->global_number); in __pseries_msi_allocate_domains()
665 phb->dn, phb->global_number); in pseries_msi_allocate_domains()
674 if (phb->msi_domain) in pseries_msi_free_domains()
676 if (phb->dev_domain) in pseries_msi_free_domains()
[all …]
A Diommu.c532 if (phb->dma_window_base_cur + phb->dma_window_size > SZ_2G) { in iommu_table_setparms()
537 node = phb->dn; in iommu_table_setparms()
546 iommu_table_setparms_common(tbl, phb->bus->number, 0, phb->dma_window_base_cur, in iommu_table_setparms()
553 phb->dma_window_base_cur += phb->dma_window_size; in iommu_table_setparms()
635 pci->phb->dma_window_size >>= 1; in pci_dma_bus_setup_pSeries()
637 pci->phb->dma_window_size); in pci_dma_bus_setup_pSeries()
662 pci->phb->dma_window_size >>= 1; in pci_dma_bus_setup_pSeries()
765 struct pci_controller *phb = PCI_DN(dn)->phb; in pci_dma_dev_setup_pSeries() local
1020 buid = pdn->phb->buid; in query_ddw()
1066 buid = pdn->phb->buid; in create_ddw()
[all …]
/linux/arch/powerpc/kernel/
A Dof_platform.c37 struct pci_controller *phb; in of_pci_phb_probe() local
47 if (!phb) in of_pci_phb_probe()
51 phb->parent = &dev->dev; in of_pci_phb_probe()
54 if (ppc_md.pci_setup_phb(phb)) { in of_pci_phb_probe()
55 pcibios_free_controller(phb); in of_pci_phb_probe()
63 pci_devs_phb_init_dynamic(phb); in of_pci_phb_probe()
66 eeh_phb_pe_create(phb); in of_pci_phb_probe()
69 pcibios_scan_phb(phb); in of_pci_phb_probe()
70 if (phb->bus == NULL) in of_pci_phb_probe()
77 pcibios_claim_one_bus(phb->bus); in of_pci_phb_probe()
[all …]
A Dpci-hotplug.c42 if (!pdn || !pdn->phb || !pdn->phb->bus) in pci_find_bus_by_node()
45 return find_bus_among_children(pdn->phb->bus, dn); in pci_find_bus_by_node()
57 struct pci_controller *phb = pci_bus_to_host(dev->bus); in pcibios_release_device() local
60 if (phb->controller_ops.release_device) in pcibios_release_device()
61 phb->controller_ops.release_device(dev); in pcibios_release_device()
110 struct pci_controller *phb; in pci_hp_add_devices() local
113 phb = pci_bus_to_host(bus); in pci_hp_add_devices()
116 if (phb->controller_ops.probe_mode) in pci_hp_add_devices()
117 mode = phb->controller_ops.probe_mode(bus); in pci_hp_add_devices()
A Drtas_pci.c62 buid = pdn->phb->buid; in rtas_read_config()
113 buid = pdn->phb->buid; in rtas_write_config()
205 if (of_address_to_resource(phb, 0, &r)) in get_phb_buid()
211 struct pci_controller *phb) in phb_set_bus_ranges() argument
221 phb->first_busno = be32_to_cpu(bus_range[0]); in phb_set_bus_ranges()
222 phb->last_busno = be32_to_cpu(bus_range[1]); in phb_set_bus_ranges()
227 int rtas_setup_phb(struct pci_controller *phb) in rtas_setup_phb() argument
229 struct device_node *dev = phb->dn; in rtas_setup_phb()
234 if (phb_set_bus_ranges(dev, phb)) in rtas_setup_phb()
237 phb->ops = &rtas_pci_ops; in rtas_setup_phb()
[all …]
A Dmsi.c14 struct pci_controller *phb = pci_bus_to_host(dev->bus); in arch_setup_msi_irqs() local
16 if (!phb->controller_ops.setup_msi_irqs || in arch_setup_msi_irqs()
17 !phb->controller_ops.teardown_msi_irqs) { in arch_setup_msi_irqs()
26 return phb->controller_ops.setup_msi_irqs(dev, nvec, type); in arch_setup_msi_irqs()
31 struct pci_controller *phb = pci_bus_to_host(dev->bus); in arch_teardown_msi_irqs() local
37 if (phb->controller_ops.teardown_msi_irqs) in arch_teardown_msi_irqs()
38 phb->controller_ops.teardown_msi_irqs(dev); in arch_teardown_msi_irqs()
A Dpci-common.c111 struct pci_controller *phb; in pcibios_alloc_controller() local
114 if (phb == NULL) in pcibios_alloc_controller()
120 phb->dn = dev; in pcibios_alloc_controller()
129 PHB_SET_NODE(phb, nid); in pcibios_alloc_controller()
132 return phb; in pcibios_alloc_controller()
144 list_del(&phb->list_node); in pcibios_free_controller()
147 if (phb->is_dynamic) in pcibios_free_controller()
148 kfree(phb); in pcibios_free_controller()
182 pr_debug("domain %d, dynamic %d\n", phb->global_number, phb->is_dynamic); in pcibios_free_controller_deferred()
184 pcibios_free_controller(phb); in pcibios_free_controller_deferred()
[all …]
A Dio-workarounds.c35 struct pci_controller *phb = bus->phb; in iowa_pci_find() local
38 vstart = (unsigned long)phb->io_base_virt; in iowa_pci_find()
39 vend = vstart + phb->pci_io_size - 1; in iowa_pci_find()
46 res = &phb->mem_resources[j]; in iowa_pci_find()
170 void iowa_register_bus(struct pci_controller *phb, struct ppc_pci_io *ops, in iowa_register_bus() argument
174 struct device_node *np = phb->dn; in iowa_register_bus()
185 bus->phb = phb; in iowa_register_bus()
A Dpci_dn.c141 edev->controller = pdn->phb; in eeh_dev_init()
161 pdn->phb = parent->phb; in add_one_sriov_vf_pdn()
297 pdn->phb = hose; in pci_add_device_node_info()
368 pdev = pci_get_domain_bus_and_slot(pdn->phb->global_number, in pci_remove_device_node_info()
466 void pci_devs_phb_init_dynamic(struct pci_controller *phb) in pci_devs_phb_init_dynamic() argument
468 struct device_node *dn = phb->dn; in pci_devs_phb_init_dynamic()
472 pdn = pci_add_device_node_info(phb, dn); in pci_devs_phb_init_dynamic()
476 pdn->phb = phb; in pci_devs_phb_init_dynamic()
477 phb->pci_data = pdn; in pci_devs_phb_init_dynamic()
481 pci_traverse_device_nodes(dn, add_pdn, phb); in pci_devs_phb_init_dynamic()
A Deeh_pe.c46 static struct eeh_pe *eeh_pe_alloc(struct pci_controller *phb, int type) in eeh_pe_alloc() argument
63 pe->phb = phb; in eeh_pe_alloc()
79 int eeh_phb_pe_create(struct pci_controller *phb) in eeh_phb_pe_create() argument
84 pe = eeh_pe_alloc(phb, EEH_PE_PHB); in eeh_phb_pe_create()
93 pr_debug("EEH: Add PE for PHB#%x\n", phb->global_number); in eeh_phb_pe_create()
157 struct eeh_pe *eeh_phb_pe_get(struct pci_controller *phb) in eeh_phb_pe_get() argument
167 if ((pe->type & EEH_PE_PHB) && pe->phb == phb) in eeh_phb_pe_get()
286 struct eeh_pe *eeh_pe_get(struct pci_controller *phb, int pe_no) in eeh_pe_get() argument
288 struct eeh_pe *root = eeh_phb_pe_get(phb); in eeh_pe_get()
854 return pe->phb->bus; in eeh_pe_bus_get()
/linux/drivers/pci/hotplug/
A Drpadlpar_core.c140 struct pci_controller *phb = pdn->phb; in dlpar_pci_add_bus() local
165 pcibios_finish_adding_to_bus(phb->bus); in dlpar_pci_add_bus()
171 struct pci_controller *phb; in dlpar_add_pci_slot() local
180 phb = PCI_DN(dn)->phb; in dlpar_add_pci_slot()
222 BUG_ON(!pdn || !pdn->phb); in dlpar_remove_phb()
223 rc = remove_phb_dynamic(pdn->phb); in dlpar_remove_phb()
227 pdn->phb = NULL; in dlpar_remove_phb()
234 struct pci_controller *phb; in dlpar_add_phb() local
236 if (PCI_DN(dn) && PCI_DN(dn)->phb) { in dlpar_add_phb()
241 phb = init_phb_dynamic(dn); in dlpar_add_phb()
[all …]
/linux/arch/powerpc/platforms/pasemi/
A Dmsi.c141 struct pci_controller *phb; in mpic_pasemi_msi_init() local
159 list_for_each_entry(phb, &hose_list, list_node) { in mpic_pasemi_msi_init()
160 WARN_ON(phb->controller_ops.setup_msi_irqs); in mpic_pasemi_msi_init()
161 phb->controller_ops.setup_msi_irqs = pasemi_msi_setup_msi_irqs; in mpic_pasemi_msi_init()
162 phb->controller_ops.teardown_msi_irqs = pasemi_msi_teardown_msi_irqs; in mpic_pasemi_msi_init()
/linux/arch/powerpc/platforms/cell/
A Dspider-pci.c68 static int __init spiderpci_pci_setup_chip(struct pci_controller *phb, in spiderpci_pci_setup_chip() argument
98 dummy_page_da = dma_map_single(phb->parent, dummy_page_va, in spiderpci_pci_setup_chip()
100 if (dma_mapping_error(phb->parent, dummy_page_da)) { in spiderpci_pci_setup_chip()
115 struct device_node *np = bus->phb->dn; in spiderpci_iowa_init()
142 if (spiderpci_pci_setup_chip(bus->phb, regs)) in spiderpci_iowa_init()
A Dsetup.c116 static int cell_setup_phb(struct pci_controller *phb) in cell_setup_phb() argument
121 int rc = rtas_setup_phb(phb); in cell_setup_phb()
125 phb->controller_ops = cell_pci_controller_ops; in cell_setup_phb()
127 np = phb->dn; in cell_setup_phb()
136 iowa_register_bus(phb, &spiderpci_ops, &spiderpci_iowa_init, in cell_setup_phb()
/linux/arch/powerpc/sysdev/
A Dmpic_u3msi.c180 struct pci_controller *phb; in mpic_u3msi_init() local
193 list_for_each_entry(phb, &hose_list, list_node) { in mpic_u3msi_init()
194 WARN_ON(phb->controller_ops.setup_msi_irqs); in mpic_u3msi_init()
195 phb->controller_ops.setup_msi_irqs = u3msi_setup_msi_irqs; in mpic_u3msi_init()
196 phb->controller_ops.teardown_msi_irqs = u3msi_teardown_msi_irqs; in mpic_u3msi_init()

Completed in 55 milliseconds

123