Lines Matching refs:max_hash
49 uint max_hash; member
58 bcm_bloom_free_t free_cb, void *cb_ctx, uint max_hash, in bcm_bloom_create() argument
64 if (!bloom || !alloc_cb || (max_hash == 0)) { in bcm_bloom_create()
77 bp->max_hash = max_hash; in bcm_bloom_create()
78 bp->hash = (*alloc_cb)(cb_ctx, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
83 memset(bp->hash, 0, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
120 sizeof(*bp->hash) * bp->max_hash); in bcm_bloom_destroy()
135 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_add_hash()
140 if (i >= bp->max_hash) in bcm_bloom_add_hash()
154 if (idx >= bp->max_hash) in bcm_bloom_remove_hash()
180 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_is_member()
208 for (i = 0; i < bp->max_hash; ++i) { in bcm_bloom_add_member()