Lines Matching refs:epb
566 struct sctp_ep_common *epb; in __sctp_hash_endpoint() local
569 epb = &ep->base; in __sctp_hash_endpoint()
571 epb->hashent = sctp_ep_hashfn(epb->bind_addr.port); in __sctp_hash_endpoint()
572 head = &sctp_ep_hashtable[epb->hashent]; in __sctp_hash_endpoint()
576 epb->next = *epp; in __sctp_hash_endpoint()
577 if (epb->next) in __sctp_hash_endpoint()
578 (*epp)->pprev = &epb->next; in __sctp_hash_endpoint()
579 *epp = epb; in __sctp_hash_endpoint()
580 epb->pprev = epp; in __sctp_hash_endpoint()
596 struct sctp_ep_common *epb; in __sctp_unhash_endpoint() local
598 epb = &ep->base; in __sctp_unhash_endpoint()
600 epb->hashent = sctp_ep_hashfn(epb->bind_addr.port); in __sctp_unhash_endpoint()
602 head = &sctp_ep_hashtable[epb->hashent]; in __sctp_unhash_endpoint()
606 if (epb->pprev) { in __sctp_unhash_endpoint()
607 if (epb->next) in __sctp_unhash_endpoint()
608 epb->next->pprev = epb->pprev; in __sctp_unhash_endpoint()
609 *epb->pprev = epb->next; in __sctp_unhash_endpoint()
610 epb->pprev = NULL; in __sctp_unhash_endpoint()
628 struct sctp_ep_common *epb; in __sctp_rcv_lookup_endpoint() local
635 for (epb = head->chain; epb; epb = epb->next) { in __sctp_rcv_lookup_endpoint()
636 ep = sctp_ep(epb); in __sctp_rcv_lookup_endpoint()
642 epb = &ep->base; in __sctp_rcv_lookup_endpoint()
646 sock_hold(epb->sk); in __sctp_rcv_lookup_endpoint()
655 struct sctp_ep_common *epb; in __sctp_hash_established() local
658 epb = &asoc->base; in __sctp_hash_established()
661 epb->hashent = sctp_assoc_hashfn(epb->bind_addr.port, asoc->peer.port); in __sctp_hash_established()
663 head = &sctp_assoc_hashtable[epb->hashent]; in __sctp_hash_established()
667 epb->next = *epp; in __sctp_hash_established()
668 if (epb->next) in __sctp_hash_established()
669 (*epp)->pprev = &epb->next; in __sctp_hash_established()
670 *epp = epb; in __sctp_hash_established()
671 epb->pprev = epp; in __sctp_hash_established()
687 struct sctp_ep_common *epb; in __sctp_unhash_established() local
689 epb = &asoc->base; in __sctp_unhash_established()
691 epb->hashent = sctp_assoc_hashfn(epb->bind_addr.port, in __sctp_unhash_established()
694 head = &sctp_assoc_hashtable[epb->hashent]; in __sctp_unhash_established()
698 if (epb->pprev) { in __sctp_unhash_established()
699 if (epb->next) in __sctp_unhash_established()
700 epb->next->pprev = epb->pprev; in __sctp_unhash_established()
701 *epb->pprev = epb->next; in __sctp_unhash_established()
702 epb->pprev = NULL; in __sctp_unhash_established()
723 struct sctp_ep_common *epb; in __sctp_lookup_association() local
734 for (epb = head->chain; epb; epb = epb->next) { in __sctp_lookup_association()
735 asoc = sctp_assoc(epb); in __sctp_lookup_association()
748 sock_hold(epb->sk); in __sctp_lookup_association()