Lines Matching refs:cptr

1194 	struct snd_seq_client *cptr;  in snd_seq_ioctl_running_mode()  local
1198 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_running_mode()
1199 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1218 cptr->convert32 = (info->cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1220 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1225 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1228 info->client = cptr->number; in get_client_info()
1231 info->type = cptr->type; in get_client_info()
1232 strcpy(info->name, cptr->name); in get_client_info()
1233 info->filter = cptr->filter; in get_client_info()
1234 info->event_lost = cptr->event_lost; in get_client_info()
1235 memcpy(info->event_filter, cptr->event_filter, 32); in get_client_info()
1236 info->num_ports = cptr->num_ports; in get_client_info()
1238 if (cptr->type == USER_CLIENT) in get_client_info()
1239 info->pid = pid_vnr(cptr->data.user.owner); in get_client_info()
1243 if (cptr->type == KERNEL_CLIENT) in get_client_info()
1244 info->card = cptr->data.kernel.card ? cptr->data.kernel.card->number : -1; in get_client_info()
1255 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_info() local
1258 cptr = snd_seq_client_use_ptr(client_info->client); in snd_seq_ioctl_get_client_info()
1259 if (cptr == NULL) in snd_seq_ioctl_get_client_info()
1262 get_client_info(cptr, client_info); in snd_seq_ioctl_get_client_info()
1263 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_info()
1367 struct snd_seq_client *cptr; in snd_seq_ioctl_get_port_info() local
1370 cptr = snd_seq_client_use_ptr(info->addr.client); in snd_seq_ioctl_get_port_info()
1371 if (cptr == NULL) in snd_seq_ioctl_get_port_info()
1374 port = snd_seq_port_use_ptr(cptr, info->addr.port); in snd_seq_ioctl_get_port_info()
1376 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1383 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1836 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_pool() local
1838 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_get_client_pool()
1839 if (cptr == NULL) in snd_seq_ioctl_get_client_pool()
1842 info->client = cptr->number; in snd_seq_ioctl_get_client_pool()
1843 info->output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1844 info->output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1846 info->output_free = snd_seq_unused_cells(cptr->pool); in snd_seq_ioctl_get_client_pool()
1847 if (cptr->type == USER_CLIENT) { in snd_seq_ioctl_get_client_pool()
1848 info->input_pool = cptr->data.user.fifo_pool_size; in snd_seq_ioctl_get_client_pool()
1850 info->input_free = snd_seq_fifo_unused_cells(cptr->data.user.fifo); in snd_seq_ioctl_get_client_pool()
1855 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_pool()
1967 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_subs() local
1973 cptr = snd_seq_client_use_ptr(subs->root.client); in snd_seq_ioctl_query_subs()
1974 if (!cptr) in snd_seq_ioctl_query_subs()
1976 port = snd_seq_port_use_ptr(cptr, subs->root.port); in snd_seq_ioctl_query_subs()
2018 if (cptr) in snd_seq_ioctl_query_subs()
2019 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_subs()
2032 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_next_client() local
2040 cptr = snd_seq_client_use_ptr(info->client); in snd_seq_ioctl_query_next_client()
2041 if (cptr) in snd_seq_ioctl_query_next_client()
2044 if (cptr == NULL) in snd_seq_ioctl_query_next_client()
2047 get_client_info(cptr, info); in snd_seq_ioctl_query_next_client()
2048 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_client()
2060 struct snd_seq_client *cptr; in snd_seq_ioctl_query_next_port() local
2063 cptr = snd_seq_client_use_ptr(info->addr.client); in snd_seq_ioctl_query_next_port()
2064 if (cptr == NULL) in snd_seq_ioctl_query_next_port()
2069 port = snd_seq_port_query_nearest(cptr, info); in snd_seq_ioctl_query_next_port()
2071 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2079 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2273 struct snd_seq_client *cptr; in snd_seq_kernel_client_enqueue() local
2290 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_enqueue()
2291 if (cptr == NULL) in snd_seq_kernel_client_enqueue()
2294 if (!cptr->accept_output) { in snd_seq_kernel_client_enqueue()
2297 mutex_lock(&cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2298 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, in snd_seq_kernel_client_enqueue()
2300 &cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2301 mutex_unlock(&cptr->ioctl_mutex); in snd_seq_kernel_client_enqueue()
2304 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_enqueue()
2319 struct snd_seq_client *cptr; in snd_seq_kernel_client_dispatch() local
2332 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_dispatch()
2333 if (cptr == NULL) in snd_seq_kernel_client_dispatch()
2336 if (!cptr->accept_output) in snd_seq_kernel_client_dispatch()
2339 result = snd_seq_deliver_event(cptr, ev, atomic, hop); in snd_seq_kernel_client_dispatch()
2341 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_dispatch()