Lines Matching refs:bp
110 void sctp_bind_addr_init(struct sctp_bind_addr *bp, __u16 port) in sctp_bind_addr_init() argument
112 bp->malloced = 0; in sctp_bind_addr_init()
114 INIT_LIST_HEAD(&bp->address_list); in sctp_bind_addr_init()
115 bp->port = port; in sctp_bind_addr_init()
119 static void sctp_bind_addr_clean(struct sctp_bind_addr *bp) in sctp_bind_addr_clean() argument
125 list_for_each_safe(pos, temp, &bp->address_list) { in sctp_bind_addr_clean()
134 void sctp_bind_addr_free(struct sctp_bind_addr *bp) in sctp_bind_addr_free() argument
137 sctp_bind_addr_clean(bp); in sctp_bind_addr_free()
139 if (bp->malloced) { in sctp_bind_addr_free()
140 kfree(bp); in sctp_bind_addr_free()
146 int sctp_add_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *new, in sctp_add_bind_addr() argument
162 addr->a.v4.sin_port = bp->port; in sctp_add_bind_addr()
165 list_add_tail(&addr->list, &bp->address_list); in sctp_add_bind_addr()
174 int sctp_del_bind_addr(struct sctp_bind_addr *bp, union sctp_addr *del_addr) in sctp_del_bind_addr() argument
179 list_for_each_safe(pos, temp, &bp->address_list) { in sctp_del_bind_addr()
199 union sctp_params sctp_bind_addrs_to_raw(const struct sctp_bind_addr *bp, in sctp_bind_addrs_to_raw() argument
215 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
233 list_for_each(pos, &bp->address_list) { in sctp_bind_addrs_to_raw()
251 int sctp_raw_to_bind_addrs(struct sctp_bind_addr *bp, __u8 *raw_addr_list, in sctp_raw_to_bind_addrs() argument
269 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
274 retval = sctp_add_bind_addr(bp, &addr, gfp); in sctp_raw_to_bind_addrs()
277 sctp_bind_addr_clean(bp); in sctp_raw_to_bind_addrs()
294 int sctp_bind_addr_match(struct sctp_bind_addr *bp, in sctp_bind_addr_match() argument
301 list_for_each(pos, &bp->address_list) { in sctp_bind_addr_match()
313 union sctp_addr *sctp_find_unmatch_addr(struct sctp_bind_addr *bp, in sctp_find_unmatch_addr() argument
325 list_for_each(pos, &bp->address_list) { in sctp_find_unmatch_addr()