Home
last modified time | relevance | path

Searched refs:phb_id (Results 1 – 12 of 12) sorted by relevance

/openbmc/linux/arch/powerpc/include/asm/
H A Dopal.h31 int64_t opal_npu_map_lpar(uint64_t phb_id, uint64_t bdf, uint64_t lparid,
33 int64_t opal_npu_spa_setup(uint64_t phb_id, uint32_t bdfn,
35 int64_t opal_npu_spa_clear_cache(uint64_t phb_id, uint32_t bdfn,
37 int64_t opal_npu_tl_set(uint64_t phb_id, uint32_t bdfn, long cap,
88 int64_t opal_pci_eeh_freeze_set(uint64_t phb_id, uint64_t pe_number,
119 int64_t opal_pci_msi_eoi(uint64_t phb_id, uint32_t hw_irq);
120 int64_t opal_pci_set_xive_pe(uint64_t phb_id, uint32_t pe_number,
122 int64_t opal_get_xive_source(uint64_t phb_id, uint32_t xive_num,
127 int64_t opal_get_msi_64(uint64_t phb_id, uint32_t mve_number,
147 int64_t opal_pci_fence_phb(uint64_t phb_id);
[all …]
H A Dpnv-pci.h17 #define PCI_SLOT_ID(phb_id, bdfn) \ argument
18 (PCI_SLOT_ID_PREFIX | ((uint64_t)(bdfn) << 16) | (phb_id))
19 #define PCI_PHB_SLOT_ID(phb_id) (phb_id) argument
/openbmc/qemu/hw/pci-host/
H A Dpnv_phb3_pbcq.c25 (pbcq)->phb->chip_id, (pbcq)->phb->phb_id, ## __VA_ARGS__)
244 0x1000000000ull * phb->phb_id; in pnv_pbcq_default_bars()
246 0x0080000000ull * phb->phb_id; in pnv_pbcq_default_bars()
248 0x0000100000ull * phb->phb_id; in pnv_pbcq_default_bars()
272 phb->chip_id, phb->phb_id); in pnv_pbcq_realize()
277 phb->chip_id, phb->phb_id); in pnv_pbcq_realize()
282 phb->chip_id, phb->phb_id); in pnv_pbcq_realize()
306 uint32_t lpc_pcba = PNV_XSCOM_PBCQ_NEST_BASE + 0x400 * phb->phb_id; in pnv_pbcq_dt_xscom()
310 cpu_to_be32(PNV_XSCOM_PBCQ_PCI_BASE + 0x400 * phb->phb_id), in pnv_pbcq_dt_xscom()
312 cpu_to_be32(PNV_XSCOM_PBCQ_SPCI_BASE + 0x040 * phb->phb_id), in pnv_pbcq_dt_xscom()
[all …]
H A Dpnv_phb.c102 OBJECT(phb), phb->phb_id, errp)) { in pnv_phb_user_device_init()
138 object_property_set_uint(phb->backend, "index", phb->phb_id, errp); in pnv_phb_realize()
182 phb->chip_id, phb->phb_id); in pnv_phb_root_bus_path()
187 DEFINE_PROP_UINT32("index", PnvPHB, phb_id, 0),
H A Dpnv_phb4_pec.c142 int index = phb->phb_id; in pnv_pec_add_phb()
184 int phb_id = pnv_phb4_pec_get_phb_id(pec, stack_no); in pnv_pec_default_phb_realize() local
191 object_property_set_int(OBJECT(phb), "index", phb_id, in pnv_pec_default_phb_realize()
280 pec->phbs[i]->phb_id))); in pnv_pec_dt_xscom()
H A Dpnv_phb.h24 uint32_t phb_id; member
H A Dpnv_phb4.c28 (phb)->chip_id, (phb)->phb_id, ## __VA_ARGS__)
875 int stack_no = phb->phb_id; in pnv_phb4_get_phb_stack_no()
1468 phb->phb_id); in pnv_phb4_dma_iommu()
1556 phb->phb_id); in pnv_phb4_bus_init()
1560 phb->phb_id); in pnv_phb4_bus_init()
1586 phb->big_phb = phb->phb_id == 0 || phb->phb_id == 3; in pnv_phb4_realize()
1590 phb->phb_id); in pnv_phb4_realize()
1693 DEFINE_PROP_UINT32("index", PnvPHB4, phb_id, 0),
1739 value = bus->phb_id; in pnv_phb4_root_bus_get_prop()
1760 bus->phb_id = value; in pnv_phb4_root_bus_set_prop()
[all …]
H A Dpnv_phb3.c27 (phb)->chip_id, (phb)->phb_id, ## __VA_ARGS__)
1014 object_property_set_int(OBJECT(pci->bus), "phb-id", phb->phb_id, in pnv_phb3_bus_init()
1028 if (phb->phb_id >= PNV_CHIP_GET_CLASS(phb->chip)->num_phbs) { in pnv_phb3_realize()
1029 error_setg(errp, "invalid PHB index: %d", phb->phb_id); in pnv_phb3_realize()
1094 DEFINE_PROP_UINT32("index", PnvPHB3, phb_id, 0),
1126 value = bus->phb_id; in pnv_phb3_root_bus_get_prop()
1147 bus->phb_id = value; in pnv_phb3_root_bus_set_prop()
/openbmc/qemu/include/hw/pci-host/
H A Dpnv_phb3.h111 uint32_t phb_id; member
134 uint32_t phb_id; member
H A Dpnv_phb4.h54 uint32_t phb_id; member
86 uint32_t phb_id; member
/openbmc/linux/arch/powerpc/kernel/
H A Dpci-common.c73 int ret, phb_id = -1; in get_phb_number() local
105 phb_id = (int)(prop & (MAX_PHBS - 1)); in get_phb_number()
110 if ((phb_id >= 0) && !test_and_set_bit(phb_id, phb_bitmap)) in get_phb_number()
114 phb_id = find_first_zero_bit(phb_bitmap, MAX_PHBS); in get_phb_number()
115 BUG_ON(phb_id >= MAX_PHBS); in get_phb_number()
116 set_bit(phb_id, phb_bitmap); in get_phb_number()
121 return phb_id; in get_phb_number()
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dpci-ioda.c2575 u64 phb_id; in pnv_pci_init_ioda_phb() local
2589 phb_id = be64_to_cpup(prop64); in pnv_pci_init_ioda_phb()
2590 pr_debug(" PHB-ID : 0x%016llx\n", phb_id); in pnv_pci_init_ioda_phb()
2618 phb->opal_id = phb_id; in pnv_pci_init_ioda_phb()
2723 rc = opal_pci_set_phb_mem_window(opal->phb_id, in pnv_pci_init_ioda_phb()
2779 rc = opal_pci_reset(phb_id, OPAL_RESET_PCI_IODA_TABLE, OPAL_ASSERT_RESET); in pnv_pci_init_ioda_phb()