Lines Matching full:graph

300 		 * if the device doesn't have any graph connections  in of_get_coresight_platform_data()
348 /* ACPI Graph _DSD UUID : "ab02a46b-74c7-45a2-bd68-f7d344ef2153" */
352 /* Coresight ACPI Graph UUID : "3ecbc8b6-1d0e-4fb3-8107-e627f805c6cd" */
405 * acpi_validate_dsd_graph - Make sure the given _DSD graph conforms
406 * to the ACPI _DSD Graph specification.
408 * ACPI Devices Graph property has the following format:
412 * Graph[1],
414 * Graph[N]
417 * And each Graph entry has the following format:
419 * GraphID - Integer, identifying a graph the device belongs to.
421 * this graph. (e.g, see is_acpi_coresight_graph())
422 * NumberOfLinks - Number "N" of connections on this node of the graph.
452 * ToUUID("ab02a46b-74c7-45a2-bd68-f7d344ef2153"), // ACPI Graph UUID
456 * Package() { // Graph[0] Package
458 * // Coresight Graph UUID
467 * } // End of Graph[0] Package
469 * }, // End of ACPI Graph Property
472 static inline bool acpi_validate_dsd_graph(const union acpi_object *graph) in acpi_validate_dsd_graph() argument
477 /* The graph must contain at least the Revision and Number of Graphs */ in acpi_validate_dsd_graph()
478 if (graph->package.count < 2) in acpi_validate_dsd_graph()
481 rev = &graph->package.elements[0]; in acpi_validate_dsd_graph()
482 nr_graphs = &graph->package.elements[1]; in acpi_validate_dsd_graph()
493 /* CoreSight devices are only part of a single Graph */ in acpi_validate_dsd_graph()
497 /* Make sure the ACPI graph package has right number of elements */ in acpi_validate_dsd_graph()
498 if (graph->package.count != (n + 2)) in acpi_validate_dsd_graph()
502 * Each entry must be a graph package with at least 3 members : in acpi_validate_dsd_graph()
506 const union acpi_object *obj = &graph->package.elements[i]; in acpi_validate_dsd_graph()
516 /* acpi_get_dsd_graph - Find the _DSD Graph property for the given device. */
533 * Iterate through all the packages and find the Graph. in acpi_get_dsd_graph()
544 /* Skip the non-Graph _DSD packages */ in acpi_get_dsd_graph()
549 /* Invalid graph format, continue */ in acpi_get_dsd_graph()
550 dev_warn(&adev->dev, "Invalid Graph _DSD property\n"); in acpi_get_dsd_graph()
563 * Graph must have the following fields : in acpi_validate_coresight_graph()
574 * the Graph property matching the CoreSight Graphs.
576 * Returns the pointer to the CoreSight Graph Package when found. Otherwise
582 const union acpi_object *graph_list, *graph; in acpi_get_coresight_graph() local
592 graph = &graph_list->package.elements[i]; in acpi_get_coresight_graph()
593 if (!is_acpi_coresight_graph(graph)) in acpi_get_coresight_graph()
595 if (acpi_validate_coresight_graph(graph)) in acpi_get_coresight_graph()
596 return graph; in acpi_get_coresight_graph()
597 /* Invalid graph format */ in acpi_get_coresight_graph()
605 * acpi_coresight_parse_link - Parse the given Graph connection
609 * CoreSight Graph specification mandates that the direction of the data
678 * acpi_coresight_parse_graph - Parse the _DSD CoreSight graph
688 const union acpi_object *graph; in acpi_coresight_parse_graph() local
693 graph = acpi_get_coresight_graph(adev, &buf); in acpi_coresight_parse_graph()
695 * There are no graph connections, which is fine for some components. in acpi_coresight_parse_graph()
698 if (!graph) in acpi_coresight_parse_graph()
701 nlinks = graph->package.elements[2].integer.value; in acpi_coresight_parse_graph()
706 const union acpi_object *link = &graph->package.elements[3 + i]; in acpi_coresight_parse_graph()