Lines Matching refs:thp
173 do_slot_mapping_cb(topo_hdl_t *thp, tnode_t *node, void *arg) in do_slot_mapping_cb() argument
185 if (topo_fmri_nvl2str(thp, rsrc, &fmri, &err) < 0) in do_slot_mapping_cb()
234 topo_hdl_strfree(thp, didstr); in do_slot_mapping_cb()
235 topo_hdl_strfree(thp, driver); in do_slot_mapping_cb()
236 topo_hdl_strfree(thp, vidstr); in do_slot_mapping_cb()
237 topo_hdl_strfree(thp, fmri); in do_slot_mapping_cb()
243 do_slot_mapping(smbios_slot_t *s, topo_hdl_t *thp) in do_slot_mapping() argument
259 twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, do_slot_mapping_cb, pciex, in do_slot_mapping()
309 topo_hdl_t *thp; in do_prominfo() local
354 if ((thp = topo_open(TOPO_VERSION, NULL, &err)) != NULL) { in do_prominfo()
355 if ((uuid = topo_snap_hold(thp, NULL, &err)) == NULL) { in do_prominfo()
356 topo_close(thp); in do_prominfo()
357 thp = NULL; in do_prominfo()
394 (void) smbios_iter(shp, do_slots, thp); in do_prominfo()
398 topo_hdl_strfree(thp, uuid); in do_prominfo()
399 if (thp != NULL) { in do_prominfo()
400 topo_snap_release(thp); in do_prominfo()
401 topo_close(thp); in do_prominfo()