Lines Matching defs:context
116 fn(info->value_type.context, element_at(info, ab, i));
188 vt->inc(vt->context, value);
212 vt->dec(vt->context, element_at(info, ab, i - 1));
576 static void block_inc(void *context, const void *value)
579 struct dm_array_info *info = context;
585 static void block_dec(void *context, const void *value)
593 struct dm_array_info *info = context;
624 static int block_equal(void *context, const void *value1, const void *value2)
641 bvt->context = info;
699 value_fn fn, void *context, unsigned base, unsigned new_nr)
709 r = fn(base + i, element_at(info, ab, i), context);
714 vt->inc(vt->context, element_at(info, ab, i));
722 uint32_t size, value_fn fn, void *context)
742 r = populate_ablock_with_values(info, ab, fn, context,
824 (!vt->equal || !vt->equal(vt->context, old_value, value))) {
825 vt->dec(vt->context, old_value);
827 vt->inc(vt->context, value);
851 int (*fn)(void *context, uint64_t key, void *leaf);
852 void *context;
855 static int walk_ablock(void *context, uint64_t *keys, void *leaf)
857 struct walk_info *wi = context;
874 r = wi->fn(wi->context, keys[0] * max_entries + i,
887 void *context)
893 wi.context = context;