Lines Matching refs:tn
161 tnode_t *tn = NULL; in topo_digraph_new() local
183 if ((tn = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) in topo_digraph_new()
191 tn->tn_state = TOPO_NODE_ROOT | TOPO_NODE_INIT; in topo_digraph_new()
192 tn->tn_name = (char *)scheme; in topo_digraph_new()
193 tn->tn_instance = 0; in topo_digraph_new()
194 tn->tn_enum = mod; in topo_digraph_new()
195 tn->tn_hdl = thp; in topo_digraph_new()
196 topo_node_hold(tn); in topo_digraph_new()
198 tdg->tdg_rootnode = tn; in topo_digraph_new()
199 if (topo_method_register(mod, tn, digraph_root_methods) != 0) { in topo_digraph_new()
259 tnode_t *tn = NULL; in topo_vertex_new() local
270 (tn = topo_mod_zalloc(mod, sizeof (tnode_t))) == NULL) { in topo_vertex_new()
274 if ((tn->tn_name = topo_mod_strdup(mod, name)) == NULL) { in topo_vertex_new()
278 tn->tn_enum = mod; in topo_vertex_new()
279 tn->tn_hdl = mod->tm_hdl; in topo_vertex_new()
280 tn->tn_vtx = vtx; in topo_vertex_new()
281 tn->tn_instance = inst; in topo_vertex_new()
287 tn->tn_state = TOPO_NODE_ROOT | TOPO_NODE_BOUND; in topo_vertex_new()
288 vtx->tvt_node = tn; in topo_vertex_new()
289 topo_node_hold(tn); in topo_vertex_new()
307 if (tn != NULL) { in topo_vertex_new()
308 topo_mod_strfree(mod, tn->tn_name); in topo_vertex_new()
309 topo_mod_free(mod, tn, sizeof (tnode_t)); in topo_vertex_new()