Lines Matching defs:unit
43 devices, this is the unit selector for the
137 #define DU (*drives[unit])
487 pt_atapi(tape, tr_cmd, 0, NULL, DBMSG("test unit ready"));
600 int unit;
605 for (unit = 0; unit < PT_UNITS; unit++) {
606 struct pt_unit *tape = &pt[unit];
614 snprintf(tape->name, PT_NAMELEN, "%s%d", name, unit);
649 int unit = iminor(inode) & 0x7F;
650 struct pt_unit *tape = pt + unit;
654 if (unit >= PT_UNITS || (!tape->present)) {
951 int unit;
967 for (unit = 0; unit < PT_UNITS; unit++)
968 if (pt[unit].present)
969 pi_release(pt[unit].pi);
979 for (unit = 0; unit < PT_UNITS; unit++)
980 if (pt[unit].present) {
981 device_create(pt_class, NULL, MKDEV(major, unit), NULL,
982 "pt%d", unit);
983 device_create(pt_class, NULL, MKDEV(major, unit + 128),
984 NULL, "pt%dn", unit);
996 int unit;
997 for (unit = 0; unit < PT_UNITS; unit++)
998 if (pt[unit].present) {
999 device_destroy(pt_class, MKDEV(major, unit));
1000 device_destroy(pt_class, MKDEV(major, unit + 128));
1004 for (unit = 0; unit < PT_UNITS; unit++)
1005 if (pt[unit].present)
1006 pi_release(pt[unit].pi);