Lines Matching defs:unit
178 int unit = minor(dev);
180 if (unit == 0)
182 if (unit < naltqsw)
183 return (*altqsw[unit].d_open)(dev, flag, fmt, l);
191 int unit = minor(dev);
193 if (unit == 0)
195 if (unit < naltqsw)
196 return (*altqsw[unit].d_close)(dev, flag, fmt, l);
204 int unit = minor(dev);
206 if (unit == 0) {
250 if (unit < naltqsw)
251 return (*altqsw[unit].d_ioctl)(dev, cmd, addr, flag, l);
264 int unit;
273 for (unit = 0; unit < naltqsw; unit++) {
274 if (unit == 0 || altqsw[unit].d_open != NULL)
275 altqsw[unit].dev = make_dev(&altq_cdevsw, unit,
277 altqsw[unit].d_name);