Lines Matching refs:max_hash
55 uint max_hash; member
64 bcm_bloom_free_t free_cb, void *cb_ctx, uint max_hash, in bcm_bloom_create() argument
70 if (!bloom || !alloc_cb || (max_hash == 0)) { in bcm_bloom_create()
83 bp->max_hash = max_hash; in bcm_bloom_create()
84 bp->hash = (*alloc_cb)(cb_ctx, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
85 memset(bp->hash, 0, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
127 sizeof(*bp->hash) * bp->max_hash); in bcm_bloom_destroy()
142 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_add_hash()
147 if (i >= bp->max_hash) in bcm_bloom_add_hash()
161 if (idx >= bp->max_hash) in bcm_bloom_remove_hash()
187 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_is_member()
217 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_add_member()