Lines Matching defs:unit

156 	int hwunit;		/* unit for amiga controlling hw */
173 #define FDF_WMOTOROFF (0x04) /* unit wants a wakeup after off */
189 int unit;
275 #define FDUNITMASK(unit) (1 << (3 + (unit)))
351 args.unit = 0;
352 args.type = fdcgetfdtype(args.unit);
356 for (args.unit++; args.unit < FDMAXUNITS; args.unit++) {
357 if ((args.type = fdcgetfdtype(args.unit)) == NULL)
370 aprint_normal("fd%d at %s unit %d:", fcp->unit, pnp,
382 if (cfp->cf_loc[FDCCF_UNIT] == fdap->unit ||
407 sc->hwunit = ap->unit;
408 sc->unitmask = 1 << (3 + ap->unit);
412 printf(" unit %d: %s %d cyl, %d head, %d sec [%d sec], 512 bytes/sec\n",
649 int unit, part, s;
651 unit = FDUNIT(bp->b_dev);
653 sc = getsoftc(fd_cd, unit);
700 fdselunit(sc); /* make sure the unit is selected */
828 * must have at least opened raw unit to fetch the
928 fdcgetfdtype(int unit)
935 umask = 1 << (3 + unit);
960 printf("fdcgettype unit %d id 0x%lx\n", unit, id);
967 * 3.5dd's at unit 0 do not always return id.
969 if (unit == 0)
988 printf("fdmotoroff: unit %d\n", sc->hwunit);
1034 printf(" hw turning unit off\n");
1145 FDSETMOTOR(sc->flags & FDF_MOTORON); /* set motor to unit's state */
1147 FDSELECT(sc->unitmask); /* select unit */
1169 printf("fdstart: unit %d\n", sc->hwunit);
1204 * this unit until re-open()'ed also invalidate
1340 printf("fddmastart: unit %d cyl %d head %d", sc->hwunit,
1444 printf("fddmadone: unit %d, timeo %d\n", sc->hwunit, timeo);
1527 printf("fddone: unit %d\n", sc->hwunit);
1530 * check to see if unit is just flushing the cache,
1587 fdfindwork(int unit)
1602 * start next available unit, linear search from the next unit
1603 * wrapping and finally this unit.
1607 for (i = unit + 1; last == 0; i++) {
1608 if (i == unit)
1618 * if unit has requested to be turned off
1632 * if we now have DMA unit must have needed
1639 * if we have no start unit and the current unit has
1640 * io waiting choose this unit to start.