Lines Matching refs:clientid
122 static struct snd_seq_client *clientptr(int clientid)
124 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) {
126 clientid);
129 return clienttab[clientid];
132 struct snd_seq_client *snd_seq_client_use_ptr(int clientid)
137 if (clientid < 0 || clientid >= SNDRV_SEQ_MAX_CLIENTS) {
139 clientid);
143 client = clientptr(clientid);
146 if (clienttablock[clientid]) {
155 if (clientid < SNDRV_SEQ_GLOBAL_CLIENTS) {
158 if (!client_requested[clientid]) {
159 client_requested[clientid] = 1;
163 if (seq_client_load[idx] == clientid) {
165 clientid);
170 } else if (clientid < SNDRV_SEQ_DYNAMIC_CLIENTS_BEGIN) {
171 int card = (clientid - SNDRV_SEQ_GLOBAL_CLIENTS) /
182 client = clientptr(clientid);
2397 int snd_seq_kernel_client_ctl(int clientid, unsigned int cmd, void *arg)
2403 client = clientptr(clientid);
2415 int snd_seq_kernel_client_write_poll(int clientid, struct file *file, poll_table *wait)
2419 client = clientptr(clientid);