Lines Matching refs:threshold
22 struct threshold { struct
25 dm_block_t threshold; argument
31 static void threshold_init(struct threshold *t) in threshold_init() argument
37 static void set_threshold(struct threshold *t, dm_block_t value, in set_threshold()
41 t->threshold = value; in set_threshold()
46 static bool below_threshold(struct threshold *t, dm_block_t value) in below_threshold()
48 return t->threshold_set && value <= t->threshold; in below_threshold()
51 static bool threshold_already_triggered(struct threshold *t) in threshold_already_triggered()
56 static void check_threshold(struct threshold *t, dm_block_t value) in check_threshold()
177 struct threshold threshold; member
498 check_threshold(&smm->threshold, count); in sm_metadata_new_block()
519 dm_block_t threshold, in sm_metadata_register_threshold_callback() argument
525 set_threshold(&smm->threshold, threshold, fn, context); in sm_metadata_register_threshold_callback()
783 threshold_init(&smm->threshold); in dm_sm_metadata_create()
831 threshold_init(&smm->threshold); in dm_sm_metadata_open()