Lines Matching refs:hose
130 __func__, pe_no, phb->hose->global_number); in pnv_ioda_reserve_pe()
136 __func__, pe_no, phb->hose->global_number); in pnv_ioda_reserve_pe()
204 r = &phb->hose->mem_resources[1]; in pnv_ioda2_init_m64()
237 list_for_each_entry(pdev, &phb->hose->bus->devices, bus_list) { in pnv_ioda2_reserve_m64_pe()
357 struct pci_controller *hose = phb->hose; in pnv_ioda_parse_m64_window() local
358 struct device_node *dn = hose->dn; in pnv_ioda_parse_m64_window()
381 res = &hose->mem_resources[1]; in pnv_ioda_parse_m64_window()
386 hose->mem_offset[1] = res->start - pci_addr; in pnv_ioda_parse_m64_window()
423 __func__, rc, phb->hose->global_number, pe_no); in pnv_ioda_freeze_pe()
437 __func__, rc, phb->hose->global_number, in pnv_ioda_freeze_pe()
459 __func__, rc, opt, phb->hose->global_number, pe_no); in pnv_ioda_unfreeze_pe()
473 __func__, rc, opt, phb->hose->global_number, in pnv_ioda_unfreeze_pe()
511 phb->hose->global_number, pe_no); in pnv_ioda_get_pe_state()
529 phb->hose->global_number, slave->pe_number); in pnv_ioda_get_pe_state()
550 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_ioda_get_pe() local
551 struct pnv_phb *phb = hose->private_data; in pnv_ioda_get_pe()
951 struct pci_controller *hose = pci_bus_to_host(dev->bus);
952 struct pnv_phb *phb = hose->private_data;
1046 struct pci_controller *hose = pci_bus_to_host(bus); in pnv_ioda_setup_bus_PE() local
1047 struct pnv_phb *phb = hose->private_data; in pnv_ioda_setup_bus_PE()
1090 GFP_KERNEL, hose->node); in pnv_ioda_setup_bus_PE()
1137 struct pci_controller *hose, *tmp; in pnv_pci_ioda_setup_PEs() local
1140 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pnv_pci_ioda_setup_PEs()
1141 phb = hose->private_data; in pnv_pci_ioda_setup_PEs()
1147 pnv_ioda_setup_PEs(hose->bus); in pnv_pci_ioda_setup_PEs()
1155 struct pci_controller *hose; in pnv_pci_vf_release_m64() local
1161 hose = pci_bus_to_host(bus); in pnv_pci_vf_release_m64()
1162 phb = hose->private_data; in pnv_pci_vf_release_m64()
1181 struct pci_controller *hose; in pnv_pci_vf_assign_m64() local
1195 hose = pci_bus_to_host(bus); in pnv_pci_vf_assign_m64()
1196 phb = hose->private_data; in pnv_pci_vf_assign_m64()
1289 struct pci_controller *hose; in pnv_pci_ioda2_release_dma_pe() local
1296 hose = pci_bus_to_host(bus); in pnv_pci_ioda2_release_dma_pe()
1297 phb = hose->private_data; in pnv_pci_ioda2_release_dma_pe()
1321 struct pci_controller *hose; in pnv_ioda_release_vf_PE() local
1329 hose = pci_bus_to_host(bus); in pnv_ioda_release_vf_PE()
1330 phb = hose->private_data; in pnv_ioda_release_vf_PE()
1385 struct pci_controller *hose; in pnv_pci_sriov_disable() local
1392 hose = pci_bus_to_host(bus); in pnv_pci_sriov_disable()
1393 phb = hose->private_data; in pnv_pci_sriov_disable()
1419 struct pci_controller *hose; in pnv_ioda_setup_vf_PE() local
1428 hose = pci_bus_to_host(bus); in pnv_ioda_setup_vf_PE()
1429 phb = hose->private_data; in pnv_ioda_setup_vf_PE()
1451 hose->global_number, pdev->bus->number, in pnv_ioda_setup_vf_PE()
1464 GFP_KERNEL, hose->node); in pnv_ioda_setup_vf_PE()
1510 struct pci_controller *hose; in pnv_pci_sriov_enable() local
1516 hose = pci_bus_to_host(bus); in pnv_pci_sriov_enable()
1517 phb = hose->private_data; in pnv_pci_sriov_enable()
1796 tce_mem = alloc_pages_node(phb->hose->node, GFP_KERNEL, in pnv_pci_ioda_setup_dma_pe()
1825 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); in pnv_pci_ioda_setup_dma_pe()
1839 iommu_init_table(tbl, phb->hose->node); in pnv_pci_ioda_setup_dma_pe()
1842 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda_setup_dma_pe()
1846 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda_setup_dma_pe()
1850 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda_setup_dma_pe()
1938 tce_mem = alloc_pages_node(phb->hose->node, GFP_KERNEL, in pnv_pci_ioda2_setup_dma_pe()
1966 swinvp = of_get_property(phb->hose->dn, "ibm,opal-tce-kill", NULL); in pnv_pci_ioda2_setup_dma_pe()
1978 iommu_init_table(tbl, phb->hose->node); in pnv_pci_ioda2_setup_dma_pe()
1981 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda2_setup_dma_pe()
1985 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda2_setup_dma_pe()
1989 iommu_register_group(tbl, phb->hose->global_number, in pnv_pci_ioda2_setup_dma_pe()
2007 struct pci_controller *hose = phb->hose; in pnv_ioda_setup_dma() local
2023 hose->global_number, phb->ioda.tce32_count); in pnv_ioda_setup_dma()
2110 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_pci_get_phb_node() local
2112 return of_node_get(hose->dn); in pnv_pci_get_phb_node()
2118 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_phb_to_cxl_mode() local
2119 struct pnv_phb *phb = hose->private_data; in pnv_phb_to_cxl_mode()
2142 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_alloc_hwirqs() local
2143 struct pnv_phb *phb = hose->private_data; in pnv_cxl_alloc_hwirqs()
2157 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_release_hwirqs() local
2158 struct pnv_phb *phb = hose->private_data; in pnv_cxl_release_hwirqs()
2167 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_release_hwirq_ranges() local
2168 struct pnv_phb *phb = hose->private_data; in pnv_cxl_release_hwirq_ranges()
2187 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_alloc_hwirq_ranges() local
2188 struct pnv_phb *phb = hose->private_data; in pnv_cxl_alloc_hwirq_ranges()
2223 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_get_irq_count() local
2224 struct pnv_phb *phb = hose->private_data; in pnv_cxl_get_irq_count()
2233 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_cxl_ioda_msi_setup() local
2234 struct pnv_phb *phb = hose->private_data; in pnv_cxl_ioda_msi_setup()
2326 const __be32 *prop = of_get_property(phb->hose->dn, in pnv_pci_init_ioda_msis()
2330 prop = of_get_property(phb->hose->dn, "msi-ranges", NULL); in pnv_pci_init_ioda_msis()
2337 if (msi_bitmap_alloc(&phb->msi_bmp, count, phb->hose->dn)) { in pnv_pci_init_ioda_msis()
2339 phb->hose->global_number); in pnv_pci_init_ioda_msis()
2355 struct pci_controller *hose; in pnv_pci_ioda_fixup_iov_resources() local
2366 hose = pci_bus_to_host(pdev->bus); in pnv_pci_ioda_fixup_iov_resources()
2367 phb = hose->private_data; in pnv_pci_ioda_fixup_iov_resources()
2424 static void pnv_ioda_setup_pe_seg(struct pci_controller *hose, in pnv_ioda_setup_pe_seg() argument
2427 struct pnv_phb *phb = hose->private_data; in pnv_ioda_setup_pe_seg()
2468 hose->mem_offset[0] - in pnv_ioda_setup_pe_seg()
2471 hose->mem_offset[0] - in pnv_ioda_setup_pe_seg()
2496 struct pci_controller *tmp, *hose; in pnv_pci_ioda_setup_seg() local
2500 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pnv_pci_ioda_setup_seg()
2501 phb = hose->private_data; in pnv_pci_ioda_setup_seg()
2503 pnv_ioda_setup_pe_seg(hose, pe); in pnv_pci_ioda_setup_seg()
2510 struct pci_controller *hose, *tmp; in pnv_pci_ioda_setup_DMA() local
2513 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pnv_pci_ioda_setup_DMA()
2514 pnv_ioda_setup_dma(hose->private_data); in pnv_pci_ioda_setup_DMA()
2517 phb = hose->private_data; in pnv_pci_ioda_setup_DMA()
2525 struct pci_controller *hose, *tmp; in pnv_pci_ioda_create_dbgfs() local
2529 list_for_each_entry_safe(hose, tmp, &hose_list, list_node) { in pnv_pci_ioda_create_dbgfs()
2530 phb = hose->private_data; in pnv_pci_ioda_create_dbgfs()
2532 sprintf(name, "PCI%04x", hose->global_number); in pnv_pci_ioda_create_dbgfs()
2536 __func__, hose->global_number); in pnv_pci_ioda_create_dbgfs()
2571 struct pci_controller *hose = pci_bus_to_host(bus); in pnv_pci_window_alignment() local
2572 struct pnv_phb *phb = hose->private_data; in pnv_pci_window_alignment()
2620 struct pci_controller *hose = pci_bus_to_host(dev->bus); in pnv_pci_enable_device_hook() local
2621 struct pnv_phb *phb = hose->private_data; in pnv_pci_enable_device_hook()
2654 struct pci_controller *hose; in pnv_pci_init_ioda_phb() local
2677 phb->hose = hose = pcibios_alloc_controller(np); in pnv_pci_init_ioda_phb()
2678 if (!phb->hose) { in pnv_pci_init_ioda_phb()
2688 hose->first_busno = be32_to_cpu(prop32[0]); in pnv_pci_init_ioda_phb()
2689 hose->last_busno = be32_to_cpu(prop32[1]); in pnv_pci_init_ioda_phb()
2692 hose->first_busno = 0; in pnv_pci_init_ioda_phb()
2693 hose->last_busno = 0xff; in pnv_pci_init_ioda_phb()
2695 hose->private_data = phb; in pnv_pci_init_ioda_phb()
2710 pci_process_bridge_OF_ranges(hose, np, !hose->global_number); in pnv_pci_init_ioda_phb()
2729 phb->ioda.m32_size = resource_size(&hose->mem_resources[0]); in pnv_pci_init_ioda_phb()
2734 phb->ioda.m32_pci_base = hose->mem_resources[0].start - hose->mem_offset[0]; in pnv_pci_init_ioda_phb()
2735 phb->ioda.io_size = hose->pci_io_size; in pnv_pci_init_ioda_phb()
2784 phb->hose->ops = &pnv_pci_ops; in pnv_pci_init_ioda_phb()
2814 hose->controller_ops = pnv_pci_controller_ops; in pnv_pci_init_ioda_phb()
2835 pnv_eeh_phb_reset(hose, EEH_RESET_FUNDAMENTAL); in pnv_pci_init_ioda_phb()
2836 pnv_eeh_phb_reset(hose, EEH_RESET_DEACTIVATE); in pnv_pci_init_ioda_phb()
2841 hose->mem_resources[1].flags = 0; in pnv_pci_init_ioda_phb()