Lines Matching refs:tcp_cache
107 struct tcp_cache { struct
108 SLIST_ENTRY(tcp_cache) list;
123 SLIST_HEAD(tcp_cache_bucket, tcp_cache) tcp_caches; argument
146 static struct tcp_cache_head *tcp_cache; variable
328 static struct tcp_cache *
332 struct tcp_cache *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_NOWAIT | Z_ZERO); in tcp_getcache_with_lock()
445 struct tcp_cache *tpcache; in tcp_cache_set_cookie_common()
473 struct tcp_cache *tpcache; in tcp_cache_get_cookie_common()
521 struct tcp_cache *tpcache; in tcp_cache_get_cookie_len_common()
559 struct tcp_cache *tpcache; in tcp_cache_get_mptcp_version()
587 struct tcp_cache *tpcache; in tcp_cache_update_mptcp_version()
1529 struct tcp_cache_head *head = &tcp_cache[i]; in sysctl_cleartfocache()
1530 struct tcp_cache *tpcache, *tmp; in sysctl_cleartfocache()
1536 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1537 kfree_type(struct tcp_cache, tpcache); in sysctl_cleartfocache()
1607 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * tcp_cache_size, in tcp_cache_init()
1614 lck_mtx_init(&tcp_cache[i].tch_mtx, &tcp_cache_mtx_grp, in tcp_cache_init()
1616 SLIST_INIT(&tcp_cache[i].tcp_caches); in tcp_cache_init()