Lines Matching refs:tcp_cache
108 struct tcp_cache { struct
109 SLIST_ENTRY(tcp_cache) list;
124 SLIST_HEAD(tcp_cache_bucket, tcp_cache) tcp_caches; argument
147 static struct tcp_cache_head *tcp_cache; variable
329 static struct tcp_cache *
333 struct tcp_cache *tpcache = NULL; in tcp_getcache_with_lock()
340 head = &tcp_cache[hash]; in tcp_getcache_with_lock()
356 struct tcp_cache *oldest_cache = NULL; in tcp_getcache_with_lock()
375 tpcache = kalloc_type(struct tcp_cache, Z_NOPAGEWAIT | Z_ZERO); in tcp_getcache_with_lock()
446 struct tcp_cache *tpcache; in tcp_cache_set_cookie_common()
474 struct tcp_cache *tpcache; in tcp_cache_get_cookie_common()
522 struct tcp_cache *tpcache; in tcp_cache_get_cookie_len_common()
560 struct tcp_cache *tpcache; in tcp_cache_get_mptcp_version()
588 struct tcp_cache *tpcache; in tcp_cache_update_mptcp_version()
1530 struct tcp_cache_head *head = &tcp_cache[i]; in sysctl_cleartfocache()
1531 struct tcp_cache *tpcache, *tmp; in sysctl_cleartfocache()
1537 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1538 kfree_type(struct tcp_cache, tpcache); in sysctl_cleartfocache()
1608 tcp_cache = zalloc_permanent(sizeof(struct tcp_cache_head) * tcp_cache_size, in tcp_cache_init()
1615 lck_mtx_init(&tcp_cache[i].tch_mtx, &tcp_cache_mtx_grp, in tcp_cache_init()
1617 SLIST_INIT(&tcp_cache[i].tcp_caches); in tcp_cache_init()