Lines Matching defs:unit
253 int sc_drive; /* physical unit number */
642 int unit = FDUNIT(bp->b_dev);
646 /* Valid unit, controller, and request? */
647 if ((fd = device_lookup_private(&fd_cd, unit)) == 0 ||
863 int unit, pmask;
867 unit = FDUNIT(dev);
868 fd = device_lookup_private(&fd_cd, unit);
1852 int unit = FDUNIT(dev), i;
1853 struct fd_softc *fd = device_lookup_private(&fd_cd, unit);
1911 fd_do_eject(struct fdc_softc *fdc, int unit)
1914 fdc->sc_fcr |= FCR_DSEL(unit)|FCR_EJECT;
1917 fdc->sc_fcr &= ~(FCR_DSEL(unit)|FCR_EJECT);