Home
last modified time | relevance | path

Searched refs:max_size (Results 1 – 3 of 3) sorted by relevance

/lib/
Dbucket_locks.c15 size_t max_size, unsigned int cpu_mult, gfp_t gfp, in __alloc_bucket_spinlocks() argument
28 size = min_t(unsigned int, nr_pcpus * cpu_mult, max_size); in __alloc_bucket_spinlocks()
30 size = max_size; in __alloc_bucket_spinlocks()
Dtest_rhashtable.c37 static int max_size = 0; variable
38 module_param(max_size, int, 0);
39 MODULE_PARM_DESC(max_size, "Maximum table size (default: calculated)");
454 test_rht_params.max_size = roundup_pow_of_two(entries / 8); in test_rhashtable_max()
710 test_rht_params.max_size = max_size ? : roundup_pow_of_two(entries); in test_rht_init()
714 test_rht_params.max_size + 1)); in test_rht_init()
719 size, max_size, shrinking); in test_rht_init()
725 memset(objs, 0, test_rht_params.max_size * sizeof(struct test_obj)); in test_rht_init()
746 test_rht_params.max_size, test_rhashtable_max(objs, entries) == 0 ? in test_rht_init()
770 test_rht_params.max_size = max_size ? : in test_rht_init()
Drhashtable.c1029 if (params->max_size) { in rhashtable_init()
1030 ht->p.max_size = rounddown_pow_of_two(params->max_size); in rhashtable_init()
1031 if (ht->p.max_size < ht->max_elems / 2) in rhashtable_init()
1032 ht->max_elems = ht->p.max_size * 2; in rhashtable_init()