Lines Matching refs:node_data
43 struct test_node_data *node_data; member
54 struct test_node_data *node_data = NULL; in graph_get_node_data() local
58 if (graph_data->node_data[i].node_id == id) { in graph_get_node_data()
59 node_data = &graph_data->node_data[i]; in graph_get_node_data()
63 return node_data; in graph_get_node_data()
70 struct test_node_data *node_data; in test_node_ctx_init() local
82 node_data = graph_get_node_data(graph_data, nid); in test_node_ctx_init()
84 for (i = 0; i < node->nb_edges && !node_data->is_sink; i++, edge++) { in test_node_ctx_init()
86 node->ctx[i + 9] = node_data->next_percentage[i]; in test_node_ctx_init()
276 char *ename[], struct test_node_data *node_data, in graph_node_count_edges() argument
288 node_data->next_nodes[edges] = node_map[stage + 1][i]; in graph_node_count_edges()
289 node_data->next_percentage[edges] = in graph_node_count_edges()
314 struct test_node_data *node_data; in graph_init() local
337 graph_data->node_data = in graph_init()
340 if (graph_data->node_data == NULL) { in graph_init()
400 node_data = in graph_init()
401 &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
402 node_data->node_id = node_map[i][j]; in graph_init()
403 node_data->is_sink = false; in graph_init()
411 node_data = in graph_init()
415 node_data, node_map); in graph_init()
461 node_data = &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
462 node_data->node_id = src_nodes[i]; in graph_init()
463 node_data->is_sink = false; in graph_init()
473 node_data->next_nodes[edges] = node_map[0][j]; in graph_init()
474 node_data->next_percentage[edges] = src_map[i][j]; in graph_init()
518 node_data = &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
519 node_data->node_id = snk_nodes[i]; in graph_init()
520 node_data->is_sink = true; in graph_init()
528 node_data = graph_get_node_data(graph_data, in graph_init()
537 node_data->next_nodes[edges] = snk_nodes[j]; in graph_init()
538 node_data->next_percentage[edges] = snk_map[i][j]; in graph_init()
594 free(graph_data->node_data); in graph_init()
673 free(graph_data->node_data); in graph_fini()