Lines Matching refs:midi_devs
288 if (dev >= max_mididev || midi_devs[dev]==NULL) in sequencer_write()
295 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write()
806 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in play_event()
809 if (!midi_devs[dev]->outputc(dev, q[1])) in play_event()
915 if (midi_devs[dev] && midi_devs[dev]->converter != NULL) in setup_mode2()
917 synth_devs[max_synthdev++] = midi_devs[dev]->converter; in setup_mode2()
1072 if (!midi_opened[i] && midi_devs[i]) in sequencer_open()
1074 if (midi_devs[i]->owner) in sequencer_open()
1075 __MOD_INC_USE_COUNT (midi_devs[i]->owner); in sequencer_open()
1077 if ((retval = midi_devs[i]->open(i, mode, in sequencer_open()
1114 if (midi_devs[i]->buffer_status != NULL) in seq_drain_midi_queues()
1115 if (midi_devs[i]->buffer_status(i)) in seq_drain_midi_queues()
1182 midi_devs[i]->close(i); in sequencer_release()
1183 if (midi_devs[i]->owner) in sequencer_release()
1184 __MOD_DEC_USE_COUNT (midi_devs[i]->owner); in sequencer_release()
1233 while (n && !midi_devs[dev]->outputc(dev, data)) { in midi_outc()
1297 midi_devs[i]->close(i); in seq_reset()
1391 if (midi_dev < 0 || midi_dev >= max_mididev || !midi_devs[midi_dev]) in sequencer_ioctl()
1395 (err = midi_devs[midi_dev]->open(midi_dev, mode, sequencer_midi_input, in sequencer_ioctl()
1506 if (dev < 0 || dev >= max_mididev || !midi_devs[dev]) in sequencer_ioctl()
1508 midi_devs[dev]->info.device = dev; in sequencer_ioctl()
1509 return copy_to_user(arg, &midi_devs[dev]->info, sizeof(struct midi_info))?-EFAULT:0; in sequencer_ioctl()