Lines Matching refs:tf

238 	sctp_tf_t		*tf;  in sctp_conn_match()  local
244 tf = &(sctps->sctps_conn_fanout[SCTP_CONN_HASH(sctps, ports)]); in sctp_conn_match()
245 mutex_enter(&tf->tf_lock); in sctp_conn_match()
247 for (sctp = tf->tf_sctp; sctp != NULL; sctp = in sctp_conn_match()
268 mutex_exit(&tf->tf_lock); in sctp_conn_match()
278 mutex_exit(&tf->tf_lock); in sctp_conn_match()
287 sctp_tf_t *tf; in listen_match() local
293 tf = &(sctps->sctps_listen_fanout[SCTP_LISTEN_HASH(ntohs(lport))]); in listen_match()
294 mutex_enter(&tf->tf_lock); in listen_match()
296 for (sctp = tf->tf_sctp; sctp; sctp = sctp->sctp_listen_hash_next) { in listen_match()
316 mutex_exit(&tf->tf_lock); in listen_match()
631 sctp_tf_t *tf = sctp->sctp_conn_tfp; in sctp_conn_hash_remove() local
633 if (!tf) { in sctp_conn_hash_remove()
645 mutex_enter(&tf->tf_lock); in sctp_conn_hash_remove()
646 ASSERT(tf->tf_sctp); in sctp_conn_hash_remove()
647 if (tf->tf_sctp == sctp) { in sctp_conn_hash_remove()
648 tf->tf_sctp = sctp->sctp_conn_hash_next; in sctp_conn_hash_remove()
650 ASSERT(tf->tf_sctp->sctp_conn_hash_prev == sctp); in sctp_conn_hash_remove()
651 tf->tf_sctp->sctp_conn_hash_prev = NULL; in sctp_conn_hash_remove()
669 mutex_exit(&tf->tf_lock); in sctp_conn_hash_remove()
673 sctp_conn_hash_insert(sctp_tf_t *tf, sctp_t *sctp, int caller_holds_lock) in sctp_conn_hash_insert() argument
680 mutex_enter(&tf->tf_lock); in sctp_conn_hash_insert()
682 ASSERT(MUTEX_HELD(&tf->tf_lock)); in sctp_conn_hash_insert()
685 sctp->sctp_conn_hash_next = tf->tf_sctp; in sctp_conn_hash_insert()
686 if (tf->tf_sctp) { in sctp_conn_hash_insert()
687 tf->tf_sctp->sctp_conn_hash_prev = sctp; in sctp_conn_hash_insert()
690 tf->tf_sctp = sctp; in sctp_conn_hash_insert()
691 sctp->sctp_conn_tfp = tf; in sctp_conn_hash_insert()
693 mutex_exit(&tf->tf_lock); in sctp_conn_hash_insert()
700 sctp_tf_t *tf = sctp->sctp_listen_tfp; in sctp_listen_hash_remove() local
703 if (!tf) { in sctp_listen_hash_remove()
722 mutex_enter(&tf->tf_lock); in sctp_listen_hash_remove()
723 ASSERT(tf->tf_sctp); in sctp_listen_hash_remove()
724 if (tf->tf_sctp == sctp) { in sctp_listen_hash_remove()
725 tf->tf_sctp = sctp->sctp_listen_hash_next; in sctp_listen_hash_remove()
727 ASSERT(tf->tf_sctp->sctp_listen_hash_prev == sctp); in sctp_listen_hash_remove()
728 tf->tf_sctp->sctp_listen_hash_prev = NULL; in sctp_listen_hash_remove()
751 mutex_exit(&tf->tf_lock); in sctp_listen_hash_remove()
755 sctp_listen_hash_insert(sctp_tf_t *tf, sctp_t *sctp) in sctp_listen_hash_insert() argument
763 mutex_enter(&tf->tf_lock); in sctp_listen_hash_insert()
764 sctp->sctp_listen_hash_next = tf->tf_sctp; in sctp_listen_hash_insert()
765 if (tf->tf_sctp) { in sctp_listen_hash_insert()
766 tf->tf_sctp->sctp_listen_hash_prev = sctp; in sctp_listen_hash_insert()
769 tf->tf_sctp = sctp; in sctp_listen_hash_insert()
770 sctp->sctp_listen_tfp = tf; in sctp_listen_hash_insert()
771 mutex_exit(&tf->tf_lock); in sctp_listen_hash_insert()
864 sctp_lookup(sctp_t *sctp1, in6_addr_t *faddr, sctp_tf_t *tf, uint32_t *ports, in sctp_lookup() argument
870 ASSERT(MUTEX_HELD(&tf->tf_lock)); in sctp_lookup()
872 for (sctp = tf->tf_sctp; sctp != NULL; in sctp_lookup()