Lines Matching refs:midi_devs
88 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
90 !midi_devs[dev]->buffer_status(dev), HZ/10); in drain_midi_queue()
127 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) in midi_poll()
135 ok = midi_devs[dev]->outputc(dev, c); in midi_poll()
167 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_open()
173 module_put(midi_devs[dev]->owner); in MIDIbuf_open()
175 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open()
185 midi_devs[dev]->close(dev); in MIDIbuf_open()
195 midi_devs[dev]->close(dev); in MIDIbuf_open()
221 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_release()
230 midi_devs[dev]->outputc(dev, 0xfe); /* in MIDIbuf_release()
246 midi_devs[dev]->close(dev); in MIDIbuf_release()
256 module_put(midi_devs[dev]->owner); in MIDIbuf_release()
371 if (midi_devs[dev]->coproc) /* Coprocessor ioctl */ in MIDIbuf_ioctl()
372 return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0); in MIDIbuf_ioctl()
390 if (!midi_devs[dev]->ioctl) in MIDIbuf_ioctl()
392 return midi_devs[dev]->ioctl(dev, cmd, arg); in MIDIbuf_ioctl()