Lines Matching refs:hdl
50 fab_update_topo(fmd_hdl_t *hdl)
60 fmd_hdl_debug(hdl, "Failed to remove XML topo file\n");
65 fmd_hdl_debug(hdl, "Failed to create XML topo file\n");
72 fmd_hdl_debug(hdl, "Failed to open XML topo file\n");
77 if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) {
78 fmd_hdl_debug(hdl, "Failed to hold topo\n");
84 fmd_hdl_debug(hdl, "Failed to get XML topo\n");
85 fmd_hdl_topo_rele(hdl, thp);
90 fmd_hdl_topo_rele(hdl, thp);
99 fab_set_fake_rp(hdl);
112 fab_recv(fmd_hdl_t *hdl, fmd_event_t *ep, nvlist_t *nvl, const char *class)
118 fab_update_topo(hdl);
122 fmd_hdl_error(hdl, "failed to duplicate event");
126 if (fmd_nvl_class_match(hdl, new_nvl, "ereport.io.pci.fabric")) {
127 fab_xlate_fabric_erpts(hdl, new_nvl, class);
129 fab_pr(hdl, ep, new_nvl);
130 if (fmd_nvl_class_match(hdl, new_nvl,
132 fab_xlate_epkt_erpts(hdl, new_nvl, class);
134 fab_xlate_fire_erpts(hdl, new_nvl, class);
143 fab_topo(fmd_hdl_t *hdl, topo_hdl_t *topo)
165 _fmd_init(fmd_hdl_t *hdl)
167 if (fmd_hdl_register(hdl, FMD_API_VERSION, &fmd_info) != 0)
173 fab_fmd_xprt = fmd_xprt_open(hdl, FMD_XPRT_RDONLY, NULL, NULL);
174 fmd_hdl_debug(hdl, "Fabric Translater Started\n");
180 _fmd_fini(fmd_hdl_t *hdl)
191 fmd_xprt_close(hdl, fab_fmd_xprt);