Lines Matching refs:tcp_cache
107 struct tcp_cache { struct
108 SLIST_ENTRY(tcp_cache) list;
125 SLIST_HEAD(tcp_cache_bucket, tcp_cache) tcp_caches; argument
148 static struct tcp_cache_head *tcp_cache; variable
325 static struct tcp_cache *
329 struct tcp_cache *tpcache = NULL; in tcp_getcache_with_lock()
336 head = &tcp_cache[hash]; in tcp_getcache_with_lock()
352 struct tcp_cache *oldest_cache = NULL; in tcp_getcache_with_lock()
371 tpcache = kalloc_type(struct tcp_cache, Z_NOWAIT | Z_ZERO); in tcp_getcache_with_lock()
439 struct tcp_cache *tpcache; in tcp_cache_set_cookie_common()
467 struct tcp_cache *tpcache; in tcp_cache_get_cookie_common()
515 struct tcp_cache *tpcache; in tcp_cache_get_cookie_len_common()
553 struct tcp_cache *tpcache; in tcp_cache_get_mptcp_version()
601 struct tcp_cache *tpcache; in tcp_cache_update_mptcp_version()
1534 struct tcp_cache_head *head = &tcp_cache[i]; in sysctl_cleartfocache()
1535 struct tcp_cache *tpcache, *tmp; in sysctl_cleartfocache()
1541 SLIST_REMOVE(&head->tcp_caches, tpcache, tcp_cache, list); in sysctl_cleartfocache()
1542 kfree_type(struct tcp_cache, tpcache); in sysctl_cleartfocache()
1613 tcp_cache = _MALLOC(sizeof(struct tcp_cache_head) * tcp_cache_size, in tcp_cache_init()
1615 if (tcp_cache == NULL) { in tcp_cache_init()
1626 lck_mtx_init(&tcp_cache[i].tch_mtx, &tcp_cache_mtx_grp, in tcp_cache_init()
1628 SLIST_INIT(&tcp_cache[i].tcp_caches); in tcp_cache_init()