Lines Matching defs:path
68 * @path: the full_name of a node to be added to the tree
71 * described by path. E.g., for path = "/foo/bar", returns
74 static struct device_node *derive_parent(const char *path)
78 size_t parent_path_len = strrchr(path, '/') - path + 1;
80 /* reject if path is "/" */
81 if (!strcmp(path, "/"))
84 if (strrchr(path, '/') != path) {
88 strlcpy(parent_path, path, parent_path_len);
110 static int pSeries_reconfig_add_node(const char *path, struct property *proplist)
119 np->full_name = kmalloc(strlen(path) + 1, GFP_KERNEL);
123 strcpy(np->full_name, path);
129 np->parent = derive_parent(path);
138 printk(KERN_ERR "Failed to add device node %s\n", path);
297 char *path, *end, *name;
304 path = buf;
311 if ((np = of_find_node_by_path(path))) {
333 rv = pSeries_reconfig_add_node(path, prop);