Lines Matching refs:thp
47 topo_hdl_t *thp; in fmd_fmri_nvl2str() local
54 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fmd_fmri_nvl2str()
56 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) { in fmd_fmri_nvl2str()
57 fmd_fmri_topo_rele(thp); in fmd_fmri_nvl2str()
66 topo_hdl_strfree(thp, str); in fmd_fmri_nvl2str()
67 fmd_fmri_topo_rele(thp); in fmd_fmri_nvl2str()
76 topo_hdl_t *thp; in fmd_fmri_present() local
88 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fmd_fmri_present()
90 present = topo_fmri_present(thp, nvl, &err); in fmd_fmri_present()
91 fmd_fmri_topo_rele(thp); in fmd_fmri_present()
100 topo_hdl_t *thp; in fmd_fmri_replaced() local
112 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fmd_fmri_replaced()
114 replaced = topo_fmri_replaced(thp, nvl, &err); in fmd_fmri_replaced()
115 fmd_fmri_topo_rele(thp); in fmd_fmri_replaced()
124 topo_hdl_t *thp; in fmd_fmri_unusable() local
134 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fmd_fmri_unusable()
136 unusable = topo_fmri_unusable(thp, nvl, &err); in fmd_fmri_unusable()
137 fmd_fmri_topo_rele(thp); in fmd_fmri_unusable()
209 topo_hdl_t *thp; in fru_compare() local
215 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fru_compare()
218 (void) topo_fmri_fru(thp, r1, &f1, &err); in fru_compare()
219 (void) topo_fmri_fru(thp, r2, &f2, &err); in fru_compare()
229 fmd_fmri_topo_rele(thp); in fru_compare()
283 topo_hdl_t *thp; in fmd_fmri_service_state() local
289 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL) in fmd_fmri_service_state()
292 service_state = topo_fmri_service_state(thp, nvl, &err); in fmd_fmri_service_state()
293 fmd_fmri_topo_rele(thp); in fmd_fmri_service_state()