Lines Matching refs:hwblk
26 static int __hwblk_mod_cnt(struct hwblk_info *info, int hwblk, in __hwblk_mod_cnt() argument
29 struct hwblk *hp = info->hwblks + hwblk; in __hwblk_mod_cnt()
38 static void hwblk_mod_cnt(struct hwblk_info *info, int hwblk, in hwblk_mod_cnt() argument
44 __hwblk_mod_cnt(info, hwblk, counter, value, goal); in hwblk_mod_cnt()
48 void hwblk_cnt_inc(struct hwblk_info *info, int hwblk, int counter) in hwblk_cnt_inc() argument
50 hwblk_mod_cnt(info, hwblk, counter, 1, 1); in hwblk_cnt_inc()
53 void hwblk_cnt_dec(struct hwblk_info *info, int hwblk, int counter) in hwblk_cnt_dec() argument
55 hwblk_mod_cnt(info, hwblk, counter, -1, 0); in hwblk_cnt_dec()
58 void hwblk_enable(struct hwblk_info *info, int hwblk) in hwblk_enable() argument
60 struct hwblk *hp = info->hwblks + hwblk; in hwblk_enable()
67 ret = __hwblk_mod_cnt(info, hwblk, HWBLK_CNT_USAGE, 1, 1); in hwblk_enable()
77 void hwblk_disable(struct hwblk_info *info, int hwblk) in hwblk_disable() argument
79 struct hwblk *hp = info->hwblks + hwblk; in hwblk_disable()
86 ret = __hwblk_mod_cnt(info, hwblk, HWBLK_CNT_USAGE, -1, 0); in hwblk_disable()