Lines Matching refs:ports
68 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
281 unsigned int p, ports; in snd_seq_midisynth_probe() local
301 ports = output_count; in snd_seq_midisynth_probe()
302 if (ports < input_count) in snd_seq_midisynth_probe()
303 ports = input_count; in snd_seq_midisynth_probe()
304 if (ports == 0) { in snd_seq_midisynth_probe()
308 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
309 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe()
333 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
338 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
360 if (ports > 1) in snd_seq_midisynth_probe()
366 if (ports > 1) in snd_seq_midisynth_probe()
399 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
400 client->ports[device] = msynth; in snd_seq_midisynth_probe()
411 for (p = 0; p < ports; p++) in snd_seq_midisynth_probe()
433 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
437 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
441 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
443 msynth = client->ports[device]; in snd_seq_midisynth_remove()
444 client->ports[device] = NULL; in snd_seq_midisynth_remove()
445 for (p = 0; p < ports; p++) in snd_seq_midisynth_remove()