Lines Matching refs:sport
1391 struct snd_seq_client_port *sport, in check_subscription_permission() argument
1398 if (check_port_perm(sport, SNDRV_SEQ_PORT_CAP_NO_EXPORT)) in check_subscription_permission()
1409 if (! check_port_perm(sport, PERM_RD)) in check_subscription_permission()
1447 struct snd_seq_client_port *sport = NULL, *dport = NULL; in snd_seq_ioctl_subscribe_port() local
1457 if ((sport = snd_seq_port_use_ptr(sender, subs.sender.port)) == NULL) in snd_seq_ioctl_subscribe_port()
1462 result = check_subscription_permission(client, sport, dport, &subs); in snd_seq_ioctl_subscribe_port()
1467 result = snd_seq_port_connect(client, sender, sport, receiver, dport, &subs); in snd_seq_ioctl_subscribe_port()
1472 if (sport) in snd_seq_ioctl_subscribe_port()
1473 snd_seq_port_unlock(sport); in snd_seq_ioctl_subscribe_port()
1492 struct snd_seq_client_port *sport = NULL, *dport = NULL; in snd_seq_ioctl_unsubscribe_port() local
1502 if ((sport = snd_seq_port_use_ptr(sender, subs.sender.port)) == NULL) in snd_seq_ioctl_unsubscribe_port()
1507 result = check_subscription_permission(client, sport, dport, &subs); in snd_seq_ioctl_unsubscribe_port()
1511 result = snd_seq_port_disconnect(client, sender, sport, receiver, dport, &subs); in snd_seq_ioctl_unsubscribe_port()
1516 if (sport) in snd_seq_ioctl_unsubscribe_port()
1517 snd_seq_port_unlock(sport); in snd_seq_ioctl_unsubscribe_port()
1987 struct snd_seq_client_port *sport = NULL; in snd_seq_ioctl_get_subscription() local
1997 if ((sport = snd_seq_port_use_ptr(sender, subs.sender.port)) == NULL) in snd_seq_ioctl_get_subscription()
1999 p = snd_seq_port_get_subscription(&sport->c_src, &subs.dest); in snd_seq_ioctl_get_subscription()
2007 if (sport) in snd_seq_ioctl_get_subscription()
2008 snd_seq_port_unlock(sport); in snd_seq_ioctl_get_subscription()