Searched refs:SCTP_BASE_INFO (Results 1 – 8 of 8) sorted by relevance
/freebsd/sys/netinet/ |
H A D | sctp_lock_bsd.h | 81 rw_init(&SCTP_BASE_INFO(ipi_ep_mtx), "sctp-info"); \ 85 if (rw_wowned(&SCTP_BASE_INFO(ipi_ep_mtx))) { \ 86 rw_wunlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 88 rw_destroy(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 92 rw_rlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 96 rw_wlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 100 rw_runlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 104 rw_wunlock(&SCTP_BASE_INFO(ipi_ep_mtx)); \ 108 rw_assert(&SCTP_BASE_INFO(ipi_ep_mtx), RA_LOCKED); \ 112 rw_assert(&SCTP_BASE_INFO(ipi_ep_mtx), RA_RLOCKED); \ [all …]
|
H A D | sctp_pcb.c | 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() [all …]
|
H A D | sctp_var.h | 102 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), (_readq)); \ 107 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_readq), (_readq)); \ 113 (_readq) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_readq), struct sctp_queued_to_read); \ 124 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_strmoq), (_strmoq)); \ 129 (_strmoq) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_strmoq), struct sctp_stream_queue_pending); \ 149 (SCTP_BASE_INFO(ipi_free_chunks) > SCTP_BASE_SYSCTL(sctp_system_free_resc_limit))) { \ 150 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), (_chk)); \ 155 atomic_add_int(&SCTP_BASE_INFO(ipi_free_chunks), 1); \ 158 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), (_chk)); \ 165 (_chk) = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_chunk), struct sctp_tmit_chunk); \ [all …]
|
H A D | sctputil.c | 374 sctp_clog.x.lock.info_lock = rw_wowned(&SCTP_BASE_INFO(ipi_ep_mtx)); in sctp_log_lock() 1655 LIST_FOREACH_SAFE(wi, &SCTP_BASE_INFO(addr_wq), sctp_nxt_addr, nwi) { in sctp_handle_addr_wq() 1684 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_handle_addr_wq() 2508 tmr = &SCTP_BASE_INFO(addr_wq_timer); in sctp_timer_start() 2811 tmr = &SCTP_BASE_INFO(addr_wq_timer); in sctp_timer_stop() 6513 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_dynamic_set_primary() 6532 LIST_INSERT_HEAD(&SCTP_BASE_INFO(addr_wq), wi, sctp_nxt_addr); in sctp_dynamic_set_primary() 7471 if (SCTP_BASE_INFO(udp4_tun_socket) != NULL) { in sctp_over_udp_stop() 7472 soclose(SCTP_BASE_INFO(udp4_tun_socket)); in sctp_over_udp_stop() 7473 SCTP_BASE_INFO(udp4_tun_socket) = NULL; in sctp_over_udp_stop() [all …]
|
H A D | sctp_os_bsd.h | 141 #define SCTP_BASE_INFO(__m) V_system_base_info.sctppcbinfo.__m macro
|
H A D | sctp_input.c | 697 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_handle_nat_colliding_state() 717 …head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, SCTP_BASE_INFO(hashaso… in sctp_handle_nat_colliding_state() 1846 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_process_cookie_existing() 1861 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_chunk), chk); in sctp_process_cookie_existing() 1873 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asconf_ack), aack); in sctp_process_cookie_existing() 1884 head = &SCTP_BASE_INFO(sctp_asochash)[SCTP_PCBHASH_ASOC(stcb->asoc.my_vtag, in sctp_process_cookie_existing() 1885 SCTP_BASE_INFO(hashasocmark))]; in sctp_process_cookie_existing()
|
H A D | sctp_sysctl.c | 395 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_sysctl_handle_assoclist() 426 LIST_FOREACH(inp, &SCTP_BASE_INFO(listhead), sctp_list) { in sctp_sysctl_handle_assoclist()
|
H A D | sctp_asconf.c | 664 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_asconf_ack), ack); in sctp_handle_asconf() 806 ack = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_asconf_ack), in sctp_handle_asconf() 2274 SCTP_ZONE_FREE(SCTP_BASE_INFO(ipi_zone_laddr), l); in sctp_asconf_iterator_end() 3234 wi = SCTP_ZONE_GET(SCTP_BASE_INFO(ipi_zone_laddr), struct sctp_laddr); in sctp_addr_mgmt_ep_sa()
|