Lines Matching defs:hxgep
174 hxge_fm_init(p_hxge_t hxgep, ddi_device_acc_attr_t *reg_attr,
179 HXGE_DEBUG_MSG((hxgep, DDI_CTL, "==> hxge_fm_init"));
182 hxgep->fm_capabilities = ddi_prop_get_int(DDI_DEV_T_ANY, hxgep->dip,
186 HXGE_DEBUG_MSG((hxgep, DDI_CTL,
187 "FM capable = %d\n", hxgep->fm_capabilities));
194 if (hxgep->fm_capabilities)
195 ddi_fm_init(hxgep->dip, &hxgep->fm_capabilities, &iblk);
200 if (DDI_FM_EREPORT_CAP(hxgep->fm_capabilities) ||
201 DDI_FM_ERRCB_CAP(hxgep->fm_capabilities)) {
202 pci_ereport_setup(hxgep->dip);
206 if (DDI_FM_ERRCB_CAP(hxgep->fm_capabilities)) {
207 ddi_fm_handler_register(hxgep->dip,
208 hxge_fm_error_cb, (void *) hxgep);
218 if (DDI_FM_ACC_ERR_CAP(hxgep->fm_capabilities)) {
233 if (DDI_FM_DMA_ERR_CAP(hxgep->fm_capabilities))
238 HXGE_DEBUG_MSG((hxgep, DDI_CTL, "<== hxge_fm_init"));
242 hxge_fm_fini(p_hxge_t hxgep)
245 if (hxgep->fm_capabilities) {
249 if (DDI_FM_EREPORT_CAP(hxgep->fm_capabilities) ||
250 DDI_FM_ERRCB_CAP(hxgep->fm_capabilities))
251 pci_ereport_teardown(hxgep->dip);
256 if (DDI_FM_ERRCB_CAP(hxgep->fm_capabilities))
257 ddi_fm_handler_unregister(hxgep->dip);
260 ddi_fm_fini(hxgep->dip);
318 hxge_fm_ereport(p_hxge_t hxgep, uint8_t err_chan,
331 statsp = hxgep->statsp;
335 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
341 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
349 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
357 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
371 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
389 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
400 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
412 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
427 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
435 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
444 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
452 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
460 ddi_fm_ereport_post(hxgep->dip, eclass, ena, DDI_NOSLEEP,
469 hxge_fm_report_error(p_hxge_t hxgep, uint8_t err_chan,
477 (DDI_FM_EREPORT_CAP(hxgep->fm_capabilities))) {
478 hxge_fm_ereport(hxgep, err_chan, fm_ereport_attr);
479 ddi_fm_service_impact(hxgep->dip, fm_ereport_attr->impact);