Lines Matching refs:midi_devs
88 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
89 while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) in drain_midi_queue()
128 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) in midi_poll()
136 ok = midi_devs[dev]->outputc(dev, c); in midi_poll()
168 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_open()
174 module_put(midi_devs[dev]->owner); in MIDIbuf_open()
176 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open()
186 midi_devs[dev]->close(dev); in MIDIbuf_open()
196 midi_devs[dev]->close(dev); in MIDIbuf_open()
222 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_release()
231 midi_devs[dev]->outputc(dev, 0xfe); /* in MIDIbuf_release()
247 midi_devs[dev]->close(dev); in MIDIbuf_release()
257 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()