Lines Matching refs:cb_ctx
54 void *cb_ctx; member
64 bcm_bloom_free_t free_cb, void *cb_ctx, uint max_hash, in bcm_bloom_create() argument
75 bp = (*alloc_cb)(cb_ctx, sizeof(*bp)); in bcm_bloom_create()
82 bp->cb_ctx = cb_ctx; in bcm_bloom_create()
84 bp->hash = (*alloc_cb)(cb_ctx, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
93 bp->filter = (*alloc_cb)(cb_ctx, filter_size); in bcm_bloom_create()
124 (*free_cb)(bp->cb_ctx, bp->filter, bp->filter_size); in bcm_bloom_destroy()
126 (*free_cb)(bp->cb_ctx, bp->hash, in bcm_bloom_destroy()
128 (*free_cb)(bp->cb_ctx, bp, sizeof(*bp)); in bcm_bloom_destroy()
191 pos = (*bp->hash[i])(bp->cb_ctx, i, tag, tag_len); in bcm_bloom_is_member()
221 pos = (*bp->hash[i])(bp->cb_ctx, i, tag, tag_len); in bcm_bloom_add_member()