• Home
  • Raw
  • Download

Lines Matching refs:cptr

1171 	struct snd_seq_client *cptr;  in snd_seq_ioctl_running_mode()  local
1178 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_running_mode()
1179 if (cptr == NULL) in snd_seq_ioctl_running_mode()
1198 cptr->convert32 = (info.cpu_mode < sizeof(long)); in snd_seq_ioctl_running_mode()
1200 snd_seq_client_unlock(cptr); in snd_seq_ioctl_running_mode()
1205 static void get_client_info(struct snd_seq_client *cptr, in get_client_info() argument
1208 info->client = cptr->number; in get_client_info()
1211 info->type = cptr->type; in get_client_info()
1212 strcpy(info->name, cptr->name); in get_client_info()
1213 info->filter = cptr->filter; in get_client_info()
1214 info->event_lost = cptr->event_lost; in get_client_info()
1215 memcpy(info->event_filter, cptr->event_filter, 32); in get_client_info()
1216 info->num_ports = cptr->num_ports; in get_client_info()
1223 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_info() local
1230 cptr = snd_seq_client_use_ptr(client_info.client); in snd_seq_ioctl_get_client_info()
1231 if (cptr == NULL) in snd_seq_ioctl_get_client_info()
1234 get_client_info(cptr, &client_info); in snd_seq_ioctl_get_client_info()
1235 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_info()
1355 struct snd_seq_client *cptr; in snd_seq_ioctl_get_port_info() local
1361 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_get_port_info()
1362 if (cptr == NULL) in snd_seq_ioctl_get_port_info()
1365 port = snd_seq_port_use_ptr(cptr, info.addr.port); in snd_seq_ioctl_get_port_info()
1367 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1374 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_port_info()
1892 struct snd_seq_client *cptr; in snd_seq_ioctl_get_client_pool() local
1897 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_get_client_pool()
1898 if (cptr == NULL) in snd_seq_ioctl_get_client_pool()
1901 info.client = cptr->number; in snd_seq_ioctl_get_client_pool()
1902 info.output_pool = cptr->pool->size; in snd_seq_ioctl_get_client_pool()
1903 info.output_room = cptr->pool->room; in snd_seq_ioctl_get_client_pool()
1905 info.output_free = snd_seq_unused_cells(cptr->pool); in snd_seq_ioctl_get_client_pool()
1906 if (cptr->type == USER_CLIENT) { in snd_seq_ioctl_get_client_pool()
1907 info.input_pool = cptr->data.user.fifo_pool_size; in snd_seq_ioctl_get_client_pool()
1909 info.input_free = snd_seq_fifo_unused_cells(cptr->data.user.fifo); in snd_seq_ioctl_get_client_pool()
1914 snd_seq_client_unlock(cptr); in snd_seq_ioctl_get_client_pool()
2045 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_subs() local
2055 if ((cptr = snd_seq_client_use_ptr(subs.root.client)) == NULL) in snd_seq_ioctl_query_subs()
2057 if ((port = snd_seq_port_use_ptr(cptr, subs.root.port)) == NULL) in snd_seq_ioctl_query_subs()
2098 if (cptr) in snd_seq_ioctl_query_subs()
2099 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_subs()
2114 struct snd_seq_client *cptr = NULL; in snd_seq_ioctl_query_next_client() local
2125 cptr = snd_seq_client_use_ptr(info.client); in snd_seq_ioctl_query_next_client()
2126 if (cptr) in snd_seq_ioctl_query_next_client()
2129 if (cptr == NULL) in snd_seq_ioctl_query_next_client()
2132 get_client_info(cptr, &info); in snd_seq_ioctl_query_next_client()
2133 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_client()
2146 struct snd_seq_client *cptr; in snd_seq_ioctl_query_next_port() local
2152 cptr = snd_seq_client_use_ptr(info.addr.client); in snd_seq_ioctl_query_next_port()
2153 if (cptr == NULL) in snd_seq_ioctl_query_next_port()
2158 port = snd_seq_port_query_nearest(cptr, &info); in snd_seq_ioctl_query_next_port()
2160 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2168 snd_seq_client_unlock(cptr); in snd_seq_ioctl_query_next_port()
2340 struct snd_seq_client *cptr; in kernel_client_enqueue() local
2357 cptr = snd_seq_client_use_ptr(client); in kernel_client_enqueue()
2358 if (cptr == NULL) in kernel_client_enqueue()
2361 if (! cptr->accept_output) in kernel_client_enqueue()
2364 result = snd_seq_client_enqueue_event(cptr, ev, file, blocking, in kernel_client_enqueue()
2367 snd_seq_client_unlock(cptr); in kernel_client_enqueue()
2408 struct snd_seq_client *cptr; in snd_seq_kernel_client_dispatch() local
2421 cptr = snd_seq_client_use_ptr(client); in snd_seq_kernel_client_dispatch()
2422 if (cptr == NULL) in snd_seq_kernel_client_dispatch()
2425 if (!cptr->accept_output) in snd_seq_kernel_client_dispatch()
2428 result = snd_seq_deliver_event(cptr, ev, atomic, hop); in snd_seq_kernel_client_dispatch()
2430 snd_seq_client_unlock(cptr); in snd_seq_kernel_client_dispatch()