Lines Matching refs:SCTP_BASE_INFO

85 	spcb->ep_count = SCTP_BASE_INFO(ipi_count_ep);  in sctp_fill_pcbinfo()
86 spcb->asoc_count = SCTP_BASE_INFO(ipi_count_asoc); in sctp_fill_pcbinfo()
87 spcb->laddr_count = SCTP_BASE_INFO(ipi_count_laddr); in sctp_fill_pcbinfo()
88 spcb->raddr_count = SCTP_BASE_INFO(ipi_count_raddr); in sctp_fill_pcbinfo()
89 spcb->chk_count = SCTP_BASE_INFO(ipi_count_chunk); in sctp_fill_pcbinfo()
90 spcb->readq_count = SCTP_BASE_INFO(ipi_count_readq); in sctp_fill_pcbinfo()
91 spcb->stream_oque = SCTP_BASE_INFO(ipi_count_strmoq); in sctp_fill_pcbinfo()
92 spcb->free_chunks = SCTP_BASE_INFO(ipi_free_chunks); in sctp_fill_pcbinfo()
183 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))]; in sctp_allocate_vrf()
185 atomic_add_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1); in sctp_allocate_vrf()
197 hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; in sctp_find_ifn()
213 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))]; in sctp_find_vrf()
233 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1); in sctp_free_vrf()
246 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ifns), 1); in sctp_free_ifn()
259 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ifas), 1); in sctp_free_ifa()
431 hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; in sctp_add_addr_to_vrf()
435 atomic_add_int(&SCTP_BASE_INFO(ipi_count_ifns), 1); in sctp_add_addr_to_vrf()
574 atomic_add_int(&SCTP_BASE_INFO(ipi_count_ifas), 1); in sctp_add_addr_to_vrf()
588 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_add_addr_to_vrf()
606 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_add_addr_to_vrf()
678 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_del_addr_from_vrf()
700 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_del_addr_from_vrf()
927 …ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hash… in sctp_tcb_special_locate()
1681 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, in sctp_isport_inuse()
1682 SCTP_BASE_INFO(hashmark))]; in sctp_isport_inuse()
1740 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(inp->sctp_lport, in sctp_swap_inpcb_for_listen()
1741 SCTP_BASE_INFO(hashmark))]; in sctp_swap_inpcb_for_listen()
1758 …head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR(tinp->sctp_lport, SCTP_BASE_INFO(hasht… in sctp_swap_inpcb_for_listen()
1767 …head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(inp->sctp_lport, SCTP_BASE_INFO(hashmark)… in sctp_swap_inpcb_for_listen()
1816 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, in sctp_pcb_findep()
1817 SCTP_BASE_INFO(hashmark))]; in sctp_pcb_findep()
1831 for (i = 0; i < SCTP_BASE_INFO(hashtcpmark) + 1; i++) { in sctp_pcb_findep()
1832 head = &SCTP_BASE_INFO(sctp_tcpephash)[i]; in sctp_pcb_findep()
2011 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(vtag, in sctp_findassoc_by_vtag()
2012 SCTP_BASE_INFO(hashasocmark))]; in sctp_findassoc_by_vtag()
2283 inp = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_ep), struct sctp_inpcb); in sctp_inpcb_alloc()
2328 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2360 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2380 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2395 LIST_INSERT_HEAD(&SCTP_BASE_INFO(listhead), inp, sctp_list); in sctp_inpcb_alloc()
2553 …head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hashtc… in sctp_move_pcb_and_assoc()
2587 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_move_pcb_and_assoc()
2671 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_insert_laddr()
2699 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), laddr); in sctp_remove_laddr()
3090 head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR(lport, SCTP_BASE_INFO(hashtcpmark))]; in sctp_inpcb_bind_locked()
3093 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, SCTP_BASE_INFO(hashmark))]; in sctp_inpcb_bind_locked()
3551 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_inpcb_free()
3567 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_free()
3729 net = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_net), struct sctp_nets); in sctp_add_remote_addr()
4078 if (SCTP_BASE_INFO(ipi_count_asoc) >= SCTP_MAX_NUM_OF_ASOC) { in sctp_aloc_assoc_locked()
4197 stcb = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_asoc), struct sctp_tcb); in sctp_aloc_assoc_locked()
4217 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_aloc_assoc_locked()
4226 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_aloc_assoc_locked()
4249 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_aloc_assoc_locked()
4437 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_is_in_timewait()
4474 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_add_vtag_to_timewait()
4543 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_clean_up_stream()
4855 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4857 atomic_subtract_int(&SCTP_BASE_INFO(ipi_free_chunks), 1); in sctp_free_assoc()
4888 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4918 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4939 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4953 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4982 if (SCTP_BASE_INFO(ipi_count_raddr) == 0) { in sctp_free_assoc()
5006 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asconf_ack), aack); in sctp_free_assoc()
5039 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_free_assoc()
5045 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_free_assoc()
5604 LIST_INIT(&SCTP_BASE_INFO(listhead)); in sctp_pcb_init()
5613 SCTP_BASE_INFO(sctp_asochash) = SCTP_HASH_INIT((SCTP_BASE_SYSCTL(sctp_hashtblsize) * 31), in sctp_pcb_init()
5614 &SCTP_BASE_INFO(hashasocmark)); in sctp_pcb_init()
5615 SCTP_BASE_INFO(sctp_ephash) = SCTP_HASH_INIT(SCTP_BASE_SYSCTL(sctp_hashtblsize), in sctp_pcb_init()
5616 &SCTP_BASE_INFO(hashmark)); in sctp_pcb_init()
5617 SCTP_BASE_INFO(sctp_tcpephash) = SCTP_HASH_INIT(SCTP_BASE_SYSCTL(sctp_hashtblsize), in sctp_pcb_init()
5618 &SCTP_BASE_INFO(hashtcpmark)); in sctp_pcb_init()
5619 SCTP_BASE_INFO(hashtblsize) = SCTP_BASE_SYSCTL(sctp_hashtblsize); in sctp_pcb_init()
5620 SCTP_BASE_INFO(sctp_vrfhash) = SCTP_HASH_INIT(SCTP_SIZE_OF_VRF_HASH, in sctp_pcb_init()
5621 &SCTP_BASE_INFO(hashvrfmark)); in sctp_pcb_init()
5623 SCTP_BASE_INFO(vrf_ifn_hash) = SCTP_HASH_INIT(SCTP_VRF_IFN_HASH_SIZE, in sctp_pcb_init()
5624 &SCTP_BASE_INFO(vrf_ifn_hashmark)); in sctp_pcb_init()
5630 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_ep), "sctp_ep", in sctp_pcb_init()
5633 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asoc), "sctp_asoc", in sctp_pcb_init()
5636 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_laddr), "sctp_laddr", in sctp_pcb_init()
5640 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_net), "sctp_raddr", in sctp_pcb_init()
5644 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_chunk), "sctp_chunk", in sctp_pcb_init()
5648 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_readq), "sctp_readq", in sctp_pcb_init()
5652 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_strmoq), "sctp_stream_msg_out", in sctp_pcb_init()
5656 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asconf), "sctp_asconf", in sctp_pcb_init()
5660 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asconf_ack), "sctp_asconf_ack", in sctp_pcb_init()
5673 LIST_INIT(&SCTP_BASE_INFO(addr_wq)); in sctp_pcb_init()
5677 SCTP_BASE_INFO(ipi_count_ep) = 0; in sctp_pcb_init()
5679 SCTP_BASE_INFO(ipi_count_asoc) = 0; in sctp_pcb_init()
5681 SCTP_BASE_INFO(ipi_count_laddr) = 0; in sctp_pcb_init()
5683 SCTP_BASE_INFO(ipi_count_raddr) = 0; in sctp_pcb_init()
5685 SCTP_BASE_INFO(ipi_count_chunk) = 0; in sctp_pcb_init()
5688 SCTP_BASE_INFO(ipi_count_readq) = 0; in sctp_pcb_init()
5691 SCTP_BASE_INFO(ipi_count_strmoq) = 0; in sctp_pcb_init()
5693 SCTP_BASE_INFO(ipi_free_strmoq) = 0; in sctp_pcb_init()
5694 SCTP_BASE_INFO(ipi_free_chunks) = 0; in sctp_pcb_init()
5696 SCTP_OS_TIMER_INIT(&SCTP_BASE_INFO(addr_wq_timer.timer)); in sctp_pcb_init()
5700 LIST_INIT(&SCTP_BASE_INFO(vtag_timewait)[i]); in sctp_pcb_init()
5775 SCTP_OS_TIMER_STOP_DRAIN(&SCTP_BASE_INFO(addr_wq_timer.timer)); in sctp_pcb_finish()
5777 LIST_FOREACH_SAFE(wi, &SCTP_BASE_INFO(addr_wq), sctp_nxt_addr, nwi) { in sctp_pcb_finish()
5783 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), wi); in sctp_pcb_finish()
5792 vrf_bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(SCTP_DEFAULT_VRFID & SCTP_BASE_INFO(hashvrfmark))]; in sctp_pcb_finish()
5813 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_vrfhash), SCTP_BASE_INFO(hashvrfmark)); in sctp_pcb_finish()
5814 SCTP_HASH_FREE(SCTP_BASE_INFO(vrf_ifn_hash), SCTP_BASE_INFO(vrf_ifn_hashmark)); in sctp_pcb_finish()
5821 chain = &SCTP_BASE_INFO(vtag_timewait)[i]; in sctp_pcb_finish()
5845 if (SCTP_BASE_INFO(sctp_asochash) != NULL) in sctp_pcb_finish()
5846 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_asochash), SCTP_BASE_INFO(hashasocmark)); in sctp_pcb_finish()
5847 if (SCTP_BASE_INFO(sctp_ephash) != NULL) in sctp_pcb_finish()
5848 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_ephash), SCTP_BASE_INFO(hashmark)); in sctp_pcb_finish()
5849 if (SCTP_BASE_INFO(sctp_tcpephash) != NULL) in sctp_pcb_finish()
5850 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_tcpephash), SCTP_BASE_INFO(hashtcpmark)); in sctp_pcb_finish()
5852 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_ep)); in sctp_pcb_finish()
5853 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asoc)); in sctp_pcb_finish()
5854 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_laddr)); in sctp_pcb_finish()
5855 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_net)); in sctp_pcb_finish()
5856 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_chunk)); in sctp_pcb_finish()
5857 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_readq)); in sctp_pcb_finish()
5858 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_strmoq)); in sctp_pcb_finish()
5859 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf)); in sctp_pcb_finish()
5860 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf_ack)); in sctp_pcb_finish()
6610 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(tag, SCTP_BASE_INFO(hashasocmark))]; in sctp_is_vtag_good()
6868 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_drain()
6950 it->inp = LIST_FIRST(&SCTP_BASE_INFO(listhead)); in sctp_initiate_iterator()