Lines Matching refs:bp

117 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port)  in sctp_bind_addr_init()  argument
119 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
120 bp->port = port; in sctp_bind_addr_init()
124 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
129 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
137 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
140 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
144 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
160 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
170 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
179 int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) in sctp_del_bind_addr() argument
187 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_del_bind_addr()
211 union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, in sctp_bind_addrs_to_raw() argument
228 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
246 list_for_each_entry(addr, &bp->address_list, list) { in sctp_bind_addrs_to_raw()
263 int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, in sctp_raw_to_bind_addrs() argument
285 if (sctp_bind_addr_state(bp, &addr) != -1) in sctp_raw_to_bind_addrs()
287 retval = sctp_add_bind_addr(bp, &addr, sizeof(addr), in sctp_raw_to_bind_addrs()
303 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
313 int sctp_bind_addr_match(struct sctp_bind_addr *bp, in sctp_bind_addr_match() argument
321 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_match()
338 struct sctp_bind_addr *bp = &sp->ep->base.bind_addr; in sctp_bind_addrs_check() local
344 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addrs_check()
365 int sctp_bind_addr_conflict(struct sctp_bind_addr *bp, in sctp_bind_addr_conflict() argument
386 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_conflict()
400 int sctp_bind_addr_state(const struct sctp_bind_addr *bp, in sctp_bind_addr_state() argument
410 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_state()
423 union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, in sctp_find_unmatch_addr() argument
438 list_for_each_entry(laddr, &bp->address_list, list) { in sctp_find_unmatch_addr()
548 struct sctp_bind_addr *bp; in sctp_is_ep_boundall() local
551 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_is_ep_boundall()
552 if (sctp_list_single_entry(&bp->address_list)) { in sctp_is_ep_boundall()
553 addr = list_entry(bp->address_list.next, in sctp_is_ep_boundall()