Lines Matching refs:pms
244 struct pcmidi_sustain *pms = from_timer(pms, t, timer); in pcmidi_sustained_note_release() local
246 pcmidi_send_note(pms->pm, pms->status, pms->note, pms->velocity); in pcmidi_sustained_note_release()
247 pms->in_use = 0; in pcmidi_sustained_note_release()
252 struct pcmidi_sustain *pms; in init_sustain_timers() local
256 pms = &pm->sustained_notes[i]; in init_sustain_timers()
257 pms->in_use = 0; in init_sustain_timers()
258 pms->pm = pm; in init_sustain_timers()
259 timer_setup(&pms->timer, pcmidi_sustained_note_release, 0); in init_sustain_timers()
265 struct pcmidi_sustain *pms; in stop_sustain_timers() local
269 pms = &pm->sustained_notes[i]; in stop_sustain_timers()
270 pms->in_use = 1; in stop_sustain_timers()
271 del_timer_sync(&pms->timer); in stop_sustain_timers()
342 struct pcmidi_sustain *pms; in pcmidi_handle_report3() local
364 pms = &pm->sustained_notes[i]; in pcmidi_handle_report3()
365 if (!pms->in_use) { in pcmidi_handle_report3()
366 pms->status = status; in pcmidi_handle_report3()
367 pms->note = note; in pcmidi_handle_report3()
368 pms->velocity = velocity; in pcmidi_handle_report3()
369 pms->in_use = 1; in pcmidi_handle_report3()
371 mod_timer(&pms->timer, in pcmidi_handle_report3()