Searched refs:sphb (Results 1 – 5 of 5) sorted by relevance
/openbmc/qemu/hw/ppc/ |
H A D | spapr_rtas_ddw.c | 38 static unsigned spapr_phb_get_active_win_num(SpaprPhbState *sphb) in spapr_phb_get_active_win_num() argument 42 object_child_foreach(OBJECT(sphb), spapr_phb_get_active_win_num_cb, &ret); in spapr_phb_get_active_win_num() 59 static unsigned spapr_phb_get_free_liobn(SpaprPhbState *sphb) in spapr_phb_get_free_liobn() argument 63 object_child_foreach(OBJECT(sphb), spapr_phb_get_free_liobn_cb, &liobn); in spapr_phb_get_free_liobn() 99 SpaprPhbState *sphb; in rtas_ibm_query_pe_dma_window() local 109 sphb = spapr_pci_find_phb(spapr, buid); in rtas_ibm_query_pe_dma_window() 110 if (!sphb || !sphb->ddw_enabled) { in rtas_ibm_query_pe_dma_window() 115 pgmask = spapr_page_mask_to_query_mask(sphb->page_size_mask); in rtas_ibm_query_pe_dma_window() 117 avail = SPAPR_PCI_DMA_MAX_WINDOWS - spapr_phb_get_active_win_num(sphb); in rtas_ibm_query_pe_dma_window() 149 SpaprPhbState *sphb; in rtas_ibm_create_pe_dma_window() local [all …]
|
H A D | spapr_pci.c | 68 SpaprPhbState *sphb; in spapr_pci_find_phb() local 70 QLIST_FOREACH(sphb, &spapr->phbs, list) { in spapr_pci_find_phb() 71 if (sphb->buid != buid) { in spapr_pci_find_phb() 74 return sphb; in spapr_pci_find_phb() 83 SpaprPhbState *sphb = spapr_pci_find_phb(spapr, buid); in spapr_pci_find_dev() local 84 PCIHostState *phb = PCI_HOST_BRIDGE(sphb); in spapr_pci_find_dev() 482 SpaprPhbState *sphb; in rtas_ibm_set_eeh_option() local 495 sphb = spapr_pci_find_phb(spapr, buid); in rtas_ibm_set_eeh_option() 496 if (!sphb) { in rtas_ibm_set_eeh_option() 500 if (!spapr_phb_eeh_available(sphb)) { in rtas_ibm_set_eeh_option() [all …]
|
H A D | spapr_pci_vfio.c | 129 bool spapr_phb_eeh_available(SpaprPhbState *sphb) in spapr_phb_eeh_available() argument 131 return vfio_eeh_as_ok(&sphb->iommu_as); in spapr_phb_eeh_available() 134 static void spapr_phb_vfio_eeh_reenable(SpaprPhbState *sphb) in spapr_phb_vfio_eeh_reenable() argument 136 vfio_eeh_as_op(&sphb->iommu_as, VFIO_EEH_PE_ENABLE); in spapr_phb_vfio_eeh_reenable() 160 int spapr_phb_vfio_eeh_set_option(SpaprPhbState *sphb, in spapr_phb_vfio_eeh_set_option() argument 194 phb = PCI_HOST_BRIDGE(sphb); in spapr_phb_vfio_eeh_set_option() 215 ret = vfio_eeh_as_op(&sphb->iommu_as, op); in spapr_phb_vfio_eeh_set_option() 223 int spapr_phb_vfio_eeh_get_state(SpaprPhbState *sphb, int *state) in spapr_phb_vfio_eeh_get_state() argument 227 ret = vfio_eeh_as_op(&sphb->iommu_as, VFIO_EEH_PE_GET_STATE); in spapr_phb_vfio_eeh_get_state() 272 static void spapr_phb_vfio_eeh_pre_reset(SpaprPhbState *sphb) in spapr_phb_vfio_eeh_pre_reset() argument [all …]
|
H A D | spapr.c | 4042 SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(drc->dev); in spapr_phb_dt_populate() local 4050 if (spapr_dt_phb(spapr, sphb, intc_phandle, fdt, fdt_start_offset)) { in spapr_phb_dt_populate() 4051 error_setg(errp, "unable to create FDT node for PHB %d", sphb->index); in spapr_phb_dt_populate() 4065 SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(dev); in spapr_phb_pre_plug() local 4067 const unsigned windows_supported = spapr_phb_windows_supported(sphb); in spapr_phb_pre_plug() 4075 if (sphb->index == (uint32_t)-1) { in spapr_phb_pre_plug() 4080 drc = spapr_drc_by_id(TYPE_SPAPR_DRC_PHB, sphb->index); in spapr_phb_pre_plug() 4082 error_setg(errp, "PHB %d already attached", sphb->index); in spapr_phb_pre_plug() 4091 smc->phb_placement(spapr, sphb->index, in spapr_phb_pre_plug() 4092 &sphb->buid, &sphb->io_win_addr, in spapr_phb_pre_plug() [all …]
|
/openbmc/qemu/include/hw/pci-host/ |
H A D | spapr.h | 121 bool spapr_phb_eeh_available(SpaprPhbState *sphb); 122 int spapr_phb_vfio_eeh_set_option(SpaprPhbState *sphb, 124 int spapr_phb_vfio_eeh_get_state(SpaprPhbState *sphb, int *state); 125 int spapr_phb_vfio_eeh_reset(SpaprPhbState *sphb, int option); 126 int spapr_phb_vfio_eeh_configure(SpaprPhbState *sphb); 129 static inline bool spapr_phb_eeh_available(SpaprPhbState *sphb) in spapr_phb_eeh_available() argument 133 static inline int spapr_phb_vfio_eeh_set_option(SpaprPhbState *sphb, in spapr_phb_vfio_eeh_set_option() argument 138 static inline int spapr_phb_vfio_eeh_get_state(SpaprPhbState *sphb, in spapr_phb_vfio_eeh_get_state() argument 143 static inline int spapr_phb_vfio_eeh_reset(SpaprPhbState *sphb, int option) in spapr_phb_vfio_eeh_reset() argument 147 static inline int spapr_phb_vfio_eeh_configure(SpaprPhbState *sphb) in spapr_phb_vfio_eeh_configure() argument [all …]
|