Lines Matching defs:context
116 fn(info->value_type.context, element_at(info, ab, 0), nr_entries);
187 vt->inc(vt->context, value, delta);
210 vt->dec(vt->context, element_at(info, ab, new_nr - 1), delta);
575 static void block_inc(void *context, const void *value, unsigned int count)
578 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 void block_dec(void *context, const void *value, unsigned int count)
629 __block_dec(context, value);
632 static int block_equal(void *context, const void *value1, const void *value2)
649 bvt->context = info;
708 value_fn fn, void *context,
719 r = fn(base + i, element_at(info, ab, i), context);
724 vt->inc(vt->context, element_at(info, ab, i), 1);
732 uint32_t size, value_fn fn, void *context)
752 r = populate_ablock_with_values(info, ab, fn, context,
834 (!vt->equal || !vt->equal(vt->context, old_value, value))) {
835 vt->dec(vt->context, old_value, 1);
837 vt->inc(vt->context, value, 1);
861 int (*fn)(void *context, uint64_t key, void *leaf);
862 void *context;
865 static int walk_ablock(void *context, uint64_t *keys, void *leaf)
867 struct walk_info *wi = context;
884 r = wi->fn(wi->context, keys[0] * max_entries + i,
897 void *context)
903 wi.context = context;