Lines Matching refs:max_entries
220 u32 num_entries = htab->map.max_entries; in htab_free_prealloced_timers_and_wq()
242 u32 num_entries = htab->map.max_entries; in htab_free_prealloced_fields()
277 for (i = 0; i < htab->map.max_entries; i++) { in htab_free_elems()
318 u32 num_entries = htab->map.max_entries; in prealloc_init()
448 if (attr->max_entries == 0 || attr->key_size == 0 || in htab_map_alloc_check()
492 htab->map.max_entries = roundup(attr->max_entries, in htab_map_alloc()
494 if (htab->map.max_entries < attr->max_entries) in htab_map_alloc()
495 htab->map.max_entries = rounddown(attr->max_entries, in htab_map_alloc()
503 if (htab->map.max_entries > 1UL << 31) in htab_map_alloc()
506 htab->n_buckets = roundup_pow_of_two(htab->map.max_entries); in htab_map_alloc()
551 if (attr->max_entries / 2 > num_online_cpus() * PERCPU_COUNTER_BATCH) in htab_map_alloc()
899 return __percpu_counter_compare(&htab->pcount, htab->map.max_entries, in is_map_full()
901 return atomic_read(&htab->count) >= htab->map.max_entries; in is_map_full()
2226 num_entries = map->max_entries; in htab_map_mem_usage()