Lines Matching defs:dccp_hashinfo
47 struct inet_hashinfo dccp_hashinfo;
48 EXPORT_SYMBOL_GPL(dccp_hashinfo);
1034 inet_hashinfo_init(&dccp_hashinfo);
1035 dccp_hashinfo.bind_bucket_cachep =
1039 if (!dccp_hashinfo.bind_bucket_cachep)
1064 dccp_hashinfo.ehash_mask = hash_size - 1;
1065 dccp_hashinfo.ehash = (struct inet_ehash_bucket *)
1067 } while (!dccp_hashinfo.ehash && --ehash_order > 0);
1069 if (!dccp_hashinfo.ehash) {
1074 for (i = 0; i <= dccp_hashinfo.ehash_mask; i++) {
1075 INIT_HLIST_NULLS_HEAD(&dccp_hashinfo.ehash[i].chain, i);
1076 INIT_HLIST_NULLS_HEAD(&dccp_hashinfo.ehash[i].twchain, i);
1079 if (inet_ehash_locks_alloc(&dccp_hashinfo))
1085 dccp_hashinfo.bhash_size = (1UL << bhash_order) * PAGE_SIZE /
1087 if ((dccp_hashinfo.bhash_size > (64 * 1024)) &&
1090 dccp_hashinfo.bhash = (struct inet_bind_hashbucket *)
1092 } while (!dccp_hashinfo.bhash && --bhash_order >= 0);
1094 if (!dccp_hashinfo.bhash) {
1099 for (i = 0; i < dccp_hashinfo.bhash_size; i++) {
1100 spin_lock_init(&dccp_hashinfo.bhash[i].lock);
1101 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain);
1131 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order);
1133 inet_ehash_locks_free(&dccp_hashinfo);
1135 free_pages((unsigned long)dccp_hashinfo.ehash, ehash_order);
1137 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);
1141 dccp_hashinfo.bhash = NULL;
1142 dccp_hashinfo.ehash = NULL;
1143 dccp_hashinfo.bind_bucket_cachep = NULL;
1151 free_pages((unsigned long)dccp_hashinfo.bhash,
1152 get_order(dccp_hashinfo.bhash_size *
1154 free_pages((unsigned long)dccp_hashinfo.ehash,
1155 get_order((dccp_hashinfo.ehash_mask + 1) *
1157 inet_ehash_locks_free(&dccp_hashinfo);
1158 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep);