Lines Matching refs:threshold
22 * An edge triggered threshold.
24 struct threshold {
27 dm_block_t threshold;
33 static void threshold_init(struct threshold *t)
39 static void set_threshold(struct threshold *t, dm_block_t value,
43 t->threshold = value;
48 static bool below_threshold(struct threshold *t, dm_block_t value)
50 return t->threshold_set && value <= t->threshold;
53 static bool threshold_already_triggered(struct threshold *t)
58 static void check_threshold(struct threshold *t, dm_block_t value)
180 struct threshold threshold;
504 check_threshold(&smm->threshold, count);
525 dm_block_t threshold,
531 set_threshold(&smm->threshold, threshold, fn, context);
796 threshold_init(&smm->threshold);
842 threshold_init(&smm->threshold);