Lines Matching refs:n_buckets
42 unsigned int n_buckets; member
47 struct hash *hash_new(unsigned int n_buckets, in hash_new() argument
52 n_buckets = ALIGN_POWER2(n_buckets); in hash_new()
54 n_buckets * sizeof(struct hash_bucket)); in hash_new()
57 hash->n_buckets = n_buckets; in hash_new()
59 hash->step = n_buckets / 32; in hash_new()
75 bucket_end = bucket + hash->n_buckets; in hash_free()
150 unsigned int pos = hashval & (hash->n_buckets - 1); in hash_add()
193 unsigned int pos = hashval & (hash->n_buckets - 1); in hash_add_unique()
238 unsigned int pos = hashval & (hash->n_buckets - 1); in hash_find()
256 unsigned int pos = hashval & (hash->n_buckets - 1); in hash_del()
318 for (iter->bucket++; iter->bucket < iter->hash->n_buckets; in hash_iter_next()
326 if (iter->bucket >= iter->hash->n_buckets) in hash_iter_next()