midi_devs 57 sound/core/seq/oss/seq_oss_midi.c static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS]; midi_devs 110 sound/core/seq/oss/seq_oss_midi.c mdev = midi_devs[dev]; midi_devs 129 sound/core/seq/oss/seq_oss_midi.c mdev = midi_devs[i]; midi_devs 204 sound/core/seq/oss/seq_oss_midi.c if (midi_devs[i] == NULL) midi_devs 217 sound/core/seq/oss/seq_oss_midi.c midi_devs[mdev->seq_device] = mdev; midi_devs 235 sound/core/seq/oss/seq_oss_midi.c midi_devs[mdev->seq_device] = NULL; midi_devs 245 sound/core/seq/oss/seq_oss_midi.c if (midi_devs[index]) midi_devs 266 sound/core/seq/oss/seq_oss_midi.c if ((mdev = midi_devs[i]) != NULL) { midi_devs 270 sound/core/seq/oss/seq_oss_midi.c midi_devs[i] = NULL; midi_devs 67 sound/drivers/virmidi.c static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; midi_devs 100 sound/drivers/virmidi.c if (midi_devs[dev] > MAX_MIDI_DEVICES) { midi_devs 102 sound/drivers/virmidi.c midi_devs[dev] = MAX_MIDI_DEVICES; midi_devs 104 sound/drivers/virmidi.c for (idx = 0; idx < midi_devs[dev]; idx++) { midi_devs 35 sound/oss/dev_table.c struct midi_operations *midi_devs[MAX_MIDI_DEV]; midi_devs 237 sound/oss/dev_table.c midi_devs[dev] = NULL; midi_devs 363 sound/oss/dev_table.h extern struct midi_operations *midi_devs[MAX_MIDI_DEV]; midi_devs 95 sound/oss/midi_synth.c if (midi_devs[midi_dev]->outputc(midi_dev, (unsigned char) (data & 0xff))) midi_devs 117 sound/oss/midi_synth.c if ((char *) midi_devs[midi_dev]->prefix_cmd == NULL) midi_devs 120 sound/oss/midi_synth.c return midi_devs[midi_dev]->prefix_cmd(midi_dev, status); midi_devs 142 sound/oss/midi_synth.c if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL) midi_devs 149 sound/oss/midi_synth.c inc = &midi_devs[orig_dev]->in_info; midi_devs 245 sound/oss/midi_synth.c while (!midi_devs[orig_dev]->outputc(orig_dev, 0xf7) && midi_devs 429 sound/oss/midi_synth.c if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL) midi_devs 436 sound/oss/midi_synth.c if ((err = midi_devs[orig_dev]->open(orig_dev, mode, midi_devs 439 sound/oss/midi_synth.c inc = &midi_devs[orig_dev]->in_info; midi_devs 465 sound/oss/midi_synth.c midi_devs[orig_dev]->outputc(orig_dev, 0xfe); midi_devs 467 sound/oss/midi_synth.c midi_devs[orig_dev]->close(orig_dev); midi_devs 541 sound/oss/midi_synth.c while (!midi_devs[orig_dev]->outputc(orig_dev, (unsigned char) (data & 0xff)) && midi_devs 692 sound/oss/midi_synth.c if (!midi_devs[orig_dev]->outputc(orig_dev, bytes[i])) midi_devs 703 sound/oss/midi_synth.c while (!midi_devs[orig_dev]->outputc(orig_dev, bytes[i]) && midi_devs 88 sound/oss/midibuf.c if (midi_devs[dev]->buffer_status != NULL) midi_devs 89 sound/oss/midibuf.c while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) midi_devs 128 sound/oss/midibuf.c if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) midi_devs 137 sound/oss/midibuf.c ok = midi_devs[dev]->outputc(dev, c); midi_devs 167 sound/oss/midibuf.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) midi_devs 173 sound/oss/midibuf.c module_put(midi_devs[dev]->owner); midi_devs 175 sound/oss/midibuf.c if ((err = midi_devs[dev]->open(dev, mode, midi_devs 185 sound/oss/midibuf.c midi_devs[dev]->close(dev); midi_devs 195 sound/oss/midibuf.c midi_devs[dev]->close(dev); midi_devs 221 sound/oss/midibuf.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) midi_devs 230 sound/oss/midibuf.c midi_devs[dev]->outputc(dev, 0xfe); /* midi_devs 246 sound/oss/midibuf.c midi_devs[dev]->close(dev); midi_devs 256 sound/oss/midibuf.c module_put(midi_devs[dev]->owner); midi_devs 370 sound/oss/midibuf.c if (midi_devs[dev]->coproc) /* Coprocessor ioctl */ midi_devs 371 sound/oss/midibuf.c return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0); midi_devs 389 sound/oss/midibuf.c if (!midi_devs[dev]->ioctl) midi_devs 391 sound/oss/midibuf.c return midi_devs[dev]->ioctl(dev, cmd, arg); midi_devs 466 sound/oss/mpu401.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) midi_devs 490 sound/oss/mpu401.c if ( (coprocessor = midi_devs[dev]->coproc) != NULL ) midi_devs 530 sound/oss/mpu401.c coprocessor = midi_devs[dev]->coproc; midi_devs 773 sound/oss/mpu401.c if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL) midi_devs 803 sound/oss/mpu401.c if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL) midi_devs 831 sound/oss/mpu401.c coprocessor = midi_devs[midi_dev]->coproc; midi_devs 868 sound/oss/mpu401.c coprocessor = midi_devs[midi_dev]->coproc; midi_devs 1105 sound/oss/mpu401.c midi_devs[m] = &mpu401_midi_operations[devc->devno]; midi_devs 1108 sound/oss/mpu401.c midi_devs[m]->owner = owner; midi_devs 220 sound/oss/pas2_midi.c midi_devs[dev] = &pas_midi_operations; midi_devs 783 sound/oss/pss.c midi_devs[hw_config->slots[1]]->coproc = &pss_coproc_operations; midi_devs 1269 sound/oss/sb_common.c last_sb->midi_irq_cookie=midi_devs[hw_config->slots[4]]->devc; midi_devs 35 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; midi_devs 72 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; midi_devs 88 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; midi_devs 111 sound/oss/sb_midi.c sb_devc *devc = midi_devs[dev]->devc; midi_devs 176 sound/oss/sb_midi.c midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); midi_devs 177 sound/oss/sb_midi.c if (midi_devs[dev] == NULL) midi_devs 183 sound/oss/sb_midi.c memcpy((char *) midi_devs[dev], (char *) &sb_midi_operations, midi_devs 187 sound/oss/sb_midi.c midi_devs[dev]->owner = owner; midi_devs 189 sound/oss/sb_midi.c midi_devs[dev]->devc = devc; midi_devs 192 sound/oss/sb_midi.c midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); midi_devs 193 sound/oss/sb_midi.c if (midi_devs[dev]->converter == NULL) midi_devs 196 sound/oss/sb_midi.c kfree(midi_devs[dev]); midi_devs 200 sound/oss/sb_midi.c memcpy((char *) midi_devs[dev]->converter, (char *) &std_midi_synth, midi_devs 203 sound/oss/sb_midi.c midi_devs[dev]->converter->id = "SBMIDI"; midi_devs 291 sound/oss/sequencer.c if (dev >= max_mididev || midi_devs[dev]==NULL) midi_devs 298 sound/oss/sequencer.c if ((err = midi_devs[dev]->open(dev, mode, midi_devs 809 sound/oss/sequencer.c if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) midi_devs 812 sound/oss/sequencer.c if (!midi_devs[dev]->outputc(dev, q[1])) midi_devs 918 sound/oss/sequencer.c if (midi_devs[dev] && midi_devs[dev]->converter != NULL) midi_devs 920 sound/oss/sequencer.c synth_devs[max_synthdev++] = midi_devs[dev]->converter; midi_devs 1070 sound/oss/sequencer.c if (!midi_opened[i] && midi_devs[i]) midi_devs 1072 sound/oss/sequencer.c if (!try_module_get(midi_devs[i]->owner)) midi_devs 1075 sound/oss/sequencer.c if ((retval = midi_devs[i]->open(i, mode, midi_devs 1111 sound/oss/sequencer.c if (midi_devs[i]->buffer_status != NULL) midi_devs 1112 sound/oss/sequencer.c if (midi_devs[i]->buffer_status(i)) midi_devs 1178 sound/oss/sequencer.c midi_devs[i]->close(i); midi_devs 1179 sound/oss/sequencer.c module_put(midi_devs[i]->owner); midi_devs 1221 sound/oss/sequencer.c while (n && !midi_devs[dev]->outputc(dev, data)) { midi_devs 1285 sound/oss/sequencer.c midi_devs[i]->close(i); midi_devs 1379 sound/oss/sequencer.c if (midi_dev < 0 || midi_dev >= max_mididev || !midi_devs[midi_dev]) midi_devs 1383 sound/oss/sequencer.c (err = midi_devs[midi_dev]->open(midi_dev, mode, sequencer_midi_input, midi_devs 1493 sound/oss/sequencer.c if (dev < 0 || dev >= max_mididev || !midi_devs[dev]) midi_devs 1495 sound/oss/sequencer.c midi_devs[dev]->info.device = dev; midi_devs 1496 sound/oss/sequencer.c return copy_to_user(arg, &midi_devs[dev]->info, sizeof(struct midi_info))?-EFAULT:0; midi_devs 713 sound/oss/sscape.c midi_devs[hw_config->slots[1]]->coproc = &sscape_coproc_operations; midi_devs 120 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; midi_devs 140 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; midi_devs 150 sound/oss/uart401.c uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; midi_devs 354 sound/oss/uart401.c midi_devs[devc->my_dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); midi_devs 355 sound/oss/uart401.c if (!midi_devs[devc->my_dev]) { midi_devs 359 sound/oss/uart401.c memcpy(midi_devs[devc->my_dev], &uart401_operations, sizeof(struct midi_operations)); midi_devs 362 sound/oss/uart401.c midi_devs[devc->my_dev]->owner = owner; midi_devs 364 sound/oss/uart401.c midi_devs[devc->my_dev]->devc = devc; midi_devs 365 sound/oss/uart401.c midi_devs[devc->my_dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); midi_devs 366 sound/oss/uart401.c if (!midi_devs[devc->my_dev]->converter) { midi_devs 370 sound/oss/uart401.c memcpy(midi_devs[devc->my_dev]->converter, &std_midi_synth, sizeof(struct synth_operations)); midi_devs 371 sound/oss/uart401.c strcpy(midi_devs[devc->my_dev]->info.name, name); midi_devs 372 sound/oss/uart401.c midi_devs[devc->my_dev]->converter->id = "UART401"; midi_devs 373 sound/oss/uart401.c midi_devs[devc->my_dev]->converter->midi_dev = devc->my_dev; midi_devs 376 sound/oss/uart401.c midi_devs[devc->my_dev]->converter->owner = owner; midi_devs 383 sound/oss/uart401.c kfree(midi_devs[devc->my_dev]); midi_devs 402 sound/oss/uart401.c if(n==-1 || midi_devs[n]==NULL) midi_devs 407 sound/oss/uart401.c devc = midi_devs[hw_config->slots[4]]->devc; midi_devs 418 sound/oss/uart401.c kfree(midi_devs[devc->my_dev]->converter); midi_devs 419 sound/oss/uart401.c kfree(midi_devs[devc->my_dev]); midi_devs 279 sound/oss/uart6850.c midi_devs[my_dev] = &uart6850_operations; midi_devs 47 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; midi_devs 75 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; midi_devs 90 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; midi_devs 96 sound/oss/v_midi.c pdevc = midi_devs[devc->pair_mididev]->devc; midi_devs 112 sound/oss/v_midi.c vmidi_devc *devc = midi_devs[dev]->devc; midi_devs 196 sound/oss/v_midi.c midi_devs[midi1] = &m->m_ops[0]; midi_devs 208 sound/oss/v_midi.c midi_devs[midi2] = &m->m_ops[1]; midi_devs 214 sound/oss/v_midi.c memcpy ((char *) midi_devs[midi1], (char *) &v_midi_operations, midi_devs 224 sound/oss/v_midi.c midi_devs[midi1]->devc = v_devc[0]; midi_devs 226 sound/oss/v_midi.c midi_devs[midi1]->converter = &m->s_ops[0]; midi_devs 228 sound/oss/v_midi.c memcpy ((char *) midi_devs[midi1]->converter, (char *) &std_midi_synth, midi_devs 230 sound/oss/v_midi.c midi_devs[midi1]->converter->id = "V_MIDI 1"; midi_devs 235 sound/oss/v_midi.c memcpy ((char *) midi_devs[midi2], (char *) &v_midi_operations2, midi_devs 245 sound/oss/v_midi.c midi_devs[midi2]->devc = v_devc[1]; midi_devs 246 sound/oss/v_midi.c midi_devs[midi2]->converter = &m->s_ops[1]; midi_devs 249 sound/oss/v_midi.c memcpy ((char *) midi_devs[midi2]->converter, (char *) &std_midi_synth, midi_devs 251 sound/oss/v_midi.c midi_devs[midi2]->converter->id = "V_MIDI 2";