Lines Matching defs:hwblk
6 #include <asm/hwblk.h>
26 static int __hwblk_mod_cnt(struct hwblk_info *info, int hwblk,
29 struct hwblk *hp = info->hwblks + hwblk;
38 static void hwblk_mod_cnt(struct hwblk_info *info, int hwblk,
44 __hwblk_mod_cnt(info, hwblk, counter, value, goal);
48 void hwblk_cnt_inc(struct hwblk_info *info, int hwblk, int counter)
50 hwblk_mod_cnt(info, hwblk, counter, 1, 1);
53 void hwblk_cnt_dec(struct hwblk_info *info, int hwblk, int counter)
55 hwblk_mod_cnt(info, hwblk, counter, -1, 0);
58 void hwblk_enable(struct hwblk_info *info, int hwblk)
60 struct hwblk *hp = info->hwblks + hwblk;
67 ret = __hwblk_mod_cnt(info, hwblk, HWBLK_CNT_USAGE, 1, 1);
77 void hwblk_disable(struct hwblk_info *info, int hwblk)
79 struct hwblk *hp = info->hwblks + hwblk;
86 ret = __hwblk_mod_cnt(info, hwblk, HWBLK_CNT_USAGE, -1, 0);
150 /* skip over clocks using hwblk 0 (HWBLK_UNKNOWN) */