Lines Matching full:vp

139 	struct snd_opl3_voice *vp, *vp2;  in opl3_get_voice()  local
166 vp = &opl3->voices[i]; in opl3_get_voice()
168 if (vp->state == SNDRV_OPL3_ST_NOT_AVAIL) in opl3_get_voice()
173 voice_time = vp->time; in opl3_get_voice()
184 if (vp->state) in opl3_get_voice()
200 else if (vp->state) in opl3_get_voice()
204 if (vp->state) in opl3_get_voice()
243 struct snd_opl3_voice *vp = &opl3->voices[i]; in snd_opl3_timer_func() local
244 if (vp->state > 0 && vp->note_off_check) { in snd_opl3_timer_func()
245 if (vp->note_off == jiffies) in snd_opl3_timer_func()
246 snd_opl3_note_off_unsafe(opl3, vp->note, 0, in snd_opl3_timer_func()
247 vp->chan); in snd_opl3_timer_func()
292 struct snd_opl3_voice *vp, *vp2; in snd_opl3_note_on() local
399 vp = &opl3->voices[voice]; in snd_opl3_note_on()
400 if (vp->state > 0) { in snd_opl3_note_on()
402 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT; in snd_opl3_note_on()
410 reg_val = vp->keyon_reg & ~OPL3_KEYON_BIT; in snd_opl3_note_on()
561 vp->time = opl3->use_time++; in snd_opl3_note_on()
562 vp->note = key; in snd_opl3_note_on()
563 vp->chan = chan; in snd_opl3_note_on()
566 vp->state = SNDRV_OPL3_ST_ON_4OP; in snd_opl3_note_on()
574 if (vp->state == SNDRV_OPL3_ST_ON_4OP) { in snd_opl3_note_on()
580 vp->state = SNDRV_OPL3_ST_ON_2OP; in snd_opl3_note_on()
609 struct snd_opl3_voice *vp, *vp2; in snd_opl3_kill_voice() local
614 vp = &opl3->voices[voice]; in snd_opl3_kill_voice()
629 opl3->command(opl3, opl3_reg, vp->keyon_reg); in snd_opl3_kill_voice()
632 vp->time = opl3->use_time++; in snd_opl3_kill_voice()
634 if (vp->state == SNDRV_OPL3_ST_ON_4OP) { in snd_opl3_kill_voice()
640 vp->state = SNDRV_OPL3_ST_OFF; in snd_opl3_kill_voice()
656 struct snd_opl3_voice *vp; in snd_opl3_note_off_unsafe() local
671 vp = &opl3->voices[voice]; in snd_opl3_note_off_unsafe()
672 if (vp->state > 0 && vp->chan == chan && vp->note == note) { in snd_opl3_note_off_unsafe()
722 struct snd_opl3_voice *vp; in snd_opl3_update_pitch() local
727 vp = &opl3->voices[voice]; in snd_opl3_update_pitch()
728 if (vp->chan == NULL) in snd_opl3_update_pitch()
741 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()
747 vp->keyon_reg = blocknum; in snd_opl3_update_pitch()
756 vp->time = opl3->use_time++; in snd_opl3_update_pitch()
765 struct snd_opl3_voice *vp; in snd_opl3_pitch_ctrl() local
773 vp = &opl3->voices[voice]; in snd_opl3_pitch_ctrl()
774 if (vp->state > 0 && vp->chan == chan) { in snd_opl3_pitch_ctrl()