Lines Matching refs:threshold
23 struct threshold { struct
26 dm_block_t threshold; member
32 static void threshold_init(struct threshold *t) in threshold_init() argument
38 static void set_threshold(struct threshold *t, dm_block_t value, in set_threshold()
42 t->threshold = value; in set_threshold()
47 static bool below_threshold(struct threshold *t, dm_block_t value) in below_threshold()
49 return t->threshold_set && value <= t->threshold; in below_threshold()
52 static bool threshold_already_triggered(struct threshold *t) in threshold_already_triggered()
57 static void check_threshold(struct threshold *t, dm_block_t value) in check_threshold()
178 struct threshold threshold; member
500 check_threshold(&smm->threshold, count); in sm_metadata_new_block()
521 dm_block_t threshold, in sm_metadata_register_threshold_callback() argument
527 set_threshold(&smm->threshold, threshold, fn, context); in sm_metadata_register_threshold_callback()
792 threshold_init(&smm->threshold); in dm_sm_metadata_create()
838 threshold_init(&smm->threshold); in dm_sm_metadata_open()