Lines Matching refs:dev
41 static int userboot_parsedev(struct disk_devdesc **dev, const char *devspec, const char **path);
44 * Point (dev) at an allocated device specifier for the device matching the
51 struct disk_devdesc **dev = (struct disk_devdesc **)vdev;
62 if (((rv = userboot_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
71 return(userboot_parsedev(dev, devspec, path));
75 * Point (dev) at an allocated device specifier matching the string version
89 userboot_parsedev(struct disk_devdesc **dev, const char *devspec, const char **path)
163 if (dev == NULL) {
166 *dev = idev;
179 struct disk_devdesc *dev = (struct disk_devdesc *)vdev;
182 switch(dev->d_type) {
188 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
195 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);
202 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);