Searched defs:thp (Results 1 - 25 of 63) sorted by relevance

123

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_alloc.c58 topo_hdl_alloc(topo_hdl_t *thp, size_t size) argument
60 topo_alloc_t *ap = thp->th_alloc;
66 topo_hdl_zalloc(topo_hdl_t *thp, size_t size) argument
68 topo_alloc_t *ap = thp->th_alloc;
74 topo_hdl_free(topo_hdl_t *thp, void *data, size_t size) argument
76 topo_alloc_t *ap = thp->th_alloc;
H A Dtopo_builtin.c102 topo_builtin_create(topo_hdl_t *thp, const char *rootdir) argument
117 if ((mod = topo_modhash_load(thp, bp->bltin_name, NULL,
119 topo_dprintf(thp, TOPO_DBG_ERR,
122 topo_hdl_errmsg(thp));
125 if ((tp = topo_tree_create(thp, mod, bp->bltin_name))
127 topo_dprintf(thp, TOPO_DBG_ERR,
130 topo_hdl_errmsg(thp));
133 topo_list_append(&thp->th_trees, tp);
147 (void) topo_hdl_seterrno(thp, ETOPO_ENUM_PARTIAL);
H A Dtopo_nvl.c65 topo_hdl_nvalloc(topo_hdl_t *thp, nvlist_t **nvlp, uint_t nvflag) argument
68 if (nvlist_xalloc(nvlp, nvflag, &thp->th_alloc->ta_nva) != 0)
75 topo_hdl_nvdup(topo_hdl_t *thp, nvlist_t *nvl, nvlist_t **nvlp) argument
77 if (nvlist_xdup(nvl, nvlp, &thp->th_alloc->ta_nva) != 0)
H A Dtopo_tree.c70 set_create_error(topo_hdl_t *thp, ttree_t *tp, int err) argument
76 (void) topo_hdl_seterrno(thp, err);
82 topo_tree_create(topo_hdl_t *thp, topo_mod_t *mod, const char *scheme) argument
88 return (set_create_error(thp, NULL, ETOPO_NOMEM));
93 return (set_create_error(thp, tp, ETOPO_NOMEM));
99 return (set_create_error(thp, tp, ETOPO_NOMEM));
105 return (set_create_error(thp, tp, 0)); /* th_errno set */
111 rp->tn_hdl = thp;
116 tp->tt_walk->tw_thp = thp;
153 topo_tree_enum(topo_hdl_t *thp, ttree_ argument
203 topo_tree_enum_all(topo_hdl_t *thp) argument
[all...]
H A Dtopo_string.c36 topo_hdl_strdup(topo_hdl_t *thp, const char *s) argument
41 p = topo_hdl_alloc(thp, strlen(s) + 1);
52 topo_hdl_strfree(topo_hdl_t *thp, char *s) argument
55 topo_hdl_free(thp, s, strlen(s) + 1);
H A Dtopo_module.c165 topo_mod_lookup(topo_hdl_t *thp, const char *name, int bump) argument
168 topo_modhash_t *mhp = thp->th_modhash;
182 topo_hdl_t *thp = mod->tm_hdl; local
191 topo_hdl_strfree(thp, mod->tm_name);
193 topo_hdl_strfree(thp, mod->tm_path);
195 topo_hdl_strfree(thp, mod->tm_rootdir);
197 topo_hdl_free(thp, mod, sizeof (topo_mod_t));
201 set_create_error(topo_hdl_t *thp, topo_mod_t *mod, const char *path, int err) argument
204 topo_dprintf(thp, TOPO_DBG_ERR, "unable to load module %s: "
207 topo_dprintf(thp, TOPO_DBG_ER
219 topo_mod_create(topo_hdl_t *thp, const char *name, const char *path, const topo_imodops_t *ops, topo_version_t version) argument
256 topo_modhash_create(topo_hdl_t *thp) argument
278 topo_modhash_destroy(topo_hdl_t *thp) argument
309 topo_modhash_load(topo_hdl_t *thp, const char *name, const char *path, const topo_imodops_t *ops, topo_version_t version) argument
339 topo_hdl_t *thp = mod->tm_hdl; local
378 topo_modhash_unload_all(topo_hdl_t *thp) argument
[all...]
H A Dtopo_2xml.c105 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname, argument
171 if (topo_fmri_nvl2str(thp, val, &fmri, &err)
195 topo_hdl_free(thp, val,
205 topo_hdl_free(thp, val,
220 topo_hdl_strfree(thp, pval);
223 topo_hdl_strfree(thp, fmri);
230 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg) argument
244 txml_print_prop(thp, fp, node, pip->tpi_name, plp->tp_pval);
250 txml_print_dependents(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument
255 if (txml_print_range(thp, f
260 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node) argument
277 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent) argument
317 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node) argument
334 topo_xml_print(topo_hdl_t *thp, FILE *fp, const char *scheme, int *err) argument
[all...]
H A Dtopo_subr.c37 topo_hdl_lock(topo_hdl_t *thp) argument
39 (void) pthread_mutex_lock(&thp->th_lock);
43 topo_hdl_unlock(topo_hdl_t *thp) argument
45 (void) pthread_mutex_unlock(&thp->th_lock);
106 env_process_value(topo_hdl_t *thp, const char *begin, const char *end) argument
132 thp->th_debug |= dbp->tdm_mode;
137 topo_debug_set(topo_hdl_t *thp, const char *dbmode, const char *dout) argument
142 topo_hdl_lock(thp);
152 env_process_value(thp, value, end);
156 topo_hdl_unlock(thp);
169 topo_vdprintf(topo_hdl_t *thp, int mask, const char *mod, const char *format, va_list ap) argument
205 topo_dprintf(topo_hdl_t *thp, int mask, const char *format, ...) argument
215 topo_hdl_root(topo_hdl_t *thp, const char *scheme) argument
266 topo_hdl_t *thp = mod->tm_hdl; local
299 topo_cleanup_auth_str(topo_hdl_t *thp, const char *begin) argument
[all...]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_topo.c143 fmd_topo_rele_hdl(topo_hdl_t *thp) argument
150 if (ftp->ft_hdl == thp)
H A Dfmd_fmri.c244 fmd_fmri_topo_rele(struct topo_hdl *thp) argument
246 fmd_topo_rele_hdl(thp);
383 topo_hdl_t *thp; local
386 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
389 rv = topo_fmri_retire(thp, nvl, &err);
390 fmd_fmri_topo_rele(thp);
398 topo_hdl_t *thp; local
401 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
404 rv = topo_fmri_unretire(thp, nvl, &err);
405 fmd_fmri_topo_rele(thp);
[all...]
/illumos-gate/usr/src/cmd/fm/fmdump/common/
H A Dnvlrender.c49 topo_hdl_t *thp = fmd_fmri_topo_hold(TOPO_VERSION); local
65 if (topo_fmri_nvl2str(thp, fmri, &fmristr, &err) != 0 ||
72 topo_hdl_strfree(thp, fmristr);
H A Dscheme.c325 fmd_fmri_topo_rele(struct topo_hdl *thp) argument
/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/subsidiary/smf/
H A Dsmf_util.c44 topo_hdl_t *thp; local
48 thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
49 if (topo_fmri_nvl2str(thp, fmri, &topostr, &err) == 0) {
51 topo_hdl_strfree(thp, topostr);
53 fmd_hdl_topo_rele(hdl, thp);
/illumos-gate/usr/src/cmd/fm/schemes/mod/
H A Dscheme.c35 topo_hdl_t *thp; local
38 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
41 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
42 fmd_fmri_topo_rele(thp);
51 topo_hdl_strfree(thp, str);
52 fmd_fmri_topo_rele(thp);
/illumos-gate/usr/src/cmd/fm/schemes/pkg/
H A Dscheme.c35 topo_hdl_t *thp; local
38 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
41 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
42 fmd_fmri_topo_rele(thp);
51 topo_hdl_strfree(thp, str);
52 fmd_fmri_topo_rele(thp);
/illumos-gate/usr/src/cmd/fm/schemes/sw/
H A Dscheme.c48 topo_hdl_t *thp; local
51 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
54 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
55 fmd_fmri_topo_rele(thp);
64 topo_hdl_strfree(thp, str);
65 fmd_fmri_topo_rele(thp);
/illumos-gate/usr/src/cmd/fm/schemes/dev/
H A Dscheme.c52 topo_hdl_t *thp; local
55 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
58 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
59 fmd_fmri_topo_rele(thp);
68 topo_hdl_strfree(thp, str);
69 fmd_fmri_topo_rele(thp);
78 topo_hdl_t *thp; local
80 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
83 present = topo_fmri_present(thp, nvl, &err);
84 fmd_fmri_topo_rele(thp);
93 topo_hdl_t *thp; local
109 topo_hdl_t *thp; local
132 topo_hdl_t *thp; local
[all...]
/illumos-gate/usr/src/cmd/fm/schemes/svc/
H A Dscheme.c49 topo_hdl_t *thp; local
52 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
55 if (topo_fmri_nvl2str(thp, nvl, &str, &err) != 0) {
56 fmd_fmri_topo_rele(thp);
65 topo_hdl_strfree(thp, str);
66 fmd_fmri_topo_rele(thp);
77 topo_hdl_t *thp; local
83 if ((thp = fmd_fmri_topo_hold(TOPO_VERSION)) == NULL)
85 present = topo_fmri_present(thp, nvl, &err);
86 fmd_fmri_topo_rele(thp);
96 topo_hdl_t *thp; local
115 topo_hdl_t *thp; local
139 topo_hdl_t *thp; local
[all...]
/illumos-gate/usr/src/cmd/fm/modules/common/ext-event-transport/
H A Dfmevt_inbound_smf.c97 topo_hdl_t *thp; local
104 thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION);
106 if (topo_fmri_str2nvl(thp, fmristr, &fmri, &err) != 0) {
110 fmd_hdl_topo_rele(hdl, thp);
119 fmd_hdl_topo_rele(hdl, thp);
124 fmd_hdl_topo_rele(hdl, thp);
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/
H A Dfabric-xlate.c52 topo_hdl_t *thp = NULL; local
77 if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL) {
83 if (topo_xml_print(thp, fp, FM_FMRI_SCHEME_HC, &err) < 0) {
85 fmd_hdl_topo_rele(hdl, thp);
90 fmd_hdl_topo_rele(hdl, thp);
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-retire/
H A Dcma_cpu_sun4v.c139 topo_hdl_t *thp; local
151 thp = fmd_fmri_topo_hold(TOPO_VERSION);
152 if (thp != NULL) {
153 (void) topo_fmri_asru(thp, fmri, &asru, &err);
154 fmd_fmri_topo_rele(thp);
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_tcp.c75 struct tcphdr *thp; local
86 thp = NULL;
149 thp = (struct tcphdr *)(mp->b_rptr + off);
150 ths = thp->th_off * 4;
152 dport = thp->th_dport;
153 sport = thp->th_sport;
206 *thpp = thp;
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/
H A Detm_filter.c57 etm_pciexrc_walker(topo_hdl_t *thp, tnode_t *node, void *arg) argument
80 topo_hdl_strfree(thp, str);
124 topo_hdl_t *thp; /* topo handle */ local
128 if ((thp = fmd_hdl_topo_hold(hdl, TOPO_VERSION)) == NULL)
130 twp = topo_walk_init(thp, FM_FMRI_SCHEME_HC, etm_pciexrc_walker,
133 fmd_hdl_topo_rele(hdl, thp);
138 fmd_hdl_topo_rele(hdl, thp);
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/
H A Dscheme.c323 fmd_fmri_topo_rele(struct topo_hdl *thp) argument
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c104 libzfs_fru_gather(topo_hdl_t *thp, tnode_t *tn, void *arg) argument
138 _topo_hdl_strfree(thp, devpath);
143 _topo_hdl_strfree(thp, devpath);
150 if (_topo_fmri_nvl2str(thp, fru, &frustr, &err) != 0) {
152 _topo_hdl_strfree(thp, devpath);
162 _topo_hdl_strfree(thp, devpath);
163 _topo_hdl_strfree(thp, frustr);
171 _topo_hdl_strfree(thp, devpath);
172 _topo_hdl_strfree(thp, frustr);
176 _topo_hdl_strfree(thp, devpat
261 topo_hdl_t *thp; local
[all...]

Completed in 71 milliseconds

123