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