Lines Matching refs:hose

131 			__func__, rc, phb->hose->global_number, pe_no);  in pnv_ioda_init_pe()
140 __func__, pe_no, phb->hose->global_number); in pnv_ioda_reserve_pe()
147 __func__, pe_no, phb->hose->global_number); in pnv_ioda_reserve_pe()
231 r = &phb->hose->mem_resources[1]; in pnv_ioda2_init_m64()
354 struct pci_controller *hose = phb->hose; in pnv_ioda_parse_m64_window() local
355 struct device_node *dn = hose->dn; in pnv_ioda_parse_m64_window()
391 __func__, m64_range[1], phb->hose->global_number); in pnv_ioda_parse_m64_window()
397 __func__, phb->hose->global_number); in pnv_ioda_parse_m64_window()
402 res = &hose->mem_resources[1]; in pnv_ioda_parse_m64_window()
408 hose->mem_offset[1] = res->start - pci_addr; in pnv_ioda_parse_m64_window()
460 __func__, rc, phb->hose->global_number, pe_no); in pnv_ioda_freeze_pe()
474 __func__, rc, phb->hose->global_number, in pnv_ioda_freeze_pe()
496 __func__, rc, opt, phb->hose->global_number, pe_no); in pnv_ioda_unfreeze_pe()
510 __func__, rc, opt, phb->hose->global_number, in pnv_ioda_unfreeze_pe()
548 phb->hose->global_number, pe_no); in pnv_ioda_get_pe_state()
566 phb->hose->global_number, slave->pe_number); in pnv_ioda_get_pe_state()
1030 __func__, phb->hose->global_number, phb->type); in pnv_pci_ioda_dma_dev_setup()
1083 table_pages = alloc_pages_node(pe->phb->hose->node, GFP_KERNEL, in pnv_pci_ioda_dma_64bit_bypass()
1307 pnv_pci_link_table_and_group(phb->hose->node, num, in pnv_pci_ioda2_set_window()
1348 int nid = pe->phb->hose->node; in pnv_pci_ioda2_create_table()
1430 tbl->it_index = (pe->phb->hose->global_number << 16) | pe->pe_number; in pnv_pci_ioda2_setup_default_config()
1431 if (iommu_init_table(tbl, pe->phb->hose->node, res_start, res_end)) in pnv_pci_ioda2_setup_default_config()
1614 iommu_register_group(&pe->table_group, phb->hose->global_number, in pnv_pci_ioda2_setup_dma_pe()
1631 struct pci_controller *hose = irq_data_get_irq_chip_data(d->parent_data); in pnv_opal_pci_msi_eoi() local
1632 struct pnv_phb *phb = hose->private_data; in pnv_opal_pci_msi_eoi()
1765 struct pci_controller *hose = irq_data_get_irq_chip_data(d); in pnv_msi_compose_msg() local
1766 struct pnv_phb *phb = hose->private_data; in pnv_msi_compose_msg()
1782 struct pci_controller *hose = irq_data_get_irq_chip_data(d); in pnv_msi_eoi() local
1783 struct pnv_phb *phb = hose->private_data; in pnv_msi_eoi()
1828 struct pci_controller *hose = domain->host_data; in pnv_irq_domain_alloc() local
1829 struct pnv_phb *phb = hose->private_data; in pnv_irq_domain_alloc()
1842 hose->dn, virq, hwirq, nr_irqs); in pnv_irq_domain_alloc()
1851 &pnv_msi_irq_chip, hose); in pnv_irq_domain_alloc()
1866 struct pci_controller *hose = irq_data_get_irq_chip_data(d); in pnv_irq_domain_free() local
1867 struct pnv_phb *phb = hose->private_data; in pnv_irq_domain_free()
1869 pr_debug("%s bridge %pOF %d/%lx #%d\n", __func__, hose->dn, in pnv_irq_domain_free()
1881 static int __init pnv_msi_allocate_domains(struct pci_controller *hose, unsigned int count) in pnv_msi_allocate_domains() argument
1883 struct pnv_phb *phb = hose->private_data; in pnv_msi_allocate_domains()
1886 hose->fwnode = irq_domain_alloc_named_id_fwnode("PNV-MSI", phb->opal_id); in pnv_msi_allocate_domains()
1887 if (!hose->fwnode) in pnv_msi_allocate_domains()
1890 hose->dev_domain = irq_domain_create_hierarchy(parent, 0, count, in pnv_msi_allocate_domains()
1891 hose->fwnode, in pnv_msi_allocate_domains()
1892 &pnv_irq_domain_ops, hose); in pnv_msi_allocate_domains()
1893 if (!hose->dev_domain) { in pnv_msi_allocate_domains()
1895 hose->dn, hose->global_number); in pnv_msi_allocate_domains()
1896 irq_domain_free_fwnode(hose->fwnode); in pnv_msi_allocate_domains()
1900 hose->msi_domain = pci_msi_create_irq_domain(of_fwnode_handle(hose->dn), in pnv_msi_allocate_domains()
1902 hose->dev_domain); in pnv_msi_allocate_domains()
1903 if (!hose->msi_domain) { in pnv_msi_allocate_domains()
1905 hose->dn, hose->global_number); in pnv_msi_allocate_domains()
1906 irq_domain_free_fwnode(hose->fwnode); in pnv_msi_allocate_domains()
1907 irq_domain_remove(hose->dev_domain); in pnv_msi_allocate_domains()
1917 const __be32 *prop = of_get_property(phb->hose->dn, in pnv_pci_init_ioda_msis()
1921 prop = of_get_property(phb->hose->dn, "msi-ranges", NULL); in pnv_pci_init_ioda_msis()
1928 if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { in pnv_pci_init_ioda_msis()
1930 phb->hose->global_number); in pnv_pci_init_ioda_msis()
1937 pnv_msi_allocate_domains(phb->hose, count); in pnv_pci_init_ioda_msis()
1974 phb->hose->mem_offset[0] - in pnv_ioda_setup_pe_res()
1977 phb->hose->mem_offset[0] - in pnv_ioda_setup_pe_res()
2045 pnv_pci_dump_phb_diag_data(phb->hose, phb->diag_data); in pnv_pci_diag_data_set()
2084 struct pci_controller *hose, *tmp; in pnv_pci_ioda_create_dbgfs() local
2088 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pnv_pci_ioda_create_dbgfs()
2089 phb = hose->private_data; in pnv_pci_ioda_create_dbgfs()
2091 sprintf(name, "PCI%04x", hose->global_number); in pnv_pci_ioda_create_dbgfs()
2131 struct pci_controller *hose; in pnv_pci_enable_bridges() local
2133 list_for_each_entry(hose, &hose_list, list_node) in pnv_pci_enable_bridges()
2134 pnv_pci_enable_bridge(hose->bus); in pnv_pci_enable_bridges()
2202 struct pci_controller *hose = pci_bus_to_host(bus); in pnv_pci_fixup_bridge_resources() local
2203 struct pnv_phb *phb = hose->private_data; in pnv_pci_fixup_bridge_resources()
2222 w = &hose->io_resource; in pnv_pci_fixup_bridge_resources()
2226 w = &hose->mem_resources[1]; in pnv_pci_fixup_bridge_resources()
2228 w = &hose->mem_resources[0]; in pnv_pci_fixup_bridge_resources()
2451 static void pnv_pci_ioda_shutdown(struct pci_controller *hose) in pnv_pci_ioda_shutdown() argument
2453 struct pnv_phb *phb = hose->private_data; in pnv_pci_ioda_shutdown()
2479 static struct iommu_group *pnv_pci_device_group(struct pci_controller *hose, in pnv_pci_device_group() argument
2482 struct pnv_phb *phb = hose->private_data; in pnv_pci_device_group()
2525 struct pci_controller *hose; in pnv_pci_init_ioda_phb() local
2557 phb->hose = hose = pcibios_alloc_controller(np); in pnv_pci_init_ioda_phb()
2558 if (!phb->hose) { in pnv_pci_init_ioda_phb()
2568 hose->first_busno = be32_to_cpu(prop32[0]); in pnv_pci_init_ioda_phb()
2569 hose->last_busno = be32_to_cpu(prop32[1]); in pnv_pci_init_ioda_phb()
2572 hose->first_busno = 0; in pnv_pci_init_ioda_phb()
2573 hose->last_busno = 0xff; in pnv_pci_init_ioda_phb()
2575 hose->private_data = phb; in pnv_pci_init_ioda_phb()
2602 pci_process_bridge_OF_ranges(hose, np, !hose->global_number); in pnv_pci_init_ioda_phb()
2628 phb->ioda.m32_size = resource_size(&hose->mem_resources[0]); in pnv_pci_init_ioda_phb()
2633 phb->ioda.m32_pci_base = hose->mem_resources[0].start - hose->mem_offset[0]; in pnv_pci_init_ioda_phb()
2634 phb->ioda.io_size = hose->pci_io_size; in pnv_pci_init_ioda_phb()
2701 phb->hose->ops = &pnv_pci_ops; in pnv_pci_init_ioda_phb()
2720 hose->controller_ops = pnv_npu_ocapi_ioda_controller_ops; in pnv_pci_init_ioda_phb()
2723 hose->controller_ops = pnv_pci_ioda_controller_ops; in pnv_pci_init_ioda_phb()
2754 pnv_eeh_phb_reset(hose, EEH_RESET_FUNDAMENTAL); in pnv_pci_init_ioda_phb()
2755 pnv_eeh_phb_reset(hose, EEH_RESET_DEACTIVATE); in pnv_pci_init_ioda_phb()
2760 hose->mem_resources[1].flags = 0; in pnv_pci_init_ioda_phb()
2763 pci_devs_phb_init_dynamic(hose); in pnv_pci_init_ioda_phb()