Lines Matching refs:cb_ctx
48 void *cb_ctx; member
58 bcm_bloom_free_t free_cb, void *cb_ctx, uint max_hash, in bcm_bloom_create() argument
69 bp = (*alloc_cb)(cb_ctx, sizeof(*bp)); in bcm_bloom_create()
76 bp->cb_ctx = cb_ctx; in bcm_bloom_create()
78 bp->hash = (*alloc_cb)(cb_ctx, sizeof(*bp->hash) * max_hash); in bcm_bloom_create()
86 bp->filter = (*alloc_cb)(cb_ctx, filter_size); in bcm_bloom_create()
117 (*free_cb)(bp->cb_ctx, bp->filter, bp->filter_size); in bcm_bloom_destroy()
119 (*free_cb)(bp->cb_ctx, bp->hash, in bcm_bloom_destroy()
121 (*free_cb)(bp->cb_ctx, bp, sizeof(*bp)); in bcm_bloom_destroy()
184 pos = (*bp->hash[i])(bp->cb_ctx, i, tag, tag_len); in bcm_bloom_is_member()
212 pos = (*bp->hash[i])(bp->cb_ctx, i, tag, tag_len); in bcm_bloom_add_member()