Lines Matching refs:devname
169 parsebootfile(const char *fname, char **fsname, char **devname, in parsebootfile() argument
177 *devname = default_devname; in parsebootfile()
181 *devname = savedevname; in parsebootfile()
202 *devname = savedevname; in parsebootfile()
239 *devname = savedevname; in parsebootfile()
255 char *fsname, *devname; in sprint_bootsel() local
260 if (parsebootfile(filename, &fsname, &devname, &unit, in sprint_bootsel()
262 if (strstr(devname, "NAME=") == devname) in sprint_bootsel()
263 snprintf(buf, sizeof(buf), "%s:%s", devname, file); in sprint_bootsel()
265 snprintf(buf, sizeof(buf), "%s%d%c:%s", devname, unit, in sprint_bootsel()
511 char *fsname, *devname; in command_dev() local
530 parsebootfile(arg, &fsname, &devname, &default_unit, in command_dev()
537 strncpy(savedevname, devname, MAXDEVNAME + 1); in command_dev()
541 if (strstr(devname, "NAME=") == devname) in command_dev()
601 strncpy(biv->devname, arg, sizeof(biv->devname)); in command_root()
602 if (biv->devname[sizeof(biv->devname)-1] != '\0') { in command_root()
603 biv->devname[sizeof(biv->devname)-1] = '\0'; in command_root()
604 printf("truncated to %s\n",biv->devname); in command_root()