Lines Matching refs:clientid
93 static struct snd_seq_client *clientptr(int clientid) in clientptr() argument
95 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { in clientptr()
97 clientid); in clientptr()
100 return clienttab[clientid]; in clientptr()
103 struct snd_seq_client *snd_seq_client_use_ptr(int clientid) in snd_seq_client_use_ptr() argument
108 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) { in snd_seq_client_use_ptr()
110 clientid); in snd_seq_client_use_ptr()
114 client = clientptr(clientid); in snd_seq_client_use_ptr()
117 if (clienttablock[clientid]) { in snd_seq_client_use_ptr()
126 if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) { in snd_seq_client_use_ptr()
129 if (!client_requested[clientid]) { in snd_seq_client_use_ptr()
130 client_requested[clientid] = 1; in snd_seq_client_use_ptr()
134 if (seq_client_load[idx] == clientid) { in snd_seq_client_use_ptr()
136 clientid); in snd_seq_client_use_ptr()
141 } else if (clientid < SNDRV_SEQ_DYNAMIC_CLIENTS_BEGIN) { in snd_seq_client_use_ptr()
142 int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) / in snd_seq_client_use_ptr()
153 client = clientptr(clientid); in snd_seq_client_use_ptr()
171 bool snd_seq_client_ioctl_lock(int clientid) in snd_seq_client_ioctl_lock() argument
175 client = snd_seq_client_use_ptr(clientid); in snd_seq_client_ioctl_lock()
185 void snd_seq_client_ioctl_unlock(int clientid) in snd_seq_client_ioctl_unlock() argument
189 client = snd_seq_client_use_ptr(clientid); in snd_seq_client_ioctl_unlock()
2358 int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg) in snd_seq_kernel_client_ctl() argument
2363 client = clientptr(clientid); in snd_seq_kernel_client_ctl()
2379 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait) in snd_seq_kernel_client_write_poll() argument
2383 client = clientptr(clientid); in snd_seq_kernel_client_write_poll()