Home
last modified time | relevance | path

Searched refs:sphb (Results 1 – 3 of 3) sorted by relevance

/openbmc/qemu/hw/ppc/
H A Dspapr_rtas_ddw.c38 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 Dspapr.c4089 SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(drc->dev); in spapr_phb_dt_populate() local
4097 if (spapr_dt_phb(spapr, sphb, intc_phandle, fdt, fdt_start_offset)) { in spapr_phb_dt_populate()
4098 error_setg(errp, "unable to create FDT node for PHB %d", sphb->index); in spapr_phb_dt_populate()
4163 SpaprPhbState *sphb = SPAPR_PCI_HOST_BRIDGE(dev); in spapr_phb_pre_plug() local
4164 const unsigned windows_supported = spapr_phb_windows_supported(sphb); in spapr_phb_pre_plug()
4167 if (sphb->index == (uint32_t)-1) { in spapr_phb_pre_plug()
4172 drc = spapr_drc_by_id(TYPE_SPAPR_DRC_PHB, sphb->index); in spapr_phb_pre_plug()
4174 error_setg(errp, "PHB %d already attached", sphb->index); in spapr_phb_pre_plug()
4182 return spapr_phb_placement(spapr, sphb->index, in spapr_phb_pre_plug()
4183 &sphb->buid, &sphb->io_win_addr, in spapr_phb_pre_plug()
[all …]
/openbmc/qemu/include/hw/pci-host/
H A Dspapr.h121 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 …]