Lines Matching refs:head

313 tcp_cache_unlock(struct tcp_cache_head *head)  in tcp_cache_unlock()  argument
315 lck_mtx_unlock(&head->tch_mtx); in tcp_cache_unlock()
333 struct tcp_cache_head *__single head; in tcp_getcache_with_lock() local
339 head = &tcp_cache[hash]; in tcp_getcache_with_lock()
341 lck_mtx_lock(&head->tch_mtx); in tcp_getcache_with_lock()
344 SLIST_FOREACH(tpcache, &head->tcp_caches, list) { in tcp_getcache_with_lock()
359 SLIST_FOREACH(tpcache, &head->tcp_caches, list) { in tcp_getcache_with_lock()
383 SLIST_INSERT_HEAD(&head->tcp_caches, tpcache, list); in tcp_getcache_with_lock()
395 *headarg = head; in tcp_getcache_with_lock()
400 tcp_cache_unlock(head); in tcp_getcache_with_lock()
444 struct tcp_cache_head *__single head; in tcp_cache_set_cookie_common() local
448 tpcache = tcp_getcache_with_lock(tcks, 1, &head); in tcp_cache_set_cookie_common()
457 tcp_cache_unlock(head); in tcp_cache_set_cookie_common()
474 struct tcp_cache_head *__single head; in tcp_cache_get_cookie_common() local
478 tpcache = tcp_getcache_with_lock(tcks, 1, &head); in tcp_cache_get_cookie_common()
484 tcp_cache_unlock(head); in tcp_cache_get_cookie_common()
497 tcp_cache_unlock(head); in tcp_cache_get_cookie_common()
523 struct tcp_cache_head *__single head; in tcp_cache_get_cookie_len_common() local
528 tpcache = tcp_getcache_with_lock(tcks, 1, &head); in tcp_cache_get_cookie_len_common()
535 tcp_cache_unlock(head); in tcp_cache_get_cookie_len_common()
561 struct tcp_cache_head *__single head; in tcp_cache_get_mptcp_version() local
565 tpcache = tcp_getcache_with_lock(&tcks, 1, &head); in tcp_cache_get_mptcp_version()
579 tcp_cache_unlock(head); in tcp_cache_get_mptcp_version()
589 struct tcp_cache_head *__single head; in tcp_cache_update_mptcp_version() local
609 tpcache = tcp_getcache_with_lock(&tcks, 1, &head); in tcp_cache_update_mptcp_version()
646 tcp_cache_unlock(head); in tcp_cache_update_mptcp_version()
665 tcp_heuristic_unlock(struct tcp_heuristics_head *head) in tcp_heuristic_unlock() argument
667 lck_mtx_unlock(&head->thh_mtx); in tcp_heuristic_unlock()
689 struct tcp_heuristics_head *__single head; in tcp_getheuristic_with_lock() local
695 head = &tcp_heuristics[hash]; in tcp_getheuristic_with_lock()
697 lck_mtx_lock(&head->thh_mtx); in tcp_getheuristic_with_lock()
700 SLIST_FOREACH(tpheur, &head->tcp_heuristics, list) { in tcp_getheuristic_with_lock()
715 SLIST_FOREACH(tpheur, &head->tcp_heuristics, list) { in tcp_getheuristic_with_lock()
739 SLIST_INSERT_HEAD(&head->tcp_heuristics, tpheur, list); in tcp_getheuristic_with_lock()
760 *headarg = head; in tcp_getheuristic_with_lock()
765 tcp_heuristic_unlock(head); in tcp_getheuristic_with_lock()
772 struct tcp_heuristics_head *__single head; in tcp_heuristic_reset_counters() local
779 tpheur = tcp_getheuristic_with_lock(tcks, 1, &head); in tcp_heuristic_reset_counters()
839 tcp_heuristic_unlock(head); in tcp_heuristic_reset_counters()
913 struct tcp_heuristics_head *__single head; in tcp_heuristic_tfo_middlebox_common() local
916 tpheur = tcp_getheuristic_with_lock(tcks, 1, &head); in tcp_heuristic_tfo_middlebox_common()
923 tcp_heuristic_unlock(head); in tcp_heuristic_tfo_middlebox_common()
930 struct tcp_heuristics_head *__single head; in tcp_heuristic_inc_counters() local
933 tpheur = tcp_getheuristic_with_lock(tcks, 1, &head); in tcp_heuristic_inc_counters()
1059 tcp_heuristic_unlock(head); in tcp_heuristic_inc_counters()
1177 struct tcp_heuristics_head *__single head; in tcp_heuristic_ecn_aggressive_common() local
1180 tpheur = tcp_getheuristic_with_lock(tcks, 1, &head); in tcp_heuristic_ecn_aggressive_common()
1187 tcp_heuristic_unlock(head); in tcp_heuristic_ecn_aggressive_common()
1203 tcp_heuristic_unlock(head); in tcp_heuristic_ecn_aggressive_common()
1221 struct tcp_heuristics_head *__single head; in tcp_heuristic_do_tfo_common() local
1229 tpheur = tcp_getheuristic_with_lock(tcks, 0, &head); in tcp_heuristic_do_tfo_common()
1245 tcp_heuristic_unlock(head); in tcp_heuristic_do_tfo_common()
1249 tcp_heuristic_unlock(head); in tcp_heuristic_do_tfo_common()
1275 struct tcp_heuristics_head *__single head = NULL; in tcp_heuristic_do_mptcp() local
1287 tpheur = tcp_getheuristic_with_lock(&tcks, 0, &head); in tcp_heuristic_do_mptcp()
1313 tcp_heuristic_unlock(head); in tcp_heuristic_do_mptcp()
1317 if (head) { in tcp_heuristic_do_mptcp()
1318 tcp_heuristic_unlock(head); in tcp_heuristic_do_mptcp()
1333 struct tcp_heuristics_head *__single head; in tcp_heuristic_do_ecn_common() local
1342 tpheur = tcp_getheuristic_with_lock(tcks, 0, &head); in tcp_heuristic_do_ecn_common()
1365 tcp_heuristic_unlock(head); in tcp_heuristic_do_ecn_common()
1584 struct tcp_cache_head *__single head = &tcp_cache[i]; in sysctl_cleartfocache() local
1589 lck_mtx_lock(&head->tch_mtx); in sysctl_cleartfocache()
1590 SLIST_FOREACH_SAFE(tpcache, &head->tcp_caches, list, tmp) { in sysctl_cleartfocache()
1591 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1594 lck_mtx_unlock(&head->tch_mtx); in sysctl_cleartfocache()