Lines Matching refs:bp
111 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
113 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
114 bp->port = port; in sctp_bind_addr_init()
118 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
123 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
131 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
134 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
138 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
154 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
164 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
173 int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) in sctp_del_bind_addr() argument
181 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_del_bind_addr()
205 union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, in sctp_bind_addrs_to_raw() argument
222 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
240 list_for_each_entry(addr, &bp->address_list, list) { in sctp_bind_addrs_to_raw()
257 int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, in sctp_raw_to_bind_addrs() argument
275 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
280 if (sctp_bind_addr_state(bp, &addr) != -1) in sctp_raw_to_bind_addrs()
282 retval = sctp_add_bind_addr(bp, &addr, sizeof(addr), in sctp_raw_to_bind_addrs()
286 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
304 int sctp_bind_addr_match(struct sctp_bind_addr *bp, in sctp_bind_addr_match() argument
312 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_match()
329 struct sctp_bind_addr *bp = &sp->ep->base.bind_addr; in sctp_bind_addrs_check() local
335 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addrs_check()
356 int sctp_bind_addr_conflict(struct sctp_bind_addr *bp, in sctp_bind_addr_conflict() argument
377 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_conflict()
391 int sctp_bind_addr_state(const struct sctp_bind_addr *bp, in sctp_bind_addr_state() argument
401 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_state()
414 union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, in sctp_find_unmatch_addr() argument
429 list_for_each_entry(laddr, &bp->address_list, list) { in sctp_find_unmatch_addr()
538 struct sctp_bind_addr *bp; in sctp_is_ep_boundall() local
541 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_is_ep_boundall()
542 if (sctp_list_single_entry(&bp->address_list)) { in sctp_is_ep_boundall()
543 addr = list_entry(bp->address_list.next, in sctp_is_ep_boundall()