/openbmc/linux/arch/powerpc/include/asm/ |
H A D | opal.h | 31 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, 63 int64_t opal_pci_set_phb_tce_memory(uint64_t phb_id, uint64_t tce_mem_addr, 65 int64_t opal_pci_config_read_byte(uint64_t phb_id, uint64_t bus_dev_func, 67 int64_t opal_pci_config_read_half_word(uint64_t phb_id, uint64_t bus_dev_func, 69 int64_t opal_pci_config_read_word(uint64_t phb_id, uint64_t bus_dev_func, 71 int64_t opal_pci_config_write_byte(uint64_t phb_id, uint64_t bus_dev_func, 73 int64_t opal_pci_config_write_half_word(uint64_t phb_id, uint64_t bus_dev_func, [all …]
|
H A D | pnv-pci.h | 17 #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 D | pnv_phb3_pbcq.c | 25 (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() 289 PNV_XSCOM_PBCQ_NEST_BASE + 0x400 * phb->phb_id, in pnv_pbcq_realize() 292 PNV_XSCOM_PBCQ_PCI_BASE + 0x400 * phb->phb_id, in pnv_pbcq_realize() 295 PNV_XSCOM_PBCQ_SPCI_BASE + 0x040 * phb->phb_id, in pnv_pbcq_realize() [all …]
|
H A D | pnv_phb.c | 102 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 D | pnv_phb4_pec.c | 142 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 D | pnv_phb4.c | 27 (phb)->chip_id, (phb)->phb_id, ## __VA_ARGS__) 874 int stack_no = phb->phb_id; in pnv_phb4_get_phb_stack_no() 1467 phb->phb_id); in pnv_phb4_dma_iommu() 1555 phb->phb_id); in pnv_phb4_bus_init() 1559 phb->phb_id); in pnv_phb4_bus_init() 1568 object_property_set_int(OBJECT(pci->bus), "phb-id", phb->phb_id, in pnv_phb4_bus_init() 1585 phb->big_phb = phb->phb_id == 0 || phb->phb_id == 3; in pnv_phb4_realize() 1589 phb->phb_id); in pnv_phb4_realize() 1692 DEFINE_PROP_UINT32("index", PnvPHB4, phb_id, 0), 1738 value = bus->phb_id; in pnv_phb4_root_bus_get_prop() [all …]
|
H A D | pnv_phb3.c | 27 (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()
|
H A D | pnv_phb.h | 24 uint32_t phb_id; member
|
/openbmc/qemu/include/hw/pci-host/ |
H A D | pnv_phb3.h | 111 uint32_t phb_id; member 134 uint32_t phb_id; member
|
H A D | pnv_phb4.h | 54 uint32_t phb_id; member 86 uint32_t phb_id; member
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | pci-common.c | 73 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 D | pci-ioda.c | 2575 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()
|