Lines Matching defs:UNIT
105 #define UNIT(x) minor(x)
139 int unit;
146 for (unit = 0; unit < num; unit++) {
147 sc = &bell_softc[unit];
156 memcpy(&vtab[unit], &bell_voice, sizeof(bell_voice));
157 opm_set_voice(sc->ch, &vtab[unit]);
159 printf("bell%d: YM2151 OPM bell emulation.\n", unit);
166 int unit = UNIT(dev);
167 struct bell_softc *sc = &bell_softc[unit];
169 if (unit >= NBELL || !(sc->sc_flags & BELLF_ALIVE))
184 int unit = UNIT(dev);
185 struct bell_softc *sc = &bell_softc[unit];
194 int unit = UNIT(dev);
195 struct bell_softc *sc = &bell_softc[unit];
227 memcpy(addr, &vtab[unit], sizeof(struct opm_voice));
237 memcpy(&vtab[unit], addr, sizeof(struct opm_voice));
238 opm_set_voice(sc->ch, &vtab[unit]);