Lines Matching refs:client
88 ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS; in snd_midi_input_event()
267 struct seq_midisynth_client *client; in snd_seq_midisynth_probe() local
304 client = synths[card->number]; in snd_seq_midisynth_probe()
305 if (client == NULL) { in snd_seq_midisynth_probe()
307 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_midisynth_probe()
308 if (client == NULL) { in snd_seq_midisynth_probe()
313 client->seq_client = in snd_seq_midisynth_probe()
317 if (client->seq_client < 0) { in snd_seq_midisynth_probe()
318 kfree(client); in snd_seq_midisynth_probe()
338 port->addr.client = client->seq_client; in snd_seq_midisynth_probe()
386 if (snd_seq_kernel_client_ctl(client->seq_client, SNDRV_SEQ_IOCTL_CREATE_PORT, port)<0) in snd_seq_midisynth_probe()
388 ms->seq_client = client->seq_client; in snd_seq_midisynth_probe()
391 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
392 client->ports[device] = msynth; in snd_seq_midisynth_probe()
393 client->num_ports++; in snd_seq_midisynth_probe()
395 synths[card->number] = client; in snd_seq_midisynth_probe()
408 snd_seq_delete_kernel_client(client->seq_client); in snd_seq_midisynth_probe()
409 kfree(client); in snd_seq_midisynth_probe()
422 struct seq_midisynth_client *client; in snd_seq_midisynth_remove() local
428 client = synths[card->number]; in snd_seq_midisynth_remove()
429 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
433 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
434 client->ports_per_device[device] = 0; in snd_seq_midisynth_remove()
435 msynth = client->ports[device]; in snd_seq_midisynth_remove()
436 client->ports[device] = NULL; in snd_seq_midisynth_remove()
440 client->num_ports--; in snd_seq_midisynth_remove()
441 if (client->num_ports <= 0) { in snd_seq_midisynth_remove()
442 snd_seq_delete_kernel_client(client->seq_client); in snd_seq_midisynth_remove()
444 kfree(client); in snd_seq_midisynth_remove()