Lines Matching defs:path
722 const char *path)
727 len = strcspn(path, "/:");
733 if (strncmp(path, name, len) == 0 && (strlen(name) == len))
740 const char *path)
742 const char *separator = strchr(path, ':');
744 while (node && *path == '/') {
747 path++; /* Increment past '/' delimiter */
748 node = __of_find_node_by_path(node, path);
750 path = strchrnul(path, '/');
751 if (separator && separator < path)
758 * of_find_node_opts_by_path - Find a node matching a full OF path
759 * @path: Either the full path to match, or if the path does not
764 * an options string appended to the end of the path with
768 * * /foo/bar Full path
770 * * foo/bar Valid alias + relative path
775 struct device_node *of_find_node_opts_by_path(const char *path, const char **opts)
780 const char *separator = strchr(path, ':');
785 if (strcmp(path, "/") == 0)
788 /* The path could begin with an alias */
789 if (*path != '/') {
794 p = strchrnul(path, '/');
795 len = p - path;
802 if (strlen(pp->name) == len && !strncmp(pp->name, path, len)) {
809 path = p;
812 /* Step down the tree matching path components */
816 np = __of_find_node_by_full_path(np, path);
1746 /* linux,stdout-path and /aliases/stdout are for legacy compatibility */
1749 if (of_property_read_string(of_chosen, "stdout-path", &name))
1750 of_property_read_string(of_chosen, "linux,stdout-path",
1862 * Check if the given device node matches the stdout-path property in the