Lines Matching refs:base
114 ep->base.type = SCTP_EP_TYPE_SOCKET; in sctp_endpoint_init()
117 atomic_set(&ep->base.refcnt, 1); in sctp_endpoint_init()
118 ep->base.dead = false; in sctp_endpoint_init()
121 sctp_inq_init(&ep->base.inqueue); in sctp_endpoint_init()
124 sctp_inq_set_th_handler(&ep->base.inqueue, sctp_endpoint_bh_rcv); in sctp_endpoint_init()
127 sctp_bind_addr_init(&ep->base.bind_addr, 0); in sctp_endpoint_init()
130 ep->base.sk = sk; in sctp_endpoint_init()
131 sock_hold(ep->base.sk); in sctp_endpoint_init()
209 struct sock *sk = ep->base.sk; in sctp_endpoint_add_asoc()
231 ep->base.dead = true; in sctp_endpoint_free()
233 ep->base.sk->sk_state = SCTP_SS_CLOSED; in sctp_endpoint_free()
246 if (unlikely(!ep->base.dead)) { in sctp_endpoint_destroy()
265 sctp_inq_free(&ep->base.inqueue); in sctp_endpoint_destroy()
266 sctp_bind_addr_free(&ep->base.bind_addr); in sctp_endpoint_destroy()
271 sk = ep->base.sk; in sctp_endpoint_destroy()
287 atomic_inc(&ep->base.refcnt); in sctp_endpoint_hold()
295 if (atomic_dec_and_test(&ep->base.refcnt)) in sctp_endpoint_put()
306 if ((htons(ep->base.bind_addr.port) == laddr->v4.sin_port) && in sctp_endpoint_is_match()
307 net_eq(sock_net(ep->base.sk), net)) { in sctp_endpoint_is_match()
308 if (sctp_bind_addr_match(&ep->base.bind_addr, laddr, in sctp_endpoint_is_match()
309 sctp_sk(ep->base.sk))) in sctp_endpoint_is_match()
338 if (!ep->base.bind_addr.port) in __sctp_endpoint_lookup_assoc()
343 hash = sctp_assoc_hashfn(sock_net(ep->base.sk), ep->base.bind_addr.port, in __sctp_endpoint_lookup_assoc()
387 struct net *net = sock_net(ep->base.sk); in sctp_endpoint_is_peeled_off()
389 bp = &ep->base.bind_addr; in sctp_endpoint_is_peeled_off()
408 base.inqueue.immediate); in sctp_endpoint_bh_rcv()
420 if (ep->base.dead) in sctp_endpoint_bh_rcv()
424 inqueue = &ep->base.inqueue; in sctp_endpoint_bh_rcv()
425 sk = ep->base.sk; in sctp_endpoint_bh_rcv()
478 SCTP_INC_STATS(sock_net(ep->base.sk), SCTP_MIB_INCTRLCHUNKS); in sctp_endpoint_bh_rcv()