Lines Matching defs:clientid
99 static struct snd_seq_client *clientptr(int clientid)
101 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) {
103 clientid);
106 return clienttab[clientid];
109 static struct snd_seq_client *client_use_ptr(int clientid, bool load_module)
113 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) {
115 clientid);
119 client = clientptr(clientid);
122 if (clienttablock[clientid])
130 if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) {
133 if (!test_and_set_bit(clientid, client_requested)) {
137 if (seq_client_load[idx] == clientid) {
139 clientid);
144 } else if (clientid < SNDRV_SEQ_DYNAMIC_CLIENTS_BEGIN) {
145 int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) /
154 client = clientptr(clientid);
164 struct snd_seq_client *snd_seq_client_use_ptr(int clientid)
166 return client_use_ptr(clientid, false);
172 static struct snd_seq_client *client_load_and_use_ptr(int clientid)
174 return client_use_ptr(clientid, IS_ENABLED(CONFIG_MODULES));
2429 * @clientid: A numerical ID for a client.
2438 int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg)
2442 client = clientptr(clientid);
2451 int snd_seq_kernel_client_ioctl(int clientid, unsigned int cmd, void *arg)
2455 client = client_load_and_use_ptr(clientid);
2464 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait)
2468 client = clientptr(clientid);