Lines Matching defs:unit
129 int unit;
141 for (unit = 0; unit < num; unit++) {
142 sc = &bell_softc[unit];
151 memcpy(&vtab[unit], &bell_voice, sizeof(bell_voice));
152 opm_set_voice(sc->ch, &vtab[unit]);
154 printf("bell%d: YM2151 OPM bell emulation.\n", unit);
161 int unit = UNIT(dev);
162 struct bell_softc *sc = &bell_softc[unit];
164 if (unit >= NBELL || !(sc->sc_flags & BELLF_ALIVE))
179 int unit = UNIT(dev);
180 struct bell_softc *sc = &bell_softc[unit];
189 int unit = UNIT(dev);
190 struct bell_softc *sc = &bell_softc[unit];
222 memcpy(addr, &vtab[unit], sizeof(struct opm_voice));
232 memcpy(&vtab[unit], addr, sizeof(struct opm_voice));
233 opm_set_voice(sc->ch, &vtab[unit]);