Lines Matching defs:graph
20 struct graph **graphs;
193 const struct rte_graph *graph = cluster->graphs[0]->graph;
194 if (graph->model == RTE_GRAPH_MODEL_MCORE_DISPATCH)
221 struct rte_graph *graph, struct graph_node *graph_node)
236 node = graph_node_id_to_ptr(graph, id);
240 "Failed to find node %s in graph %s",
241 graph_node->node->name, graph->name);
261 node = graph_node_id_to_ptr(graph, id);
263 SET_ERR_JMP(ENOENT, free, "Failed to find node %s in graph %s",
264 graph_node->node->name, graph->name);
272 SET_ERR_JMP(ENOMEM, free, "Failed to allocate memory node %s graph %s",
273 graph_node->node->name, graph->name);
280 SET_ERR_JMP(ENOMEM, free, "Failed to allocate memory node %s graph %s",
281 graph_node->node->name, graph->name);
291 "Error description overflow node %s graph %s",
292 graph_node->node->name, graph->name);
321 cluster_add(struct cluster *cluster, struct graph *graph)
326 /* Skip the if graph is already added to cluster */
328 if (cluster->graphs[count] == graph)
331 /* Expand the cluster if required to store graph objects */
334 sz = sizeof(struct graph *) * cluster->size;
340 /* Add graph to cluster */
341 cluster->graphs[cluster->nb_graphs++] = graph;
358 struct graph *graph;
362 STAILQ_FOREACH(graph, graph_head, next) {
363 if (fnmatch(pattern, graph->name, 0) == 0) {
364 if (cluster_add(cluster, graph))
370 SET_ERR_JMP(EFAULT, fail, "Pattern %s graph not found",
384 struct graph *graph;
396 SET_ERR_JMP(EINVAL, fail, "Invalid graph param");
401 /* Expand graph pattern and add the graph to the cluster */
413 /* Iterate over M(Graph) x N (Nodes in graph) */
415 graph = cluster.graphs[i];
416 STAILQ_FOREACH(graph_node, &graph->node_list, next) {
417 struct rte_graph *graph_fp = graph->graph;
421 if (graph->graph->model == RTE_GRAPH_MODEL_MCORE_DISPATCH)