Lines Matching refs:p
132 struct snd_seq_client_port *new_port, *p; in snd_seq_create_port() local
161 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_create_port()
162 if (p->addr.port > num) in snd_seq_create_port()
165 num = p->addr.port + 1; in snd_seq_create_port()
168 list_add_tail(&new_port->list, &p->list); in snd_seq_create_port()
192 struct snd_seq_client_port *p; in get_client_port() local
195 p = snd_seq_port_use_ptr(*cp, addr->port); in get_client_port()
196 if (! p) { in get_client_port()
200 return p; in get_client_port()
211 get_subscriber(struct list_head *p, bool is_src) in get_subscriber() argument
214 return list_entry(p, struct snd_seq_subscribers, src_list); in get_subscriber()
216 return list_entry(p, struct snd_seq_subscribers, dest_list); in get_subscriber()
228 struct list_head *p, *n; in clear_subscriber_list() local
230 list_for_each_safe(p, n, &grp->list_head) { in clear_subscriber_list()
235 subs = get_subscriber(p, is_src); in clear_subscriber_list()
287 struct snd_seq_client_port *found = NULL, *p; in snd_seq_delete_port() local
291 list_for_each_entry(p, &client->ports_list_head, list) { in snd_seq_delete_port()
292 if (p->addr.port == port) { in snd_seq_delete_port()
294 list_del(&p->list); in snd_seq_delete_port()
296 found = p; in snd_seq_delete_port()
495 struct list_head *p; in check_and_subscribe_port() local
509 list_for_each(p, &grp->list_head) { in check_and_subscribe_port()
510 s = get_subscriber(p, is_src); in check_and_subscribe_port()