Lines Matching refs:chip
221 int chip = CHAN_TO_CHIP(vidx); in cms_on() local
249 chip, voice, octave, count, OCTAVE_OFFSET(voice), in cms_on()
253 CMS_WRITE(sc, chip, CMS_IREG_FREQ0 + voice, count); in cms_on()
256 reg = CMS_READ(sc, chip, CMS_IREG_OCTAVE_1_0 + OCTAVE_OFFSET(voice)); in cms_on()
259 CMS_WRITE(sc, chip, CMS_IREG_OCTAVE_1_0 + OCTAVE_OFFSET(voice), reg); in cms_on()
264 CMS_WRITE(sc, chip, CMS_IREG_VOL0 + voice, ((vol<<4)|vol)); in cms_on()
267 reg = CMS_READ(sc, chip, CMS_IREG_FREQ_CTL); in cms_on()
269 CMS_WRITE(sc, chip, CMS_IREG_FREQ_CTL, reg); in cms_on()
276 int chip = CHAN_TO_CHIP(vidx); in cms_off() local
281 reg = CMS_READ(sc, chip, CMS_IREG_FREQ_CTL); in cms_off()
283 CMS_WRITE(sc, chip, CMS_IREG_FREQ_CTL, reg); in cms_off()