Lines Matching refs:node_data
54 struct test_node_data *node_data; member
65 struct test_node_data *node_data = NULL; in graph_get_node_data() local
69 if (graph_data->node_data[i].node_id == id) { in graph_get_node_data()
70 node_data = &graph_data->node_data[i]; in graph_get_node_data()
74 return node_data; in graph_get_node_data()
81 struct test_node_data *node_data; in test_node_ctx_init() local
93 node_data = graph_get_node_data(graph_data, nid); in test_node_ctx_init()
95 for (i = 0; i < node->nb_edges && !node_data->is_sink; i++, edge++) { in test_node_ctx_init()
97 node->ctx[i + 9] = node_data->next_percentage[i]; in test_node_ctx_init()
287 char *ename[], struct test_node_data *node_data, in graph_node_count_edges() argument
299 node_data->next_nodes[edges] = node_map[stage + 1][i]; in graph_node_count_edges()
300 node_data->next_percentage[edges] = in graph_node_count_edges()
325 struct test_node_data *node_data; in graph_init() local
348 graph_data->node_data = in graph_init()
351 if (graph_data->node_data == NULL) { in graph_init()
411 node_data = in graph_init()
412 &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
413 node_data->node_id = node_map[i][j]; in graph_init()
414 node_data->is_sink = false; in graph_init()
422 node_data = in graph_init()
426 node_data, node_map); in graph_init()
472 node_data = &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
473 node_data->node_id = src_nodes[i]; in graph_init()
474 node_data->is_sink = false; in graph_init()
484 node_data->next_nodes[edges] = node_map[0][j]; in graph_init()
485 node_data->next_percentage[edges] = src_map[i][j]; in graph_init()
529 node_data = &graph_data->node_data[graph_data->nb_nodes]; in graph_init()
530 node_data->node_id = snk_nodes[i]; in graph_init()
531 node_data->is_sink = true; in graph_init()
539 node_data = graph_get_node_data(graph_data, in graph_init()
548 node_data->next_nodes[edges] = snk_nodes[j]; in graph_init()
549 node_data->next_percentage[edges] = snk_map[i][j]; in graph_init()
605 free(graph_data->node_data); in graph_init()
684 free(graph_data->node_data); in graph_fini()