Lines Matching refs:ipi_ep_mtx
176 struct mtx ipi_ep_mtx;
179 krwlock_t ipi_ep_mtx;
418 mtx_init(&sctppcbinfo.ipi_ep_mtx, "sctp", "inp_info", MTX_DEF)
422 if (mtx_owned(&sctppcbinfo.ipi_ep_mtx)) \
424 mtx_lock(&sctppcbinfo.ipi_ep_mtx); \
428 if (mtx_owned(&sctppcbinfo.ipi_ep_mtx)) \
430 mtx_lock(&sctppcbinfo.ipi_ep_mtx); \
440 #define SCTP_INP_INFO_RUNLOCK() mtx_unlock(&sctppcbinfo.ipi_ep_mtx)
441 #define SCTP_INP_INFO_WUNLOCK() mtx_unlock(&sctppcbinfo.ipi_ep_mtx)
539 rw_init(&sctppcbinfo.ipi_ep_mtx)
542 rw_enter(&sctppcbinfo.ipi_ep_mtx, RW_READER); \
546 rw_enter(&sctppcbinfo.ipi_ep_mtx, RW_WRITER); \
549 #define SCTP_INP_INFO_RUNLOCK() rw_exit(&sctppcbinfo.ipi_ep_mtx)
550 #define SCTP_INP_INFO_WUNLOCK() rw_exit(&sctppcbinfo.ipi_ep_mtx)