Lines Matching refs:sphb
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
274 PCIHostState *phb = PCI_HOST_BRIDGE(sphb); in spapr_phb_vfio_eeh_pre_reset()
279 int spapr_phb_vfio_eeh_reset(SpaprPhbState *sphb, int option) in spapr_phb_vfio_eeh_reset() argument
289 spapr_phb_vfio_eeh_pre_reset(sphb); in spapr_phb_vfio_eeh_reset()
293 spapr_phb_vfio_eeh_pre_reset(sphb); in spapr_phb_vfio_eeh_reset()
300 ret = vfio_eeh_as_op(&sphb->iommu_as, op); in spapr_phb_vfio_eeh_reset()
308 int spapr_phb_vfio_eeh_configure(SpaprPhbState *sphb) in spapr_phb_vfio_eeh_configure() argument
312 ret = vfio_eeh_as_op(&sphb->iommu_as, VFIO_EEH_PE_CONFIGURE); in spapr_phb_vfio_eeh_configure()
322 bool spapr_phb_eeh_available(SpaprPhbState *sphb) in spapr_phb_eeh_available() argument
331 int spapr_phb_vfio_eeh_set_option(SpaprPhbState *sphb, in spapr_phb_vfio_eeh_set_option() argument
337 int spapr_phb_vfio_eeh_get_state(SpaprPhbState *sphb, int *state) in spapr_phb_vfio_eeh_get_state() argument
342 int spapr_phb_vfio_eeh_reset(SpaprPhbState *sphb, int option) in spapr_phb_vfio_eeh_reset() argument
347 int spapr_phb_vfio_eeh_configure(SpaprPhbState *sphb) in spapr_phb_vfio_eeh_configure() argument