Lines Matching refs:tcp_cache
106 struct tcp_cache { struct
107 SLIST_ENTRY(tcp_cache) list;
122 SLIST_HEAD(tcp_cache_bucket, tcp_cache) tcp_caches; argument
146 static struct tcp_cache_head *__counted_by(tcp_cache_size) tcp_cache;
328 static struct tcp_cache *
332 struct tcp_cache *__single tpcache = NULL; in tcp_getcache_with_lock()
339 head = &tcp_cache[hash]; in tcp_getcache_with_lock()
355 struct tcp_cache *oldest_cache = NULL; in tcp_getcache_with_lock()
374 tpcache = kalloc_type(struct tcp_cache, Z_NOPAGEWAIT | Z_ZERO); in tcp_getcache_with_lock()
445 struct tcp_cache *__single tpcache; in tcp_cache_set_cookie_common()
475 struct tcp_cache *__single tpcache; in tcp_cache_get_cookie_common()
524 struct tcp_cache *__single tpcache; in tcp_cache_get_cookie_len_common()
562 struct tcp_cache *__single tpcache; in tcp_cache_get_mptcp_version()
590 struct tcp_cache *__single tpcache; in tcp_cache_update_mptcp_version()
1584 struct tcp_cache_head *__single head = &tcp_cache[i]; in sysctl_cleartfocache()
1585 struct tcp_cache *__single tpcache, *__single tmp; in sysctl_cleartfocache()
1591 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1592 kfree_type(struct tcp_cache, tpcache); in sysctl_cleartfocache()
1662 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * cache_size, in tcp_cache_init()
1670 lck_mtx_init(&tcp_cache[i].tch_mtx, &tcp_cache_mtx_grp, in tcp_cache_init()
1672 SLIST_INIT(&tcp_cache[i].tcp_caches); in tcp_cache_init()