Lines Matching refs:UNIT
240 return device_lookup_private(&ite_cd, UNIT(dev));
291 int unit = UNIT(dev);
294 if (unit < 0 || unit >= ite_cd.cd_ndevs ||
329 int unit = UNIT(dev);
333 if (unit < 0 || unit >= ite_cd.cd_ndevs ||
368 int unit = UNIT(dev);
374 if (unit >= ite_cd.cd_ndevs || (ip = getitesp(dev)) == NULL)
376 if (ite_tty[unit] == NULL) {
377 tp = ite_tty[unit] = tty_alloc();
380 tp = ite_tty[unit];
415 struct tty *tp = ite_tty[UNIT(dev)];
422 ite_tty[UNIT(dev)] = NULL;
430 struct tty *tp = ite_tty[UNIT(dev)];
438 struct tty *tp = ite_tty[UNIT(dev)];
446 struct tty *tp = ite_tty[UNIT(dev)];
455 return ite_tty[UNIT(dev)];
462 struct tty *tp = ite_tty[UNIT(dev)];
558 int unit = UNIT(dev);
561 if (unit < 0 || unit >= ite_cd.cd_ndevs ||
2846 iteinit(cd->cn_dev); /* init console unit */