Lines Matching defs:unit
88 grf_scinit(struct grf_softc *sc, const char *name, int unit)
91 snprintf(sc->sc_xname, sizeof(sc->sc_xname), "%s%d", name, unit);
162 grf_attach(struct macfb_softc *sc, int unit)
165 grf_init(unit);
166 if (unit < numgrf)
167 grf_softc[unit].mfb_sc = sc;
177 int unit = GRFUNIT(dev);
180 if (grf_softc == NULL || unit >= numgrf)
183 sc = &grf_softc[unit];
194 int unit = GRFUNIT(dev);
197 if (grf_softc == NULL || unit >= numgrf)
200 sc = &grf_softc[unit];
218 int unit = GRFUNIT(dev);
221 if (grf_softc == NULL || unit >= numgrf)
224 sc = &grf_softc[unit];
293 int unit = GRFUNIT(dev);
295 if (grf_softc == NULL || unit >= numgrf)
298 sc = &grf_softc[unit];