Lines Matching defs:threshold
21 * An edge triggered threshold.
23 struct threshold {
26 dm_block_t threshold;
32 static void threshold_init(struct threshold *t)
38 static void set_threshold(struct threshold *t, dm_block_t value,
42 t->threshold = value;
47 static bool below_threshold(struct threshold *t, dm_block_t value)
49 return t->threshold_set && value <= t->threshold;
52 static bool threshold_already_triggered(struct threshold *t)
57 static void check_threshold(struct threshold *t, dm_block_t value)
178 struct threshold threshold;
499 check_threshold(&smm->threshold, count);
520 dm_block_t threshold,
526 set_threshold(&smm->threshold, threshold, fn, context);
784 threshold_init(&smm->threshold);
832 threshold_init(&smm->threshold);