Lines Matching refs:devspec
34 static int uboot_parsedev(struct uboot_devdesc **dev, const char *devspec,
43 uboot_getdev(void **vdev, const char *devspec, const char **path) in uboot_getdev() argument
52 if ((devspec == NULL) || (devspec[0] == '/') || in uboot_getdev()
53 (strchr(devspec, ':') == NULL)) { in uboot_getdev()
57 *path = devspec; in uboot_getdev()
64 return (uboot_parsedev(dev, devspec, path)); in uboot_getdev()
82 uboot_parsedev(struct uboot_devdesc **dev, const char *devspec, in uboot_parsedev() argument
92 if (strlen(devspec) < 2) in uboot_parsedev()
97 if (!strncmp(devspec, devsw[i]->dv_name, in uboot_parsedev()
107 np = (devspec + strlen(dv->dv_name)); in uboot_parsedev()
116 err = disk_parsedev((struct devdesc **)&idev, devspec, path); in uboot_parsedev()