Lines Matching refs:path
860 const char *path)
865 len = strcspn(path, "/:");
871 if (strncmp(path, name, len) == 0 && (strlen(name) == len))
878 const char *path)
880 const char *separator = strchr(path, ':');
882 while (node && *path == '/') {
885 path++; /* Increment past '/' delimiter */
886 node = __of_find_node_by_path(node, path);
888 path = strchrnul(path, '/');
889 if (separator && separator < path)
896 * of_find_node_opts_by_path - Find a node matching a full OF path
897 * @path: Either the full path to match, or if the path does not
902 * an options string appended to the end of the path with
906 * * /foo/bar Full path
908 * * foo/bar Valid alias + relative path
913 struct device_node *of_find_node_opts_by_path(const char *path, const char **opts)
918 const char *separator = strchr(path, ':');
923 if (strcmp(path, "/") == 0)
926 /* The path could begin with an alias */
927 if (*path != '/') {
932 p = strchrnul(path, '/');
933 len = p - path;
940 if (strlen(pp->name) == len && !strncmp(pp->name, path, len)) {
947 path = p;
950 /* Step down the tree matching path components */
954 np = __of_find_node_by_full_path(np, path);
1978 /* linux,stdout-path and /aliases/stdout are for legacy compatibility */
1981 if (of_property_read_string(of_chosen, "stdout-path", &name))
1982 of_property_read_string(of_chosen, "linux,stdout-path",
2145 * Check if the given device node matches the stdout-path property in the