Lines Matching refs:SCTP_BASE_INFO
91 spcb->ep_count = SCTP_BASE_INFO(ipi_count_ep); in sctp_fill_pcbinfo()
92 spcb->asoc_count = SCTP_BASE_INFO(ipi_count_asoc); in sctp_fill_pcbinfo()
93 spcb->laddr_count = SCTP_BASE_INFO(ipi_count_laddr); in sctp_fill_pcbinfo()
94 spcb->raddr_count = SCTP_BASE_INFO(ipi_count_raddr); in sctp_fill_pcbinfo()
95 spcb->chk_count = SCTP_BASE_INFO(ipi_count_chunk); in sctp_fill_pcbinfo()
96 spcb->readq_count = SCTP_BASE_INFO(ipi_count_readq); in sctp_fill_pcbinfo()
97 spcb->stream_oque = SCTP_BASE_INFO(ipi_count_strmoq); in sctp_fill_pcbinfo()
98 spcb->free_chunks = SCTP_BASE_INFO(ipi_free_chunks); in sctp_fill_pcbinfo()
188 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))]; in sctp_allocate_vrf()
190 atomic_add_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1); in sctp_allocate_vrf()
205 hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; in sctp_find_ifn()
224 bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(vrf_id & SCTP_BASE_INFO(hashvrfmark))]; in sctp_find_vrf()
245 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_vrfs), 1); in sctp_free_vrf()
259 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ifns), 1); in sctp_free_ifn()
285 atomic_subtract_int(&SCTP_BASE_INFO(ipi_count_ifas), 1); in sctp_free_ifa()
550 hash_ifn_head = &SCTP_BASE_INFO(vrf_ifn_hash)[(ifn_index & SCTP_BASE_INFO(vrf_ifn_hashmark))]; in sctp_add_addr_to_vrf()
555 atomic_add_int(&SCTP_BASE_INFO(ipi_count_ifns), 1); in sctp_add_addr_to_vrf()
679 atomic_add_int(&SCTP_BASE_INFO(ipi_count_ifas), 1); in sctp_add_addr_to_vrf()
693 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_add_addr_to_vrf()
712 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_add_addr_to_vrf()
802 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_del_addr_from_vrf()
824 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_del_addr_from_vrf()
1056 …ephead = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hash… in sctp_tcb_special_locate()
1823 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, in sctp_isport_inuse()
1824 SCTP_BASE_INFO(hashmark))]; in sctp_isport_inuse()
1881 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(inp->sctp_lport, in sctp_swap_inpcb_for_listen()
1882 SCTP_BASE_INFO(hashmark))]; in sctp_swap_inpcb_for_listen()
1899 …head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR(tinp->sctp_lport, SCTP_BASE_INFO(hasht… in sctp_swap_inpcb_for_listen()
1908 …head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(inp->sctp_lport, SCTP_BASE_INFO(hashmark)… in sctp_swap_inpcb_for_listen()
1964 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, in sctp_pcb_findep()
1965 SCTP_BASE_INFO(hashmark))]; in sctp_pcb_findep()
1979 for (i = 0; i < SCTP_BASE_INFO(hashtcpmark) + 1; i++) { in sctp_pcb_findep()
1980 head = &SCTP_BASE_INFO(sctp_tcpephash)[i]; in sctp_pcb_findep()
2166 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(vtag, in sctp_findassoc_by_vtag()
2167 SCTP_BASE_INFO(hashasocmark))]; in sctp_findassoc_by_vtag()
2451 inp = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_ep), struct sctp_inpcb); in sctp_inpcb_alloc()
2493 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2501 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2535 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2558 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_alloc()
2572 LIST_INSERT_HEAD(&SCTP_BASE_INFO(listhead), inp, sctp_list); in sctp_inpcb_alloc()
2713 …head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR((lport | rport), SCTP_BASE_INFO(hashtc… in sctp_move_pcb_and_assoc()
2747 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_move_pcb_and_assoc()
3197 head = &SCTP_BASE_INFO(sctp_tcpephash)[SCTP_PCBHASH_ALLADDR(lport, SCTP_BASE_INFO(hashtcpmark))]; in sctp_inpcb_bind()
3200 head = &SCTP_BASE_INFO(sctp_ephash)[SCTP_PCBHASH_ALLADDR(lport, SCTP_BASE_INFO(hashmark))]; in sctp_inpcb_bind()
3633 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), sq); in sctp_inpcb_free()
3683 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), asoc); in sctp_inpcb_free()
3699 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_ep), inp); in sctp_inpcb_free()
3863 net = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_net), struct sctp_nets); in sctp_add_remote_addr()
4180 if (SCTP_BASE_INFO(ipi_count_asoc) >= SCTP_MAX_NUM_OF_ASOC) { in sctp_aloc_assoc()
4303 stcb = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_asoc), struct sctp_tcb); in sctp_aloc_assoc()
4327 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_aloc_assoc()
4340 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_aloc_assoc()
4351 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_aloc_assoc()
4375 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_aloc_assoc()
4506 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_delete_from_timewait()
4534 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_is_in_timewait()
4565 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_add_vtag_to_timewait()
4959 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), sq); in sctp_free_assoc()
4971 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
4973 atomic_subtract_int(&SCTP_BASE_INFO(ipi_free_chunks), 1); in sctp_free_assoc()
5004 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
5034 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
5055 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
5069 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
5082 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_free_assoc()
5116 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), ctl); in sctp_free_assoc()
5126 if (SCTP_BASE_INFO(ipi_count_raddr) == 0) { in sctp_free_assoc()
5150 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asconf_ack), aack); in sctp_free_assoc()
5184 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_free_assoc()
5190 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asoc), stcb); in sctp_free_assoc()
5528 laddr = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_insert_laddr()
5556 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), laddr); in sctp_remove_laddr()
5801 LIST_INIT(&SCTP_BASE_INFO(listhead)); in sctp_pcb_init()
5808 SCTP_BASE_INFO(sctp_asochash) = SCTP_HASH_INIT((SCTP_BASE_SYSCTL(sctp_hashtblsize) * 31), in sctp_pcb_init()
5809 &SCTP_BASE_INFO(hashasocmark)); in sctp_pcb_init()
5810 SCTP_BASE_INFO(sctp_ephash) = SCTP_HASH_INIT(SCTP_BASE_SYSCTL(sctp_hashtblsize), in sctp_pcb_init()
5811 &SCTP_BASE_INFO(hashmark)); in sctp_pcb_init()
5812 SCTP_BASE_INFO(sctp_tcpephash) = SCTP_HASH_INIT(SCTP_BASE_SYSCTL(sctp_hashtblsize), in sctp_pcb_init()
5813 &SCTP_BASE_INFO(hashtcpmark)); in sctp_pcb_init()
5814 SCTP_BASE_INFO(hashtblsize) = SCTP_BASE_SYSCTL(sctp_hashtblsize); in sctp_pcb_init()
5817 SCTP_BASE_INFO(sctp_vrfhash) = SCTP_HASH_INIT(SCTP_SIZE_OF_VRF_HASH, in sctp_pcb_init()
5818 &SCTP_BASE_INFO(hashvrfmark)); in sctp_pcb_init()
5820 SCTP_BASE_INFO(vrf_ifn_hash) = SCTP_HASH_INIT(SCTP_VRF_IFN_HASH_SIZE, in sctp_pcb_init()
5821 &SCTP_BASE_INFO(vrf_ifn_hashmark)); in sctp_pcb_init()
5827 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_ep), "sctp_ep", in sctp_pcb_init()
5830 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asoc), "sctp_asoc", in sctp_pcb_init()
5833 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_laddr), "sctp_laddr", in sctp_pcb_init()
5837 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_net), "sctp_raddr", in sctp_pcb_init()
5841 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_chunk), "sctp_chunk", in sctp_pcb_init()
5845 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_readq), "sctp_readq", in sctp_pcb_init()
5849 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_strmoq), "sctp_stream_msg_out", in sctp_pcb_init()
5853 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asconf), "sctp_asconf", in sctp_pcb_init()
5857 SCTP_ZONE_INIT(SCTP_BASE_INFO(ipi_zone_asconf_ack), "sctp_asconf_ack", in sctp_pcb_init()
5871 LIST_INIT(&SCTP_BASE_INFO(addr_wq)); in sctp_pcb_init()
5875 SCTP_BASE_INFO(ipi_count_ep) = 0; in sctp_pcb_init()
5877 SCTP_BASE_INFO(ipi_count_asoc) = 0; in sctp_pcb_init()
5879 SCTP_BASE_INFO(ipi_count_laddr) = 0; in sctp_pcb_init()
5881 SCTP_BASE_INFO(ipi_count_raddr) = 0; in sctp_pcb_init()
5883 SCTP_BASE_INFO(ipi_count_chunk) = 0; in sctp_pcb_init()
5886 SCTP_BASE_INFO(ipi_count_readq) = 0; in sctp_pcb_init()
5889 SCTP_BASE_INFO(ipi_count_strmoq) = 0; in sctp_pcb_init()
5891 SCTP_BASE_INFO(ipi_free_strmoq) = 0; in sctp_pcb_init()
5892 SCTP_BASE_INFO(ipi_free_chunks) = 0; in sctp_pcb_init()
5894 SCTP_OS_TIMER_INIT(&SCTP_BASE_INFO(addr_wq_timer.timer)); in sctp_pcb_init()
5898 LIST_INIT(&SCTP_BASE_INFO(vtag_timewait)[i]); in sctp_pcb_init()
5953 SCTP_OS_TIMER_STOP(&SCTP_BASE_INFO(addr_wq_timer.timer)); in sctp_pcb_finish()
5955 LIST_FOREACH_SAFE(wi, &SCTP_BASE_INFO(addr_wq), sctp_nxt_addr, nwi) { in sctp_pcb_finish()
5961 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), wi); in sctp_pcb_finish()
5969 vrf_bucket = &SCTP_BASE_INFO(sctp_vrfhash)[(SCTP_DEFAULT_VRFID & SCTP_BASE_INFO(hashvrfmark))]; in sctp_pcb_finish()
5989 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_vrfhash), SCTP_BASE_INFO(hashvrfmark)); in sctp_pcb_finish()
5990 SCTP_HASH_FREE(SCTP_BASE_INFO(vrf_ifn_hash), SCTP_BASE_INFO(vrf_ifn_hashmark)); in sctp_pcb_finish()
5997 chain = &SCTP_BASE_INFO(vtag_timewait)[i]; in sctp_pcb_finish()
6020 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_ep)); in sctp_pcb_finish()
6021 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asoc)); in sctp_pcb_finish()
6022 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_laddr)); in sctp_pcb_finish()
6023 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_net)); in sctp_pcb_finish()
6024 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_chunk)); in sctp_pcb_finish()
6025 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_readq)); in sctp_pcb_finish()
6026 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_strmoq)); in sctp_pcb_finish()
6027 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf)); in sctp_pcb_finish()
6028 SCTP_ZONE_DESTROY(SCTP_BASE_INFO(ipi_zone_asconf_ack)); in sctp_pcb_finish()
6030 if (SCTP_BASE_INFO(sctp_asochash) != NULL) in sctp_pcb_finish()
6031 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_asochash), SCTP_BASE_INFO(hashasocmark)); in sctp_pcb_finish()
6032 if (SCTP_BASE_INFO(sctp_ephash) != NULL) in sctp_pcb_finish()
6033 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_ephash), SCTP_BASE_INFO(hashmark)); in sctp_pcb_finish()
6034 if (SCTP_BASE_INFO(sctp_tcpephash) != NULL) in sctp_pcb_finish()
6035 SCTP_HASH_FREE(SCTP_BASE_INFO(sctp_tcpephash), SCTP_BASE_INFO(hashtcpmark)); in sctp_pcb_finish()
6759 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(tag, in sctp_is_vtag_good()
6760 SCTP_BASE_INFO(hashasocmark))]; in sctp_is_vtag_good()
6784 chain = &SCTP_BASE_INFO(vtag_timewait)[(tag % SCTP_STACK_VTAG_HASH_SIZE)]; in sctp_is_vtag_good()
6873 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), ctl); in sctp_drain_mbufs()
6955 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_drain()
7028 it->inp = LIST_FIRST(&SCTP_BASE_INFO(listhead)); in sctp_initiate_iterator()