Lines Matching refs:ops
47 static void note_off(struct snd_midi_op *ops, void *drv,
50 static void do_control(struct snd_midi_op *ops, void *private,
54 static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
56 static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan,
58 static void sysex(struct snd_midi_op *ops, void *private, unsigned char *sysex,
60 static void all_sounds_off(struct snd_midi_op *ops, void *private,
62 static void all_notes_off(struct snd_midi_op *ops, void *private,
83 snd_midi_process_event(struct snd_midi_op *ops, in snd_midi_process_event() argument
130 if (ops->note_off) in snd_midi_process_event()
131 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event()
134 if (ops->note_on) in snd_midi_process_event()
135 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event()
140 if (ops->note_off) in snd_midi_process_event()
141 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event()
144 if (ops->key_press) in snd_midi_process_event()
145 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event()
148 do_control(ops, drv, chanset, chan, in snd_midi_process_event()
156 if (ops->control) in snd_midi_process_event()
157 ops->control(drv, MIDI_CTL_PITCHBEND, chan); in snd_midi_process_event()
161 if (ops->control) in snd_midi_process_event()
162 ops->control(drv, MIDI_CTL_CHAN_PRESSURE, chan); in snd_midi_process_event()
170 do_control(ops, drv, chanset, chan, in snd_midi_process_event()
174 do_control(ops, drv, chanset, chan, in snd_midi_process_event()
189 nrpn(ops, drv, chan, chanset); in snd_midi_process_event()
202 rpn(ops, drv, chan, chanset); in snd_midi_process_event()
210 sysex(ops, drv, sysexbuf, len, chanset); in snd_midi_process_event()
246 note_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, in note_off() argument
258 if (ops->note_off) in note_off()
259 ops->note_off(drv, note, vel, chan); in note_off()
268 do_control(struct snd_midi_op *ops, void *drv, struct snd_midi_channel_set *chset, in do_control() argument
290 if (ops->note_off) in do_control()
291 ops->note_off(drv, i, 0, chan); in do_control()
312 if (ops->note_off) in do_control()
313 ops->note_off(drv, i, 0, chan); in do_control()
324 rpn(ops, drv, chan, chset); in do_control()
326 nrpn(ops, drv, chan, chset); in do_control()
338 all_sounds_off(ops, drv, chan); in do_control()
342 all_notes_off(ops, drv, chan); in do_control()
376 if (ops->control) in do_control()
377 ops->control(drv, control, chan); in do_control()
419 rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, in rpn() argument
459 nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, in nrpn() argument
463 if (ops->nrpn) in nrpn()
464 ops->nrpn(drv, chan, chset); in nrpn()
487 sysex(struct snd_midi_op *ops, void *private, unsigned char *buf, int len, in sysex() argument
593 if (ops->sysex) in sysex()
594 ops->sysex(private, buf - 1, len + 1, parsed, chset); in sysex()
601 all_sounds_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) in all_sounds_off() argument
605 if (! ops->note_terminate) in all_sounds_off()
609 ops->note_terminate(drv, n, chan); in all_sounds_off()
619 all_notes_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) in all_notes_off() argument
623 if (! ops->note_off) in all_notes_off()
627 note_off(ops, drv, chan, n, 0); in all_notes_off()