Lines Matching defs:node
105 txml_print_prop(topo_hdl_t *thp, FILE *fp, tnode_t *node, const char *pgname,
115 if (topo_prop_get_int32(node, pgname, pv->tp_name, &val,
126 if (topo_prop_get_uint32(node, pgname, pv->tp_name,
137 if (topo_prop_get_int64(node, pgname, pv->tp_name, &val,
149 if (topo_prop_get_uint64(node, pgname, pv->tp_name,
160 if (topo_prop_get_string(node, pgname, pv->tp_name,
169 if (topo_prop_get_fmri(node, pgname, pv->tp_name, &val,
187 if (topo_prop_get_uint32_array(node, pgname,
230 txml_print_pgroup(topo_hdl_t *thp, FILE *fp, tnode_t *node, topo_pgroup_t *pg)
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)
252 if (topo_list_next(&node->tn_children) == NULL)
255 if (txml_print_range(thp, fp, node, 1) == 1)
260 txml_print_node(topo_hdl_t *thp, FILE *fp, tnode_t *node)
265 (void) snprintf(inst, INT32BUFSZ, "%d", node->tn_instance);
267 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL;
269 txml_print_pgroup(thp, fp, node, pg);
271 txml_print_dependents(thp, fp, node);
277 txml_print_range(topo_hdl_t *thp, FILE *fp, tnode_t *node, int dependent)
283 for (nhp = topo_list_next(&node->tn_children); nhp != NULL;
317 txml_print_topology(topo_hdl_t *thp, FILE *fp, char *scheme, tnode_t *node)
328 (void) txml_print_range(thp, fp, node, 0);