Lines Matching refs:midi_devs
290 if (dev >= max_mididev || midi_devs[dev]==NULL) in sequencer_write()
297 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write()
808 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in play_event()
811 if (!midi_devs[dev]->outputc(dev, q[1])) in play_event()
917 if (midi_devs[dev] && midi_devs[dev]->converter != NULL) in setup_mode2()
919 synth_devs[max_synthdev++] = midi_devs[dev]->converter; in setup_mode2()
1069 if (!midi_opened[i] && midi_devs[i]) in sequencer_open()
1071 if (!try_module_get(midi_devs[i]->owner)) in sequencer_open()
1074 if ((retval = midi_devs[i]->open(i, mode, in sequencer_open()
1110 if (midi_devs[i]->buffer_status != NULL) in seq_drain_midi_queues()
1111 if (midi_devs[i]->buffer_status(i)) in seq_drain_midi_queues()
1177 midi_devs[i]->close(i); in sequencer_release()
1178 module_put(midi_devs[i]->owner); in sequencer_release()
1220 while (n && !midi_devs[dev]->outputc(dev, data)) { in midi_outc()
1284 midi_devs[i]->close(i); in seq_reset()
1378 if (midi_dev < 0 || midi_dev >= max_mididev || !midi_devs[midi_dev]) in sequencer_ioctl()
1382 (err = midi_devs[midi_dev]->open(midi_dev, mode, sequencer_midi_input, in sequencer_ioctl()
1492 if (dev < 0 || dev >= max_mididev || !midi_devs[dev]) in sequencer_ioctl()
1494 midi_devs[dev]->info.device = dev; in sequencer_ioctl()
1495 return copy_to_user(arg, &midi_devs[dev]->info, sizeof(struct midi_info))?-EFAULT:0; in sequencer_ioctl()