Lines Matching refs:tcp_cache

85 struct tcp_cache {  struct
86 SLIST_ENTRY(tcp_cache) list;
101 SLIST_HEAD(tcp_cache_bucket, tcp_cache) tcp_caches; argument
125 static struct tcp_cache_head *__counted_by(tcp_cache_size) tcp_cache;
308 static struct tcp_cache *
312 struct tcp_cache *__single tpcache = NULL; in tcp_getcache_with_lock()
319 head = &tcp_cache[hash]; in tcp_getcache_with_lock()
335 struct tcp_cache *oldest_cache = NULL; in tcp_getcache_with_lock()
354 tpcache = kalloc_type(struct tcp_cache, Z_NOPAGEWAIT | Z_ZERO); in tcp_getcache_with_lock()
425 struct tcp_cache *__single tpcache; in tcp_cache_set_cookie_common()
455 struct tcp_cache *__single tpcache; in tcp_cache_get_cookie_common()
504 struct tcp_cache *__single tpcache; in tcp_cache_get_cookie_len_common()
542 struct tcp_cache *__single tpcache; in tcp_cache_get_mptcp_version()
570 struct tcp_cache *__single tpcache; in tcp_cache_update_mptcp_version()
1494 struct tcp_cache_head *__single head = &tcp_cache[i]; in sysctl_cleartfocache()
1495 struct tcp_cache *__single tpcache, *__single tmp; in sysctl_cleartfocache()
1501 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1502 kfree_type(struct tcp_cache, tpcache); in sysctl_cleartfocache()
1650 if (tcp_cache == NULL || tcp_cache_size == 0) {
1660 struct tcp_cache_head *head = &tcp_cache[i];
1661 struct tcp_cache *tpcache;
1683 struct tcp_cache_head *head = &tcp_cache[i];
1684 struct tcp_cache *tpcache;
1741 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * cache_size, in tcp_cache_init()
1749 lck_mtx_init(&tcp_cache[i].tch_mtx, &tcp_cache_mtx_grp, in tcp_cache_init()
1751 SLIST_INIT(&tcp_cache[i].tcp_caches); in tcp_cache_init()