Lines Matching refs:subs

668 	struct snd_seq_subscribers *subs;  in deliver_to_subscribers()  local
686 list_for_each_entry(subs, &grp->list_head, src_list) { in deliver_to_subscribers()
688 if (atomic_read(&subs->ref_count) != 2) in deliver_to_subscribers()
690 event->dest = subs->info.dest; in deliver_to_subscribers()
691 if (subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIMESTAMP) in deliver_to_subscribers()
693 update_timestamp_of_queue(event, subs->info.queue, in deliver_to_subscribers()
694 subs->info.flags & SNDRV_SEQ_PORT_SUBS_TIME_REAL); in deliver_to_subscribers()
1417 struct snd_seq_port_subscribe *subs) in check_subscription_permission() argument
1419 if (client->number != subs->sender.client && in check_subscription_permission()
1420 client->number != subs->dest.client) { in check_subscription_permission()
1432 if (client->number != subs->sender.client) { in check_subscription_permission()
1437 if (client->number != subs->dest.client) { in check_subscription_permission()
1469 struct snd_seq_port_subscribe *subs = arg; in snd_seq_ioctl_subscribe_port() local
1474 receiver = snd_seq_client_use_ptr(subs->dest.client); in snd_seq_ioctl_subscribe_port()
1477 sender = snd_seq_client_use_ptr(subs->sender.client); in snd_seq_ioctl_subscribe_port()
1480 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_subscribe_port()
1483 dport = snd_seq_port_use_ptr(receiver, subs->dest.port); in snd_seq_ioctl_subscribe_port()
1487 result = check_subscription_permission(client, sport, dport, subs); in snd_seq_ioctl_subscribe_port()
1492 result = snd_seq_port_connect(client, sender, sport, receiver, dport, subs); in snd_seq_ioctl_subscribe_port()
1495 subs, SNDRV_SEQ_EVENT_PORT_SUBSCRIBED); in snd_seq_ioctl_subscribe_port()
1515 struct snd_seq_port_subscribe *subs = arg; in snd_seq_ioctl_unsubscribe_port() local
1520 receiver = snd_seq_client_use_ptr(subs->dest.client); in snd_seq_ioctl_unsubscribe_port()
1523 sender = snd_seq_client_use_ptr(subs->sender.client); in snd_seq_ioctl_unsubscribe_port()
1526 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_unsubscribe_port()
1529 dport = snd_seq_port_use_ptr(receiver, subs->dest.port); in snd_seq_ioctl_unsubscribe_port()
1533 result = check_subscription_permission(client, sport, dport, subs); in snd_seq_ioctl_unsubscribe_port()
1537 result = snd_seq_port_disconnect(client, sender, sport, receiver, dport, subs); in snd_seq_ioctl_unsubscribe_port()
1540 subs, SNDRV_SEQ_EVENT_PORT_UNSUBSCRIBED); in snd_seq_ioctl_unsubscribe_port()
1936 struct snd_seq_port_subscribe *subs = arg; in snd_seq_ioctl_get_subscription() local
1942 sender = snd_seq_client_use_ptr(subs->sender.client); in snd_seq_ioctl_get_subscription()
1945 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_get_subscription()
1948 result = snd_seq_port_get_subscription(&sport->c_src, &subs->dest, in snd_seq_ioctl_get_subscription()
1949 subs); in snd_seq_ioctl_get_subscription()
1965 struct snd_seq_query_subs *subs = arg; in snd_seq_ioctl_query_subs() local
1973 cptr = snd_seq_client_use_ptr(subs->root.client); in snd_seq_ioctl_query_subs()
1976 port = snd_seq_port_use_ptr(cptr, subs->root.port); in snd_seq_ioctl_query_subs()
1980 switch (subs->type) { in snd_seq_ioctl_query_subs()
1993 subs->num_subs = group->count; in snd_seq_ioctl_query_subs()
1997 if (i++ == subs->index) { in snd_seq_ioctl_query_subs()
2000 if (subs->type == SNDRV_SEQ_QUERY_SUBS_READ) { in snd_seq_ioctl_query_subs()
2002 subs->addr = s->info.dest; in snd_seq_ioctl_query_subs()
2005 subs->addr = s->info.sender; in snd_seq_ioctl_query_subs()
2007 subs->flags = s->info.flags; in snd_seq_ioctl_query_subs()
2008 subs->queue = s->info.queue; in snd_seq_ioctl_query_subs()