Lines Matching refs:midi_devs
89 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
90 while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) in drain_midi_queue()
130 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) in midi_poll()
138 ok = midi_devs[dev]->outputc(dev, c); in midi_poll()
170 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_open()
176 if (midi_devs[dev]->owner) in MIDIbuf_open()
177 __MOD_INC_USE_COUNT (midi_devs[dev]->owner); in MIDIbuf_open()
179 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open()
189 midi_devs[dev]->close(dev); in MIDIbuf_open()
199 midi_devs[dev]->close(dev); in MIDIbuf_open()
226 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_release()
238 midi_devs[dev]->outputc(dev, 0xfe); /* in MIDIbuf_release()
255 midi_devs[dev]->close(dev); in MIDIbuf_release()
265 if (midi_devs[dev]->owner) in MIDIbuf_release()
266 __MOD_DEC_USE_COUNT (midi_devs[dev]->owner); in MIDIbuf_release()
378 if (midi_devs[dev]->coproc) /* Coprocessor ioctl */ in MIDIbuf_ioctl()
379 return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0); in MIDIbuf_ioctl()
397 if (!midi_devs[dev]->ioctl) in MIDIbuf_ioctl()
399 return midi_devs[dev]->ioctl(dev, cmd, arg); in MIDIbuf_ioctl()