Lines Matching refs:grp
112 static void port_subs_info_init(struct snd_seq_port_subs_info *grp) in port_subs_info_init() argument
114 INIT_LIST_HEAD(&grp->list_head); in port_subs_info_init()
115 grp->count = 0; in port_subs_info_init()
116 grp->exclusive = 0; in port_subs_info_init()
117 rwlock_init(&grp->list_lock); in port_subs_info_init()
118 init_rwsem(&grp->list_mutex); in port_subs_info_init()
119 grp->open = NULL; in port_subs_info_init()
120 grp->close = NULL; in port_subs_info_init()
183 struct snd_seq_port_subs_info *grp,
187 struct snd_seq_port_subs_info *grp,
213 struct snd_seq_port_subs_info *grp, in clear_subscriber_list() argument
218 list_for_each_safe(p, n, &grp->list_head) { in clear_subscriber_list()
231 unsubscribe_port(client, port, grp, &subs->info, 0); in clear_subscriber_list()
420 struct snd_seq_port_subs_info *grp, in subscribe_port() argument
428 grp->count++; in subscribe_port()
429 if (grp->open && (port->callback_all || grp->count == 1)) { in subscribe_port()
430 err = grp->open(port->private_data, info); in subscribe_port()
433 grp->count--; in subscribe_port()
445 struct snd_seq_port_subs_info *grp, in unsubscribe_port() argument
451 if (! grp->count) in unsubscribe_port()
453 grp->count--; in unsubscribe_port()
454 if (grp->close && (port->callback_all || grp->count == 0)) in unsubscribe_port()
455 err = grp->close(port->private_data, info); in unsubscribe_port()