• Home
  • Raw
  • Download

Lines Matching refs:cptr

1133 	struct snd_seq_client *cptr;  in snd_seq_ioctl_running_mode()  local
1140 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_running_mode()
1141 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1160 cptr->convert32 = (info.cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1162 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1167 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1170 info->client = cptr->number; in get_client_info()
1173 info->type = cptr->type; in get_client_info()
1174 strcpy(info->name, cptr->name); in get_client_info()
1175 info->filter = cptr->filter; in get_client_info()
1176 info->event_lost = cptr->event_lost; in get_client_info()
1177 memcpy(info->event_filter, cptr->event_filter, 32); in get_client_info()
1178 info->num_ports = cptr->num_ports; in get_client_info()
1185 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_info() local
1192 cptr = snd_seq_client_use_ptr(client_info.client); in snd_seq_ioctl_get_client_info()
1193 if (cptr == NULL) in snd_seq_ioctl_get_client_info()
1196 get_client_info(cptr, &client_info); in snd_seq_ioctl_get_client_info()
1197 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_info()
1314 struct snd_seq_client *cptr; in snd_seq_ioctl_get_port_info() local
1320 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_get_port_info()
1321 if (cptr == NULL) in snd_seq_ioctl_get_port_info()
1324 port = snd_seq_port_use_ptr(cptr, info.addr.port); in snd_seq_ioctl_get_port_info()
1326 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1333 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1856 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_pool() local
1861 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_get_client_pool()
1862 if (cptr == NULL) in snd_seq_ioctl_get_client_pool()
1865 info.output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1866 info.output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1868 info.output_free = snd_seq_unused_cells(cptr->pool); in snd_seq_ioctl_get_client_pool()
1869 if (cptr->type == USER_CLIENT) { in snd_seq_ioctl_get_client_pool()
1870 info.input_pool = cptr->data.user.fifo_pool_size; in snd_seq_ioctl_get_client_pool()
1872 if (cptr->data.user.fifo) in snd_seq_ioctl_get_client_pool()
1873 info.input_free = snd_seq_unused_cells(cptr->data.user.fifo->pool); in snd_seq_ioctl_get_client_pool()
1878 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_pool()
2005 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_subs() local
2015 if ((cptr = snd_seq_client_use_ptr(subs.root.client)) == NULL) in snd_seq_ioctl_query_subs()
2017 if ((port = snd_seq_port_use_ptr(cptr, subs.root.port)) == NULL) in snd_seq_ioctl_query_subs()
2058 if (cptr) in snd_seq_ioctl_query_subs()
2059 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_subs()
2074 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_next_client() local
2085 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_query_next_client()
2086 if (cptr) in snd_seq_ioctl_query_next_client()
2089 if (cptr == NULL) in snd_seq_ioctl_query_next_client()
2092 get_client_info(cptr, &info); in snd_seq_ioctl_query_next_client()
2093 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_client()
2106 struct snd_seq_client *cptr; in snd_seq_ioctl_query_next_port() local
2112 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_query_next_port()
2113 if (cptr == NULL) in snd_seq_ioctl_query_next_port()
2118 port = snd_seq_port_query_nearest(cptr, &info); in snd_seq_ioctl_query_next_port()
2120 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2128 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2296 struct snd_seq_client *cptr; in kernel_client_enqueue() local
2313 cptr = snd_seq_client_use_ptr(client); in kernel_client_enqueue()
2314 if (cptr == NULL) in kernel_client_enqueue()
2317 if (! cptr->accept_output) in kernel_client_enqueue()
2320 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, atomic, hop); in kernel_client_enqueue()
2322 snd_seq_client_unlock(cptr); in kernel_client_enqueue()
2363 struct snd_seq_client *cptr; in snd_seq_kernel_client_dispatch() local
2376 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_dispatch()
2377 if (cptr == NULL) in snd_seq_kernel_client_dispatch()
2380 if (!cptr->accept_output) in snd_seq_kernel_client_dispatch()
2383 result = snd_seq_deliver_event(cptr, ev, atomic, hop); in snd_seq_kernel_client_dispatch()
2385 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_dispatch()