Lines Matching refs:cptr

1154 	struct snd_seq_client *cptr;  in snd_seq_ioctl_running_mode()  local
1161 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_running_mode()
1162 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1181 cptr->convert32 = (info.cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1183 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1188 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1191 info->client = cptr->number; in get_client_info()
1194 info->type = cptr->type; in get_client_info()
1195 strcpy(info->name, cptr->name); in get_client_info()
1196 info->filter = cptr->filter; in get_client_info()
1197 info->event_lost = cptr->event_lost; in get_client_info()
1198 memcpy(info->event_filter, cptr->event_filter, 32); in get_client_info()
1199 info->num_ports = cptr->num_ports; in get_client_info()
1206 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_info() local
1213 cptr = snd_seq_client_use_ptr(client_info.client); in snd_seq_ioctl_get_client_info()
1214 if (cptr == NULL) in snd_seq_ioctl_get_client_info()
1217 get_client_info(cptr, &client_info); in snd_seq_ioctl_get_client_info()
1218 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_info()
1334 struct snd_seq_client *cptr; in snd_seq_ioctl_get_port_info() local
1340 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_get_port_info()
1341 if (cptr == NULL) in snd_seq_ioctl_get_port_info()
1344 port = snd_seq_port_use_ptr(cptr, info.addr.port); in snd_seq_ioctl_get_port_info()
1346 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1353 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1876 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_pool() local
1881 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_get_client_pool()
1882 if (cptr == NULL) in snd_seq_ioctl_get_client_pool()
1885 info.client = cptr->number; in snd_seq_ioctl_get_client_pool()
1886 info.output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1887 info.output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1889 info.output_free = snd_seq_unused_cells(cptr->pool); in snd_seq_ioctl_get_client_pool()
1890 if (cptr->type == USER_CLIENT) { in snd_seq_ioctl_get_client_pool()
1891 info.input_pool = cptr->data.user.fifo_pool_size; in snd_seq_ioctl_get_client_pool()
1893 if (cptr->data.user.fifo) in snd_seq_ioctl_get_client_pool()
1894 info.input_free = snd_seq_unused_cells(cptr->data.user.fifo->pool); in snd_seq_ioctl_get_client_pool()
1899 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_pool()
2026 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_subs() local
2036 if ((cptr = snd_seq_client_use_ptr(subs.root.client)) == NULL) in snd_seq_ioctl_query_subs()
2038 if ((port = snd_seq_port_use_ptr(cptr, subs.root.port)) == NULL) in snd_seq_ioctl_query_subs()
2079 if (cptr) in snd_seq_ioctl_query_subs()
2080 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_subs()
2095 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_next_client() local
2106 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_query_next_client()
2107 if (cptr) in snd_seq_ioctl_query_next_client()
2110 if (cptr == NULL) in snd_seq_ioctl_query_next_client()
2113 get_client_info(cptr, &info); in snd_seq_ioctl_query_next_client()
2114 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_client()
2127 struct snd_seq_client *cptr; in snd_seq_ioctl_query_next_port() local
2133 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_query_next_port()
2134 if (cptr == NULL) in snd_seq_ioctl_query_next_port()
2139 port = snd_seq_port_query_nearest(cptr, &info); in snd_seq_ioctl_query_next_port()
2141 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2149 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2317 struct snd_seq_client *cptr; in kernel_client_enqueue() local
2334 cptr = snd_seq_client_use_ptr(client); in kernel_client_enqueue()
2335 if (cptr == NULL) in kernel_client_enqueue()
2338 if (! cptr->accept_output) in kernel_client_enqueue()
2341 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, atomic, hop); in kernel_client_enqueue()
2343 snd_seq_client_unlock(cptr); in kernel_client_enqueue()
2384 struct snd_seq_client *cptr; in snd_seq_kernel_client_dispatch() local
2397 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_dispatch()
2398 if (cptr == NULL) in snd_seq_kernel_client_dispatch()
2401 if (!cptr->accept_output) in snd_seq_kernel_client_dispatch()
2404 result = snd_seq_deliver_event(cptr, ev, atomic, hop); in snd_seq_kernel_client_dispatch()
2406 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_dispatch()