Lines Matching refs:client

89 			ev.dest.client = SNDRV_SEQ_ADDRESS_SUBSCRIBERS;  in snd_midi_input_event()
271 struct seq_midisynth_client *client; in snd_seq_midisynth_probe() local
306 client = synths[card->number]; in snd_seq_midisynth_probe()
307 if (client == NULL) { in snd_seq_midisynth_probe()
309 client = kzalloc(sizeof(*client), GFP_KERNEL); in snd_seq_midisynth_probe()
310 if (client == NULL) in snd_seq_midisynth_probe()
312 client->seq_client = in snd_seq_midisynth_probe()
316 if (client->seq_client < 0) { in snd_seq_midisynth_probe()
317 kfree(client); in snd_seq_midisynth_probe()
336 port->addr.client = client->seq_client; in snd_seq_midisynth_probe()
388 if (snd_seq_kernel_client_ctl(client->seq_client, SNDRV_SEQ_IOCTL_CREATE_PORT, port)<0) in snd_seq_midisynth_probe()
390 ms->seq_client = client->seq_client; in snd_seq_midisynth_probe()
393 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
394 client->ports[device] = msynth; in snd_seq_midisynth_probe()
395 client->num_ports++; in snd_seq_midisynth_probe()
397 synths[card->number] = client; in snd_seq_midisynth_probe()
407 snd_seq_delete_kernel_client(client->seq_client); in snd_seq_midisynth_probe()
408 kfree(client); in snd_seq_midisynth_probe()
418 struct seq_midisynth_client *client; in snd_seq_midisynth_remove() local
424 client = synths[card->number]; in snd_seq_midisynth_remove()
425 if (client == NULL || client->ports[device] == NULL) in snd_seq_midisynth_remove()
427 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
428 client->ports_per_device[device] = 0; in snd_seq_midisynth_remove()
429 msynth = client->ports[device]; in snd_seq_midisynth_remove()
430 client->ports[device] = NULL; in snd_seq_midisynth_remove()
434 client->num_ports--; in snd_seq_midisynth_remove()
435 if (client->num_ports <= 0) { in snd_seq_midisynth_remove()
436 snd_seq_delete_kernel_client(client->seq_client); in snd_seq_midisynth_remove()
438 kfree(client); in snd_seq_midisynth_remove()