Lines Matching refs:sport
1413 struct snd_seq_client_port *sport, in check_subscription_permission() argument
1420 if (check_port_perm(sport, SNDRV_SEQ_PORT_CAP_NO_EXPORT)) in check_subscription_permission()
1431 if (! check_port_perm(sport, PERM_RD)) in check_subscription_permission()
1470 struct snd_seq_client_port *sport = NULL, *dport = NULL; in snd_seq_ioctl_subscribe_port() local
1478 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_subscribe_port()
1479 if (!sport) in snd_seq_ioctl_subscribe_port()
1485 result = check_subscription_permission(client, sport, dport, subs); in snd_seq_ioctl_subscribe_port()
1490 result = snd_seq_port_connect(client, sender, sport, receiver, dport, subs); in snd_seq_ioctl_subscribe_port()
1495 if (sport) in snd_seq_ioctl_subscribe_port()
1496 snd_seq_port_unlock(sport); in snd_seq_ioctl_subscribe_port()
1516 struct snd_seq_client_port *sport = NULL, *dport = NULL; in snd_seq_ioctl_unsubscribe_port() local
1524 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_unsubscribe_port()
1525 if (!sport) in snd_seq_ioctl_unsubscribe_port()
1531 result = check_subscription_permission(client, sport, dport, subs); in snd_seq_ioctl_unsubscribe_port()
1535 result = snd_seq_port_disconnect(client, sender, sport, receiver, dport, subs); in snd_seq_ioctl_unsubscribe_port()
1540 if (sport) in snd_seq_ioctl_unsubscribe_port()
1541 snd_seq_port_unlock(sport); in snd_seq_ioctl_unsubscribe_port()
1937 struct snd_seq_client_port *sport = NULL; in snd_seq_ioctl_get_subscription() local
1943 sport = snd_seq_port_use_ptr(sender, subs->sender.port); in snd_seq_ioctl_get_subscription()
1944 if (!sport) in snd_seq_ioctl_get_subscription()
1946 result = snd_seq_port_get_subscription(&sport->c_src, &subs->dest, in snd_seq_ioctl_get_subscription()
1949 if (sport) in snd_seq_ioctl_get_subscription()
1950 snd_seq_port_unlock(sport); in snd_seq_ioctl_get_subscription()