Lines Matching refs:edges

280 	uint16_t edges = 0;  in graph_node_count_edges()  local
283 for (i = 0; i < nodes_per_stage && edges < MAX_EDGES_PER_NODE; i++) { in graph_node_count_edges()
285 ename[edges] = malloc(sizeof(char) * RTE_NODE_NAMESIZE); in graph_node_count_edges()
286 snprintf(ename[edges], RTE_NODE_NAMESIZE, "%s", in graph_node_count_edges()
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()
291 edges++; in graph_node_count_edges()
296 if (edges >= MAX_EDGES_PER_NODE || (edges && total_percent != 100)) { in graph_node_count_edges()
297 for (i = 0; i < edges; i++) in graph_node_count_edges()
302 return edges; in graph_node_count_edges()
324 rte_edge_t edges; in graph_init() local
413 edges = graph_node_count_edges(i, j, nodes_per_stage, in graph_init()
416 if (edges == RTE_EDGE_ID_INVALID) { in graph_init()
420 if (!edges) in graph_init()
428 (const char **)(uintptr_t)ename, edges); in graph_init()
429 for (k = 0; k < edges; k++) in graph_init()
431 if (count != edges) { in graph_init()
432 printf("Couldn't add edges %d %d\n", edges, in graph_init()
441 edges = 0; in graph_init()
470 ename[edges] = malloc(sizeof(char) * RTE_NODE_NAMESIZE); in graph_init()
471 snprintf(ename[edges], RTE_NODE_NAMESIZE, "%s", 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()
475 edges++; in graph_init()
479 if (!edges) in graph_init()
481 if (edges >= MAX_EDGES_PER_NODE || total_percent != 100) { in graph_init()
483 for (j = 0; j < edges; j++) in graph_init()
491 edges); in graph_init()
492 for (k = 0; k < edges; k++) in graph_init()
494 if (count != edges) { in graph_init()
495 printf("Couldn't add edges %d %d\n", edges, count); in graph_init()
526 edges = 0; in graph_init()
534 ename[edges] = malloc(sizeof(char) * RTE_NODE_NAMESIZE); in graph_init()
535 snprintf(ename[edges], RTE_NODE_NAMESIZE, "%s", 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()
539 edges++; in graph_init()
542 if (!edges) in graph_init()
544 if (edges >= MAX_EDGES_PER_NODE || total_percent != 100) { in graph_init()
546 for (j = 0; j < edges; j++) in graph_init()
554 edges); in graph_init()
555 for (k = 0; k < edges; k++) in graph_init()
557 if (count != edges) { in graph_init()
558 printf("Couldn't add edges %d %d\n", edges, count); in graph_init()