Lines Matching refs:dev
37 static int i386_parsedev(struct i386_devdesc **dev, const char *devspec, const char **path);
40 * Point (dev) at an allocated device specifier for the device matching the
47 struct i386_devdesc **dev = (struct i386_devdesc **)vdev;
58 if (((rv = i386_parsedev(dev, getenv("currdev"), NULL)) == 0) &&
67 return(i386_parsedev(dev, devspec, path));
71 * Point (dev) at an allocated device specifier matching the string version
85 i386_parsedev(struct i386_devdesc **dev, const char *devspec, const char **path)
153 if (dev == NULL) {
156 *dev = idev;
169 struct i386_devdesc *dev = (struct i386_devdesc *)vdev;
172 switch(dev->d_type) {
179 sprintf(buf, "%s%d:", dev->d_dev->dv_name, dev->d_unit);