• Home
  • Raw
  • Download

Lines Matching refs:dccp_hashinfo

48 struct inet_hashinfo dccp_hashinfo;  variable
49 EXPORT_SYMBOL_GPL(dccp_hashinfo);
1118 inet_hashinfo_init(&dccp_hashinfo); in dccp_init()
1119 rc = inet_hashinfo2_init_mod(&dccp_hashinfo); in dccp_init()
1123 dccp_hashinfo.bind_bucket_cachep = in dccp_init()
1127 if (!dccp_hashinfo.bind_bucket_cachep) in dccp_init()
1152 dccp_hashinfo.ehash_mask = hash_size - 1; in dccp_init()
1153 dccp_hashinfo.ehash = (struct inet_ehash_bucket *) in dccp_init()
1155 } while (!dccp_hashinfo.ehash && --ehash_order > 0); in dccp_init()
1157 if (!dccp_hashinfo.ehash) { in dccp_init()
1162 for (i = 0; i <= dccp_hashinfo.ehash_mask; i++) in dccp_init()
1163 INIT_HLIST_NULLS_HEAD(&dccp_hashinfo.ehash[i].chain, i); in dccp_init()
1165 if (inet_ehash_locks_alloc(&dccp_hashinfo)) in dccp_init()
1171 dccp_hashinfo.bhash_size = (1UL << bhash_order) * PAGE_SIZE / in dccp_init()
1173 if ((dccp_hashinfo.bhash_size > (64 * 1024)) && in dccp_init()
1176 dccp_hashinfo.bhash = (struct inet_bind_hashbucket *) in dccp_init()
1178 } while (!dccp_hashinfo.bhash && --bhash_order >= 0); in dccp_init()
1180 if (!dccp_hashinfo.bhash) { in dccp_init()
1185 for (i = 0; i < dccp_hashinfo.bhash_size; i++) { in dccp_init()
1186 spin_lock_init(&dccp_hashinfo.bhash[i].lock); in dccp_init()
1187 INIT_HLIST_HEAD(&dccp_hashinfo.bhash[i].chain); in dccp_init()
1217 free_pages((unsigned long)dccp_hashinfo.bhash, bhash_order); in dccp_init()
1219 inet_ehash_locks_free(&dccp_hashinfo); in dccp_init()
1221 free_pages((unsigned long)dccp_hashinfo.ehash, ehash_order); in dccp_init()
1223 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); in dccp_init()
1225 inet_hashinfo2_free_mod(&dccp_hashinfo); in dccp_init()
1227 dccp_hashinfo.bhash = NULL; in dccp_init()
1228 dccp_hashinfo.ehash = NULL; in dccp_init()
1229 dccp_hashinfo.bind_bucket_cachep = NULL; in dccp_init()
1237 free_pages((unsigned long)dccp_hashinfo.bhash, in dccp_fini()
1238 get_order(dccp_hashinfo.bhash_size * in dccp_fini()
1240 free_pages((unsigned long)dccp_hashinfo.ehash, in dccp_fini()
1241 get_order((dccp_hashinfo.ehash_mask + 1) * in dccp_fini()
1243 inet_ehash_locks_free(&dccp_hashinfo); in dccp_fini()
1244 kmem_cache_destroy(dccp_hashinfo.bind_bucket_cachep); in dccp_fini()
1247 inet_hashinfo2_free_mod(&dccp_hashinfo); in dccp_fini()