Lines Matching refs:dp
163 register struct devdescription *dp;
191 for (dp = devtable; dp->dev_next; dp = dp->dev_next)
192 if (eq(name, dp->dev_name))
194 if (dp == 0) {
198 return (makedev(dp->dev_major, (unit << DEV_SHIFT) + (partition - 'a')));
205 register struct devdescription *dp;
209 for (dp = devtable; dp->dev_next; dp = dp->dev_next)
210 if (major(dev) == dp->dev_major)
212 if (dp == 0)
213 dp = devtable;
214 (void) sprintf(buf, "%s%d%c", dp->dev_name,
225 register struct devdescription **dp = &devtable;
239 *dp = (struct devdescription *)malloc(sizeof (**dp));
240 (*dp)->dev_name = ns(buf);
241 (*dp)->dev_major = maj;
242 dp = &(*dp)->dev_next;
244 *dp = 0;