Lines Matching refs:ports
10 - automatic opening of midi ports on first received event or subscription
55 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES];
277 unsigned int p, ports;
297 ports = output_count;
298 if (ports < input_count)
299 ports = input_count;
300 if (ports == 0)
302 if (ports > (256 / SNDRV_RAWMIDI_DEVICES))
303 ports = 256 / SNDRV_RAWMIDI_DEVICES;
322 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL);
327 for (p = 0; p < ports; p++) {
350 if (ports > 1)
356 if (ports > 1)
393 client->ports_per_device[device] = ports;
394 client->ports[device] = msynth;
402 for (p = 0; p < ports; p++)
421 int device = dev->device, p, ports;
425 if (client == NULL || client->ports[device] == NULL)
427 ports = client->ports_per_device[device];
429 msynth = client->ports[device];
430 client->ports[device] = NULL;
431 for (p = 0; p < ports; p++)