Lines Matching full:ports
10 - automatic opening of midi ports on first received event or subscription
54 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
272 unsigned int p, ports; in snd_seq_midisynth_probe() local
292 ports = output_count; in snd_seq_midisynth_probe()
293 if (ports < input_count) in snd_seq_midisynth_probe()
294 ports = input_count; in snd_seq_midisynth_probe()
295 if (ports == 0) { in snd_seq_midisynth_probe()
299 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
300 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe()
324 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
329 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
351 if (ports > 1) in snd_seq_midisynth_probe()
357 if (ports > 1) in snd_seq_midisynth_probe()
390 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
391 client->ports[device] = msynth; in snd_seq_midisynth_probe()
402 for (p = 0; p < ports; p++) in snd_seq_midisynth_probe()
424 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
428 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
432 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
434 msynth = client->ports[device]; in snd_seq_midisynth_remove()
435 client->ports[device] = NULL; in snd_seq_midisynth_remove()
436 for (p = 0; p < ports; p++) in snd_seq_midisynth_remove()