Lines Matching refs:devspec
34 static int uboot_parsedev(struct uboot_devdesc **dev, const char *devspec,
39 * path in (devspec). If it contains an explicit device specification,
43 uboot_getdev(void **vdev, const char *devspec, const char **path)
52 if ((devspec == NULL) || (devspec[0] == '/') ||
53 (strchr(devspec, ':') == NULL)) {
57 *path = devspec;
62 * Try to parse the device name off the beginning of the devspec.
64 return (uboot_parsedev(dev, devspec, path));
69 * at the beginning of (devspec). Return a pointer to the remaining
72 * In all cases, the beginning of (devspec) is compared to the names
82 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec,
92 if (strlen(devspec) < 2)
97 if (!strncmp(devspec, devsw[i]->dv_name,
107 np = (devspec + strlen(dv->dv_name));
116 err = disk_parsedev((struct devdesc **)&idev, devspec, path);