Lines Matching refs:cptr
1159 struct snd_seq_client *cptr __free(snd_seq_client) =
1162 if (cptr == NULL)
1174 cptr->convert32 = (info->cpu_mode < sizeof(long));
1179 static void get_client_info(struct snd_seq_client *cptr,
1182 info->client = cptr->number;
1185 info->type = cptr->type;
1186 strscpy(info->name, cptr->name);
1187 info->filter = cptr->filter;
1188 info->event_lost = cptr->event_lost;
1189 memcpy(info->event_filter, cptr->event_filter, 32);
1190 info->group_filter = cptr->group_filter;
1191 info->num_ports = cptr->num_ports;
1193 if (cptr->type == USER_CLIENT)
1194 info->pid = pid_vnr(cptr->data.user.owner);
1198 if (cptr->type == KERNEL_CLIENT)
1199 info->card = cptr->data.kernel.card ? cptr->data.kernel.card->number : -1;
1203 info->midi_version = cptr->midi_version;
1212 struct snd_seq_client *cptr __free(snd_seq_client) =
1215 if (cptr == NULL)
1218 get_client_info(cptr, client_info);
1349 struct snd_seq_client *cptr __free(snd_seq_client) =
1351 if (cptr == NULL)
1355 snd_seq_port_use_ptr(cptr, info->addr.port);
1793 struct snd_seq_client *cptr __free(snd_seq_client) =
1796 if (cptr == NULL)
1799 info->client = cptr->number;
1800 info->output_pool = cptr->pool->size;
1801 info->output_room = cptr->pool->room;
1803 info->output_free = snd_seq_unused_cells(cptr->pool);
1804 if (cptr->type == USER_CLIENT) {
1805 info->input_pool = cptr->data.user.fifo_pool_size;
1807 info->input_free = snd_seq_fifo_unused_cells(cptr->data.user.fifo);
1916 struct snd_seq_client *cptr __free(snd_seq_client) =
1918 if (!cptr)
1921 snd_seq_port_use_ptr(cptr, subs->root.port);
1975 struct snd_seq_client *cptr __free(snd_seq_client) =
1977 if (cptr) {
1978 get_client_info(cptr, info);
1993 struct snd_seq_client *cptr __free(snd_seq_client) =
1995 if (cptr == NULL)
2001 snd_seq_port_query_nearest(cptr, info);
2088 struct snd_seq_client *cptr __free(snd_seq_client) =
2090 if (!cptr)
2093 scoped_guard(mutex, &cptr->ioctl_mutex) {
2094 if (!cptr->midi_version) {
2100 if (!cptr->ump_info)
2103 p = cptr->ump_info[type];
2113 if (cptr->type != USER_CLIENT) {
2117 if (!cptr->ump_info) {
2118 cptr->ump_info = kcalloc(NUM_UMP_INFOS,
2120 if (!cptr->ump_info) {
2130 kfree(cptr->ump_info[type]);
2132 cptr->ump_info[type] = p;
2364 struct snd_seq_client *cptr __free(snd_seq_client) =
2366 if (cptr == NULL)
2369 if (!cptr->accept_output) {
2372 guard(mutex)(&cptr->ioctl_mutex);
2373 return snd_seq_client_enqueue_event(cptr, ev, file, blocking,
2375 &cptr->ioctl_mutex);
2400 struct snd_seq_client *cptr __free(snd_seq_client) =
2402 if (cptr == NULL)
2405 if (!cptr->accept_output)
2408 return snd_seq_deliver_event(cptr, ev, atomic, hop);
2487 void snd_seq_kernel_client_put(struct snd_seq_client *cptr)
2489 if (cptr)
2490 snd_seq_client_unref(cptr);