Lines Matching refs:cptr

1191 	struct snd_seq_client *cptr;  in snd_seq_ioctl_running_mode()  local
1195 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_running_mode()
1196 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1215 cptr->convert32 = (info->cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1217 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1222 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1225 info->client = cptr->number; in get_client_info()
1228 info->type = cptr->type; in get_client_info()
1229 strcpy(info->name, cptr->name); in get_client_info()
1230 info->filter = cptr->filter; in get_client_info()
1231 info->event_lost = cptr->event_lost; in get_client_info()
1232 memcpy(info->event_filter, cptr->event_filter, 32); in get_client_info()
1233 info->num_ports = cptr->num_ports; in get_client_info()
1235 if (cptr->type == USER_CLIENT) in get_client_info()
1236 info->pid = pid_vnr(cptr->data.user.owner); in get_client_info()
1240 if (cptr->type == KERNEL_CLIENT) in get_client_info()
1241 info->card = cptr->data.kernel.card ? cptr->data.kernel.card->number : -1; in get_client_info()
1252 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_info() local
1255 cptr = snd_seq_client_use_ptr(client_info->client); in snd_seq_ioctl_get_client_info()
1256 if (cptr == NULL) in snd_seq_ioctl_get_client_info()
1259 get_client_info(cptr, client_info); in snd_seq_ioctl_get_client_info()
1260 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_info()
1363 struct snd_seq_client *cptr; in snd_seq_ioctl_get_port_info() local
1366 cptr = snd_seq_client_use_ptr(info->addr.client); in snd_seq_ioctl_get_port_info()
1367 if (cptr == NULL) in snd_seq_ioctl_get_port_info()
1370 port = snd_seq_port_use_ptr(cptr, info->addr.port); in snd_seq_ioctl_get_port_info()
1372 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1379 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1824 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_pool() local
1826 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_get_client_pool()
1827 if (cptr == NULL) in snd_seq_ioctl_get_client_pool()
1830 info->client = cptr->number; in snd_seq_ioctl_get_client_pool()
1831 info->output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1832 info->output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1834 info->output_free = snd_seq_unused_cells(cptr->pool); in snd_seq_ioctl_get_client_pool()
1835 if (cptr->type == USER_CLIENT) { in snd_seq_ioctl_get_client_pool()
1836 info->input_pool = cptr->data.user.fifo_pool_size; in snd_seq_ioctl_get_client_pool()
1838 info->input_free = snd_seq_fifo_unused_cells(cptr->data.user.fifo); in snd_seq_ioctl_get_client_pool()
1843 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_pool()
1953 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_subs() local
1959 if ((cptr = snd_seq_client_use_ptr(subs->root.client)) == NULL) in snd_seq_ioctl_query_subs()
1961 if ((port = snd_seq_port_use_ptr(cptr, subs->root.port)) == NULL) in snd_seq_ioctl_query_subs()
2002 if (cptr) in snd_seq_ioctl_query_subs()
2003 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_subs()
2016 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_next_client() local
2024 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_query_next_client()
2025 if (cptr) in snd_seq_ioctl_query_next_client()
2028 if (cptr == NULL) in snd_seq_ioctl_query_next_client()
2031 get_client_info(cptr, info); in snd_seq_ioctl_query_next_client()
2032 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_client()
2044 struct snd_seq_client *cptr; in snd_seq_ioctl_query_next_port() local
2047 cptr = snd_seq_client_use_ptr(info->addr.client); in snd_seq_ioctl_query_next_port()
2048 if (cptr == NULL) in snd_seq_ioctl_query_next_port()
2053 port = snd_seq_port_query_nearest(cptr, info); in snd_seq_ioctl_query_next_port()
2055 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2063 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2257 struct snd_seq_client *cptr; in snd_seq_kernel_client_enqueue() local
2274 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_enqueue()
2275 if (cptr == NULL) in snd_seq_kernel_client_enqueue()
2278 if (!cptr->accept_output) { in snd_seq_kernel_client_enqueue()
2281 mutex_lock(&cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2282 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, in snd_seq_kernel_client_enqueue()
2284 &cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2285 mutex_unlock(&cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2288 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_enqueue()
2303 struct snd_seq_client *cptr; in snd_seq_kernel_client_dispatch() local
2316 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_dispatch()
2317 if (cptr == NULL) in snd_seq_kernel_client_dispatch()
2320 if (!cptr->accept_output) in snd_seq_kernel_client_dispatch()
2323 result = snd_seq_deliver_event(cptr, ev, atomic, hop); in snd_seq_kernel_client_dispatch()
2325 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_dispatch()