Lines Matching refs:ports
68 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
285 unsigned int p, ports; in snd_seq_midisynth_probe() local
305 ports = output_count; in snd_seq_midisynth_probe()
306 if (ports < input_count) in snd_seq_midisynth_probe()
307 ports = input_count; in snd_seq_midisynth_probe()
308 if (ports == 0) { in snd_seq_midisynth_probe()
312 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
313 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe()
337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
342 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
364 if (ports > 1) in snd_seq_midisynth_probe()
370 if (ports > 1) in snd_seq_midisynth_probe()
403 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
404 client->ports[device] = msynth; in snd_seq_midisynth_probe()
415 for (p = 0; p < ports; p++) in snd_seq_midisynth_probe()
437 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
441 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
445 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
447 msynth = client->ports[device]; in snd_seq_midisynth_remove()
448 client->ports[device] = NULL; in snd_seq_midisynth_remove()
449 for (p = 0; p < ports; p++) in snd_seq_midisynth_remove()