Lines Matching defs:dev
65 static void do_count(const char *dev, const char *hname, int search);
66 static void do_header(const char *dev, const char *hname, int count);
68 static char *toheader(const char *dev);
69 static char *tomacro(const char *dev);
86 do_count(const char *dev, const char *hname, int search)
92 if (dp->d_unit != -1 && eq(dp->d_name, dev)) {
106 dev = NULL;
139 do_header(dev, hname, count);
158 do_header(const char *dev, const char *hname, int count)
169 name = tomacro(dev?dev:hname) + (dev == NULL);
247 * convert a dev name to a .h file name
250 toheader(const char *dev)
253 (void) snprintf(hbuf, sizeof hbuf, "%s.h", path(dev));
259 * convert a dev name to a macro name
262 tomacro(const char *dev)
269 while (*dev)
270 if (!islower(*dev))
271 *cp++ = *dev++;
273 *cp++ = toupper(*dev++);