Lines Matching refs:bp
125 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
127 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
128 bp->port = port; in sctp_bind_addr_init()
132 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
137 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_bind_addr_clean()
145 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
148 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
152 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
168 addr->a.v4.sin_port = htons(bp->port); in sctp_add_bind_addr()
178 list_add_tail_rcu(&addr->list, &bp->address_list); in sctp_add_bind_addr()
187 int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) in sctp_del_bind_addr() argument
195 list_for_each_entry_safe(addr, temp, &bp->address_list, list) { in sctp_del_bind_addr()
219 union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, in sctp_bind_addrs_to_raw() argument
236 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
254 list_for_each_entry(addr, &bp->address_list, list) { in sctp_bind_addrs_to_raw()
271 int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, in sctp_raw_to_bind_addrs() argument
289 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
294 retval = sctp_add_bind_addr(bp, &addr, SCTP_ADDR_SRC, gfp); in sctp_raw_to_bind_addrs()
297 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
314 int sctp_bind_addr_match(struct sctp_bind_addr *bp, in sctp_bind_addr_match() argument
322 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_match()
338 int sctp_bind_addr_conflict(struct sctp_bind_addr *bp, in sctp_bind_addr_conflict() argument
359 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_conflict()
373 int sctp_bind_addr_state(const struct sctp_bind_addr *bp, in sctp_bind_addr_state() argument
385 list_for_each_entry_rcu(laddr, &bp->address_list, list) { in sctp_bind_addr_state()
401 union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, in sctp_find_unmatch_addr() argument
416 list_for_each_entry(laddr, &bp->address_list, list) { in sctp_find_unmatch_addr()
525 struct sctp_bind_addr *bp; in sctp_is_ep_boundall() local
528 bp = &sctp_sk(sk)->ep->base.bind_addr; in sctp_is_ep_boundall()
529 if (sctp_list_single_entry(&bp->address_list)) { in sctp_is_ep_boundall()
530 addr = list_entry(bp->address_list.next, in sctp_is_ep_boundall()